Exercise
Using a New NTP Source Exercise
Task
Point servera at a specific NTP server
instead of the default pool, and confirm it
synchronizes.
- Host
servera- New source
time.google.com
-
Confirm chrony is installed and running
rpm -q chrony systemctl is-enabled chronyd systemctl is-active chronyd timedatectlSystem clock synchronized: yesandNTP service: activeare what you want to see. -
Read the current sources
chronyc sources -v -
Replace the pool
Keep a copy first, then change the
poolline.sudo cp /etc/chrony.conf /etc/chrony.conf.orig sudo vim /etc/chrony.confSearch with
/^pool, replace the line with C, and type:pool time.google.com iburst -
Restart chronyd
chrony reads its configuration at startup.
sudo systemctl restart chronyd systemctl is-active chronyd -
Confirm the new source is selected
chronyc sources -v timedatectl -
Put the original back
sudo mv /etc/chrony.conf.orig /etc/chrony.conf sudo systemctl restart chronyd chronyc sources -v