The server time was 7 hours off (instead of 10AM it was 3AM, even though date
showed the correct timezone). The output for ntpq was:
$ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
xx.xxx.xxx.x.ar xxx.x.xx.xx 2 u 72 1024 177 6.516 2520657 1650156
ntp.xxxx.ac.uk xxx.xxx.xxx.x 2 u 7h 1024 377 14.039 2520655 1347346
xxx.xxx.xxx.xx xxx.xxx.xxx.x 2 u 114 1024 377 5.449 -18.941 2130343
ns1.xxxxxxx.com xxx.x.xx.xx 2 u 148 1024 377 8.050 2520655 1650156
The time was fixed by:
ntpdate -u 0.europe.pool.ntp.org
However, it happened again a few days after. I suspect the second row in ntpq -p
, which says it's been 7h since last received packet. But if that is the reason, then why didn't ntp use the other servers to sync the time?
What has happened? How would you prevent this from happening again?
Edit Another thing that might be useful to consider is that it is a VM. Is it possible that the VM was on some kind of paused state?
Note that vmware-toolbox-cmd timesync status
is disabled.