Skip to content

Commit 0fafa87

Browse files
authored
public repo edits
1 parent b6e9ebd commit 0fafa87

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,36 +130,35 @@ This should return **hyperv**.
130130

131131
### chrony
132132

133-
On Ubuntu 19.10 or later and Red Hat Enterprise Linux and CentOS 7.x, [chrony](https://chrony.tuxfamily.org/) is configured to use a PTP source clock. Instead of chrony, older Linux releases use the Network Time Protocol daemon (ntpd) which doesn't support PTP sources. To enable PTP in those releases, chrony must be manually installed and configured (in chrony.conf) with the following
133+
On Ubuntu 19.10 and later versions, Red Hat Enterprise Linux, and CentOS 7.x, [chrony](https://chrony.tuxfamily.org/) is configured to use a PTP source clock. Instead of chrony, older Linux releases use the Network Time Protocol daemon (ntpd), which doesn't support PTP sources. To enable PTP in those releases, chrony must be manually installed and configured (in chrony.conf) by using the following code:
134134

135135
```bash
136136
refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0
137137
```
138-
For more information on Ubuntu and NTP, see:
139-
https://help.ubuntu.com/lts/serverguide/NTP.html
140138

141-
For more information on Red Hat and NTP, see [Configure NTP](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-configure_ntp).
139+
For more information about Ubuntu and NTP, see [Time Synchronization](https://help.ubuntu.com/lts/serverguide/NTP.html).
142140

143-
For more information on chrony, see [Using chrony](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-using_chrony).
141+
For more information about Red Hat and NTP, see [Configure NTP](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-configure_ntp).
144142

145-
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.
143+
For more information about chrony, see [Using chrony](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-using_chrony).
144+
145+
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.
146+
147+
By default, chronyd accelerates or slows the system clock to fix any time drift. If the drift becomes too big, chrony fails 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.
146148

147-
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.
148149
```bash
149150
makestep 1.0 -1
150151
```
151-
Here, chrony will force a time update if the drift is greater than 1 second. To apply the changes restart the chronyd service.
152+
153+
Here, chrony will force a time update if the drift is greater than 1 second. To apply the changes restart the chronyd service:
152154

153155
```bash
154156
systemctl restart chronyd
155157
```
156158

157-
158159
### systemd
159160

160-
On SUSE and Ubuntu releases prior to 19.10 time sync is configured using [systemd](https://www.freedesktop.org/wiki/Software/systemd/). For more information on Ubuntu, see [Time Synchronization](https://help.ubuntu.com/lts/serverguide/NTP.html). For more information on SUSE, see Section 4.5.8 in [SUSE Linux Enterprise Server 12 SP3 Release Notes](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP3/#InfraPackArch.ArchIndependent.SystemsManagement).
161-
162-
161+
On SUSE and Ubuntu releases before 19.10, time sync is configured using [systemd](https://www.freedesktop.org/wiki/Software/systemd/). For more information about Ubuntu, see [Time Synchronization](https://help.ubuntu.com/lts/serverguide/NTP.html). For more information about SUSE, see Section 4.5.8 in [SUSE Linux Enterprise Server 12 SP3 Release Notes](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP3/#InfraPackArch.ArchIndependent.SystemsManagement).
163162

164163
## Next steps
165164

0 commit comments

Comments
 (0)