Ntp not updating system time

I added the following line to $ date ; sudo service ntp stop ; sudo ntpdate -s gov ; sudo service ntp start ; date Thu Jan 1 UTC 1970 * Stopping NTP server ntpd [ OK ] * Starting NTP server [ OK ] Thu Feb 14 UTC 2013 notice the '-b' flag on ntpdate.

From ntpdate's man page: "Force the time to be stepped using the settimeofday() system call, rather than slewed (default) using the adjtime() system call.

I also heard of Xen VMs clocks misbehaving before, but not like that and nothing that ntpd running wouldn't solve.Thanks for the idea hwclock gave me an error : As well as in other hardware machines I had.I am running Ubuntu on an ARM based embedded system that lacks a battery backed RTC. Thus, I use the NTP service to update the time to the current time.Click Here to receive this Complete Guide absolutely free.20 Feb ntpdate[23877]: step time server 1.2.3.4 offset -2770.341672 sec [[email protected] ~]# ntpdate 1.2.3.4 20 Feb ntpdate[23878]: step time server 1.2.3.4 offset -2770.341754 sec [[email protected] ~]# ntpdate 0.20 Feb ntpdate[23881]: step time server 1.202 offset -2770.345091 sec [[email protected] ~]# ntpdate 0.20 Feb ntpdate[23882]: step time server 1.202 offset -2770.345357 sec [[email protected] ~]# service ntpd status ntpd is stopped OBS:1.2.3.4 is the campus NTP server, disguised. Let me know if can give any clue, ommited it to not send a lot of junk to the thread at first. Jan 8 .826 CST: rtdel 0000 (0.000), rtdsp 10001 (1000.015), refid 00000000 (0.0.0.0). Jan 8 .822 CST: org 00000000.00000000 (.000 CST Thu Dec 31 1899). Jan 8 .822 CST: NTP: rcv packet from 1.1 to 10.19.0.111 on Vlan1:. Jan 8 .819 CST: rtdel 0B73 (44.724), rtdsp 1AC6 (104.584), refid AC1C9605 (1.5).

302

Leave a Reply