To enable chrony in ubuntu, we can install it first
$ sudo apt update && sudo apt install chrony -y
Start chrony once it is installed
$ sudo systemctl start chrony
Enable chrony on boot
$ sudo systemctl enable chrony
We can change the server that chrony sync from, by editing /etc/chrony/chrony.conf. By default, chrony in ubuntu will use ntp.ubuntu.com
To check the status of time sync
$ sudo chronyc sources -v
We can see that from the above example, the current best source of time is 144.126.242.176.
Make sure there is at least one server with ^* status.
If the time is skewed, we can force resync using below command
$ sudo chronyc makestep
To install and configure chrony in redhat based linux, please refer to this article
No comments:
Post a Comment