Why is ntpd not updating the time on my server?
Posted
by
John
on Server Fault
See other posts from Server Fault
or by John
Published on 2011-01-10T20:39:11Z
Indexed on
2011/01/10
20:55 UTC
Read the original article
Hit count: 300
I have ntpd running on my server. It's all the default settings, except I commented out its ability to be a server to other machines:
# restrict -4 default kod notrap nomodify nopeer noquery
# restrict -6 default kod notrap nomodify nopeer noquery
restrict default ignore
If I run ntpdate -q ntp.ubuntu.com
, I'm told that my machine's clock is off by 7 seconds.
What's going on? How can I diagnose what's happening, is there a log I can turn on?
more info #1
# ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
91.189.94.4 193.79.237.14 2 u 30 64 7 108.518 -0.136 0.361
more info #2 Here's what this looked like when I asked the question:
# ntpdate -q ntp.ubuntu.com
server 91.189.94.4, stratum 2, offset 7.191308, delay 0.13310
10 Jan 20:38:09 ntpdate[31055]: step time server 91.189.94.4 offset 7.191308 sec
And here's what it looks like now, after restarting ntpd a couple times (I'm assuming that's what fixed it):
# ntpdate -q ntp.ubuntu.com
server 91.189.94.4, stratum 2, offset 0.000112, delay 0.13164
10 Jan 20:47:03 ntpdate[31419]: adjust time server 91.189.94.4 offset 0.000112 sec
© Server Fault or respective owner