[ntp:questions] Re: ntp.drift

Walter HILL hill at ieee.org
Fri Jan 28 01:06:44 UTC 2005


Martin Burnicki wrote:
> Walter HILL wrote:
> 
>>Hi,
>>
>>I have a Sun Blade 100 workstation running Linux 2.4.27 and have
>>compiled and installed ntpd
>>
>>The computer has been running for several weeks yet the ntp.drift file
>>still contains 0.000. Yes ntp.conf contains
>>
>>driftfile /var/lib/ntp/ntp.drift
>>
>>The computer was losing about 2s / hour prior.
>>
>>Is there another parameter required in ntp.conf?
> 
> 
> No.
> 
> There are 2 things you could check:
> 
> 1.) Has the NTP daemon synchronized to some time source other than "local
> clock", i.e. is there a '*' in the first column of the output ot the
> command "ntpq -p"? If in doubt, please post that output here.

      remote           refid      st t when poll reach   delay   offset 
  jitter
==============================================================================
+nimda.mailworx. 198.30.92.2      2 u  223 1024   77  296.561  1336.97 
505.919
  caenis          192.43.244.18    2 u   22   64  377    1.724  827.625 
963.550
*cerberus        128.250.36.3     2 u   26   64  377    0.729  896.530 
901.532
  LOCAL(0)        LOCAL(0)        10 l   20   64  377    0.000    0.000 
   0.002

caenis and cerberus are on the local subnet.

> 
> 2.) Is the NTP daemon running chrooted? Then the directory "var/lib/ntp/"
> must exist below the chroot jail directory and be writeable for the daemon.
> 
> 
> Martin

When I installed ntp (Running Gentoo - Installed ntp as a "package")& 
first ran it, it complained about the content of ntp.drift so i seeded 
it with 0.00 and restarted the daemon. It didn't complain on the restart 
   so I assume it can read the file.

drwxr-xr-x   2 ntp  ntp  4096 Jan 28 08:28 .
drwxr-xr-x  13 root root 4096 Jan 25 15:24 ..
-rw-r--r--   1 ntp  ntp     6 Jan 28 08:28 ntp.drift

I can't answer the chroot question.

Thanks.



More information about the questions mailing list