Skip to content

Commit 71df7b2

Browse files
authored
Added details to chrony
Added details to chrony to prevent large skews and how to fix them.
1 parent 17f6ab0 commit 71df7b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/virtual-machines/linux/time-sync.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,16 @@ For more information on chrony, see [Using chrony](https://access.redhat.com/doc
142142

143143
If both chrony and TimeSync sources are enabled simultaneously, you can mark one as **prefer** which sets the other source as a backup. Because NTP services do not update the clock for large skews except after a long period, the VMICTimeSync will recover the clock from paused VM events far more quickly than NTP-based tools alone.
144144

145+
By default chronyd accelerates or slows the system clock to fix any time drift. If the drift becomes too big, chrony will fail to fix the drift. To overcome this the makestep parameter in **/etc/chrony.conf** can be changed to force a timesync if the drift exceeds the threshold specified.
146+
```bash
147+
makestep 1.0 -1
148+
```
149+
Here, chrony will force a timesync if the drift is greater than 1 second. To apply the changes restart the chronyd service.
150+
151+
```bash
152+
systemctl restart chronyd
153+
```
154+
145155

146156
### systemd
147157

0 commit comments

Comments
 (0)