Hi
I have just changed my NTP servers from the default because I was getting errors with them.
Now that I have the new servers in place I want to run an update and observe if there are any errors.
There is no button in the GUI for syncing the time unless TrueNAS detects an error and then a button will appear on the dashboard.
Can someone give me the commands I can run from the Shell
to run a NTP sync.
Thanks
Here is what I found
- chronyd has replaced ntpd as the TrueNAS time system.
- chronyd will cause the system to gradually correct any time offset, by slowing down or speeding up the clock as required.
CLI Commands
## Open the chronyc client terminal, which is useful for issuing multiple commands
sudo chronyc
## shows configured NTP servers (same as: System Settings --> General --> NTP Servers)
sudo cronyc sourcestats
## show man page for extra information
man chronyc
## Restart should cause an immdiate NTP poll (with no large clock offset corrections)
sudo systemctl restart chronyd
## This will cause an immediate NTP poll and correction of the the system clock (use with caution, see notes)
sudo chronyc makestep
## After making changes restart chrony service and track chrony
sudo systemctl restart chronyd ; watch chronyc tracking
1 Like