View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Wed Apr 14, 2004 4:25 pm Post subject: ntp client doesnt keep up |
|
|
server config
router root # cat /etc/ntp.conf
restrict default noquery notrust nomodify #tried it without this line as well
restrict 127.0.0.1 #tried it without this line as well
server 127.127.1.0 #tried it without this line as well
server bear.zoo.bt.co.uk
server ntp1.uk.uu.net
server tick.tanac.net
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
outer root # ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) LOCAL(0) 5 l 14 64 377 0.000 0.000 0.008
+bear.zoo.bt.co. ntp1.linx.net 2 u 957 1024 377 38.321 -5.687 22.008
*ntp1.pipex.net ntp1.NL.net 2 u 894 1024 377 25.544 -5.092 2.954
p1w18.geo.scd.y 0.0.0.0 16 u - 1024 0 0.000 0.000 4000.00
router root #
ie its working !
client ( ie keep it simple :
bash-2.05b$ cat /etc/ntp.conf
server 192.168.0.10
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
bash-2.05b$ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
router 158.43.128.66 3 u 590 1024 377 0.674 455754. 19877.8
ie its doing something ! - but it loses 12-13 minutes /day |
|
Back to top |
|
|
Andersson Guru
Joined: 12 Jul 2003 Posts: 525 Location: Göteborg, Sweden
|
Posted: Wed Apr 14, 2004 4:42 pm Post subject: Re: ntp client doesnt keep up |
|
|
thecooptoo wrote: | logfile /var/log/ntp.log |
Anything in there? |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 14, 2004 5:53 pm Post subject: |
|
|
I have a similar problem, but the issue with me is that the time clock is correct. However when mail enters my mail server, it displays within a client one hour early.
If mail arrives at 08.16, it displays as 07.16. I have set the /etc/localtime to /usr/share/zoneinfo/Greenwich as I live in London, but it has made no difference. I have also, pointed /var/spool/postfix/etc/localtime to the same source but to no avail.
As so far as the log file for ntp is concerened, nothing has been written there even thought the service has started. Any clues? |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Wed Apr 14, 2004 6:01 pm Post subject: |
|
|
server - ie when I re-synced it this morning
14 Apr 08:29:10 ntpd[18544]: ntpd exiting on signal 15
14 Apr 08:29:30 ntpd[21627]: running as uid(123)/gid(123) euid(123)/egid(123).
14 Apr 08:29:30 ntpd[21629]: signal_no_reset: signal 17 had flags 4000000
14 Apr 08:32:49 ntpd[21627]: kernel time discipline status change 41
client
14 Apr 08:31:58 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 08:49:04 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 09:06:08 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 09:23:12 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
same 2x per hour
14 Apr 17:21:48 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 17:38:54 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 17:56:01 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 18:13:05 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
14 Apr 18:30:12 ntpd[11293]: sendto(192.168.0.10): Bad file descriptor
bash-2.05b# |
|
Back to top |
|
|
|