[ntp:questions] NTP not syncing
michael.cook at sfr.fr
Thu Dec 5 00:09:04 UTC 2013
Le 4 déc. 2013 à 22:41, antonio.marcheselli at gmail.com a écrit :
>>> I kept monitoring the drift file, but it was stable.
>> Were you monitoring the modification times as well as the contents? As the logs were not being updated, maybe they were not being changed either?
> I'm not sure what you mean.
> I was monitoring the status of the ntp using ntpd and the "o" option to see the offset and the status of the sources.
> I was also reading the ntp.drift file to check the drift value.
Unfortunately there is no history for the drift file contents and the times between updates seems irregular. looking around my systems I see
Windows 7 > 2h
I haven't looked at the source, but it may mean that ntpd updates the file only when there is a change in frequency, say due to temperature variations, but this is not systematic as if you check the frequency with ntpq -rv, you get data that can differ from the value in the file . There must be some time factor as well.
mike at raspberrypi ~ $ sudo ls -l /var/lib/ntp/ntp.drift
-rw-r--r-- 1 root root 8 Dec 5 00:51 /var/lib/ntp/ntp.drift
mike at raspberrypi ~ $ sudo cat /var/lib/ntp/ntp.drift
mike at raspberrypi ~ $ ntpq -c rv
associd=0 status=061d leap_none, sync_ntp, 1 event, kern,
version="ntpd 4.2.7p319 at 1.2483 Tue May 28 11:26:22 UTC 2013 (2)",
processor="armv6l", system="Linux/3.2.27-pps", leap=00, stratum=2,
precision=-19, rootdelay=12.702, rootdisp=15.447, refid=220.127.116.11,
reftime=d64a40a8.49108193 Thu, Dec 5 2013 1:00:40.285,
clock=d64a41e9.897ae5b9 Thu, Dec 5 2013 1:06:01.537, peer=45162, tc=6,
mintc=3, offset=-0.172132, frequency=-36.748, sys_jitter=0.069766,
If you don't check the file modification times with ls or whatever as well as the contents you may not know whether it is being updated or not.
> questions mailing list
> questions at lists.ntp.org
More information about the questions