Skip to content

Commit b83e93c

Browse files
Merge pull request #261705 from mabicca/patch-8
Update time-sync.md
2 parents 4eeea7d + ae7b6ad commit b83e93c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ $ sudo udevadm trigger --subsystem-match=ptp --action=add
125125
On Ubuntu 19.10 and later versions, Red Hat Enterprise Linux, and CentOS 8.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 statement:
126126

127127
```bash
128-
local stratum 2
129-
refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0
128+
refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0 stratum 2
130129
```
131130

132131
If the /dev/ptp_hyperv symlink is available, use it instead of /dev/ptp0 to avoid any confusion with the /dev/ptp device created by the Mellanox mlx5 driver.
@@ -142,7 +141,7 @@ makestep 1.0 -1
142141
Here, chrony will force a time update if the drift is greater than 1 second. To apply the changes restart the chronyd service:
143142

144143
```bash
145-
systemctl restart chronyd
144+
systemctl restart chronyd && systemctl restart chrony
146145
```
147146

148147
### Time sync messages related to systemd-timesyncd

0 commit comments

Comments
 (0)