[ntp:questions] No synchronization !
Izo
I at siol.net
Thu Nov 4 14:23:19 UTC 2004
i've got two machines in the system -
one being the classic server/firewall (named sammy.k106, Linux
kernel-2.4.18 (133MHz, 16MB RAM), 2 eth adapters, ntpd-2.4.0, apache,
smtp, pop, dhcp, dns, ntp, ftp, ssh, ..., firewall)
and another being the workstation behind the firewall (Linux
kernel-2.6.7, ntpd-2.4.0)
server ntp.conf:
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
driftfile /etc/ntp.drift # path for drift file
logfile /var/log/ntp # alternate log file
server si.pool.ntp.org
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server europe.pool.ntp.org
workstation ntp.conf:
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
logfile /var/log/ntp # alternate log file
server sammy.k106
Now, while workstation synchronizes within e.g. 10 minutes, the server
never does:
Server:
ntpq -p:
remote refid st t when poll reach delay offset
jitter
==============================================================================
*LOCAL(0) LOCAL(0) 10 l 39 64 377 0.000 0.000
0.015
thr.cmm.ki.si .INIT. 16 u - 1024 0 0.000 0.000
4000.00
zepan.org .INIT. 16 u - 1024 0 0.000 0.000
4000.00
turnstile.ispl. .INIT. 16 u - 1024 0 0.000 0.000
4000.00
gobio2.net .INIT. 16 u - 1024 0 0.000 0.000
4000.00
dungeon.mctavis .INIT. 16 u - 1024 0 0.000 0.000
4000.00
cat /var/log/ntp:
1 Nov 19:51:00 ntpd[4876]: synchronized to LOCAL(0), stratum=10
1 Nov 19:51:00 ntpd[4876]: kernel time sync disabled 0041
1 Nov 19:52:03 ntpd[4876]: kernel time sync enabled 0001
cat /var/log/messages:
Nov 1 19:47:44 sammy ntpdate[4873]: adjust time server 193.2.10.117
offset -0.021003 sec
Nov 1 19:47:45 sammy ntpd[4876]: ntpd 4.2.0 at 1.1161-r Mon Nov 1
18:05:42 CET 2004 (1)
(* the next line seems suspicious to me *)
Nov 1 19:47:45 sammy ntpd[4876]: signal_no_reset: signal 13 had flags
4000000
Nov 1 19:47:45 sammy ntpd[4876]: precision = 17.000 usec
Nov 1 19:47:45 sammy ntpd[4876]: kernel time sync status 0040
Nov 1 19:47:45 sammy ntpd[4876]: frequency initialized 0.000 PPM from
/etc/ntp.drift
Workstation
ntp -q:
remote refid st t when poll reach delay offset
jitter
==============================================================================
LOCAL(0) LOCAL(0) 10 l 43 64 377 0.000 0.000
0.001
*sammy.k106 LOCAL(0) 11 u 249 1024 377 1.975 0.150
0.821
/var/log/ntp
4 Nov 08:12:11 ntpd[3850]: synchronized to LOCAL(0), stratum 10
4 Nov 08:12:11 ntpd[3850]: kernel time sync disabled 0041
4 Nov 08:13:17 ntpd[3850]: synchronized to 192.168.1.1, stratum 11
4 Nov 08:16:28 ntpd[3850]: kernel time sync enabled 0001
/var/log/messages
Nov 4 08:08:57 kobal1 ntpdate[3478]: step time server 192.168.1.1
offset -3.132535 sec
Nov 4 08:08:57 kobal1 ntpd[3850]: ntpd 4.2.0a at 1.1213-r Tue Apr 6
01:34:28 UTC 2004 (1)
Nov 4 08:08:57 kobal1 ntpd[3850]: precision = 1.000 usec
Nov 4 08:08:57 kobal1 ntpd[3850]: Listening on interface wildcard,
0.0.0.0#123
Nov 4 08:08:57 kobal1 ntpd[3850]: Listening on interface wildcard, ::#123
Nov 4 08:08:57 kobal1 ntpd[3850]: Listening on interface lo, 127.0.0.1#123
Nov 4 08:08:57 kobal1 ntpd[3850]: Listening on interface eth0,
192.168.1.11#123
Nov 4 08:08:57 kobal1 ntpd[3850]: Listening on interface vmnet8,
192.168.245.1#123
Nov 4 08:08:57 kobal1 ntpd[3850]: kernel time sync status 0040
Nov 4 08:08:58 kobal1 ntpd[3850]: frequency initialized -137.297 PPM
from /var/lib/ntp/drift/ntp.drift
What is the problem here ?
Izo
More information about the questions
mailing list