Skip to content

Commit

Permalink
Persistent disk resizing works after agent restart
Browse files Browse the repository at this point in the history
Related issue: cloudfoundry/bosh#2433

If the agent has been restarted, attempting to remount the persistent disk
as read-only result in the error:
  already mounted or mount point busy
And a kernel error of:
  Can't mount, would change RO state

We do not fully understand the root cause of the problem, but it the restarting
of the chrony service via systemd is the action triggering the problem.

Running chronyd's start script directly does not trigger the problem, nor
is the problem triggered by restarting other services via systemd.

Signed-off-by: Chris Selzo <[email protected]>
Co-authored-by: Chris Selzo <[email protected]>
Co-authored-by: Long Nguyen <[email protected]>
Co-authored-by: Joseph Palermo <[email protected]>
  • Loading branch information
4 people authored and git committed Mar 22, 2023
1 parent acb9b51 commit 6d539bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
describe '(stig: V-38620 V-38621)' do
describe file('/var/vcap/bosh/bin/sync-time') do
it { should be_file }
its(:content) { should match(/systemctl restart chrony\.service/) }
its(:content) { should match(/chronyc reload sources/) }
its(:content) { should match(/chronyc waitsync 10/) }
end

Expand Down
2 changes: 1 addition & 1 deletion stemcell_builder/stages/bosh_ntp/assets/chrony-updater
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ for ip in $( cat $NTP_SERVER_FILE ); do
echo "server $ip iburst" >> $CHRONY_TIME_SOURCES_FILE
done

systemctl restart chrony.service
chronyc reload sources
chronyc waitsync 10

0 comments on commit 6d539bc

Please sign in to comment.