[ntp:questions] ntp not updating the time

Chuck Swiger cswiger at mac.com
Tue Apr 13 22:40:10 UTC 2010


Hi--

On Apr 13, 2010, at 1:45 PM, Marc Fromm wrote:
> If I restart the ntpd service the time is updated to the correct time:
> /sbin/service ntpd restart
> 
> If I run the command below the time is updated to the correct time:
> ntpdate -u time-nw.nist.gov
> 
> If I don't do any of the above my time is never updated and the server becomes hours behind.
> 
> How or when does ntpd automatically update the time?

It's quite possible that the service script for ntpd invokes ntpdate to reset the clock, just as you've done by hand, but then something is wrong with ntpd's configuration such that it can't keep the clock sync'ed afterwards.

Please show the list your /etc/ntp.conf and the output of "ntpq -pc rv localhost".

Regards,
-- 
-Chuck

PS: If your machine is losing hours of time, this suggests the RTC or battery might be toast, or something might be losing clock interrupts rather enthusiastically.

It also might be the case that you are running inside a virtual machine environment like Xen or VMware, in which case you should have mentioned this information originally (and, in which case, you should run ntpd in the Dom0 or master host environment and not a DomU).




More information about the questions mailing list