I've 3 machines that would not synchronize to NTP servers no matter
what. They always end up stratum 10. They are regular Dell servers,
kernel 2.6.18-128.7.1.0.1.el5, ntp 4.2.2p1-7.el5
I tried to sync up to local NTP servers, I tried the US pool, I cleaned
up the drift file, nothing works, even though the initial offset is
really small (ntpdate seems to work).
Config file:
server 10.10.16.65 iburst
server 10.10.16.64 iburst
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift
restrict 127.0.0.0 mask 255.0.0.0
restrict 192.168.3.0 mask 255.255.255.0 nomodify notrap
restrict default ignore
Command line:
ntpd -d -s /var/lib/ntp/stats -x -u ntp:ntp -p /var/run/ntpd.pid
This is the state they end up in:
# ntpq -p
remote refid st t when poll reach delay offset
jitter
==============================================================================
ut12 .INIT. 16 u - 64 0 0.000 0.000
0.000
ut11 .INIT. 16 u - 64 0 0.000 0.000
0.000
*LOCAL(0) .LOCL. 10 l 2 64 77 0.000 0.000
0.001
This is the status of one of the servers they are querying:
remote refid st t when poll reach delay offset
jitter
==============================================================================
+ns1.tic.com 128.9.176.30 2 u 74 1024 377 54.117 -3.711
42.480
+you.dontlike.us 128.4.40.12 3 u 30 1024 377 76.102 -1.723
0.183
*clock.team-cymr 172.16.65.22 2 u 100 1024 377 67.046 3.628
0.130
LOCAL(0) .LOCL. 10 l 31 64 377 0.000 0.000
0.001
This is syslog:
Oct 22 11:06:41 db23 ntpdate[30868]: step time server 10.10.16.64 offset
0.056358 sec
Oct 22 11:06:41 db23 ntpd[30870]: ntpd [email protected] Tue Aug 21
17:51:27 UTC 2007 (1)
Oct 22 11:06:41 db23 ntpd[30870]: precision = 1.000 usec
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface wildcard,
0.0.0.0#123 Disabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface wildcard,
::#123 Disabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface lo, ::1#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface bond1,
fe80::21e:c9ff:feb0:d128#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface bond0,
fe80::215:17ff:fe7d:2a90#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface lo,
127.0.0.1#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface bond0,
10.10.16.101#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: Listening on interface bond1,
10.10.20.101#123 Enabled
Oct 22 11:06:41 db23 ntpd[30870]: kernel time sync status 0040
Oct 22 11:06:41 db23 ntpd[30870]: frequency initialized 0.000 PPM from
/etc/ntp/drift
Oct 22 11:09:59 db23 ntpd[30870]: synchronized to LOCAL(0), stratum 10
Oct 22 11:09:59 db23 ntpd[30870]: kernel time sync enabled 0001
These are debug messages:
Starting ntpd: ntpd [email protected] Tue Aug 21 17:51:27 UTC 2007 (1)
addto_syslog: precision = 1.000 usec
create_sockets(123)
addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket
boundary: 16
bind() fd 16, family 2, port 123, addr 0.0.0.0, flags=9
Added addr 0.0.0.0 to list of addresses
addto_syslog: Listening on interface wildcard, 0.0.0.0#123 Disabled
bind() fd 17, family 10, port 123, addr ::, flags=1
Added addr :: to list of addresses
addto_syslog: Listening on interface wildcard, ::#123 Disabled
bind() fd 18, family 10, port 123, addr ::1, flags=1
Added addr ::1 to list of addresses
addto_syslog: Listening on interface lo, ::1#123 Enabled
bind() fd 19, family 10, port 123, addr fe80::21e:c9ff:feb0:d128, flags=1
Added addr fe80::21e:c9ff:feb0:d128 to list of addresses
addto_syslog: Listening on interface bond1, fe80::21e:c9ff:feb0:d128#123
Enabled
bind() fd 20, family 10, port 123, addr fe80::215:17ff:fe7d:2a90, flags=1
Added addr fe80::215:17ff:fe7d:2a90 to list of addresses
addto_syslog: Listening on interface bond0, fe80::215:17ff:fe7d:2a90#123
Enabled
bind() fd 21, family 2, port 123, addr 127.0.0.1, flags=5
Added addr 127.0.0.1 to list of addresses
addto_syslog: Listening on interface lo, 127.0.0.1#123 Enabled
bind() fd 22, family 2, port 123, addr 10.10.16.101, flags=25
Added addr 10.10.16.101 to list of addresses
addto_syslog: Listening on interface bond0, 10.10.16.101#123 Enabled
bind() fd 23, family 2, port 123, addr 10.10.20.101, flags=25
Added addr 10.10.20.101 to list of addresses
addto_syslog: Listening on interface bond1, 10.10.20.101#123 Enabled
init_io: maxactivefd 23
local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 0
key_expire: at 0
peer_clear: at 0 next 1 assoc ID 5730 refid INIT
newpeer: 10.10.16.101->10.10.16.65 mode 3 vers 4 poll 6 10 flags 0x201
0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 2 assoc ID 5731 refid INIT
newpeer: 10.10.16.101->10.10.16.64 mode 3 vers 4 poll 6 10 flags 0x201
0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 3 assoc ID 5732 refid INIT
newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 6 10 flags 0x1021 0x1
ttl 0 key 00000000
addto_syslog: frequency initialized 0.000 PPM from /etc/ntp/drift
local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 1
report_event: system event 'event_restart' (0x01) status 'sync_alarm,
sync_unspec, 1 event, event_unspec' (0xc010)
transmit: at 1 10.10.16.101->10.10.16.65 mode 3
auth_agekeys: at 1 keys 1 expired 0
timer: refresh ts 0
transmit: at 2 10.10.16.101->10.10.16.64 mode 3
refclock_transmit: at 3 127.127.1.0
refclock_receive: at 3 127.127.1.0
peer LOCAL(0) event 'event_reach' (0x84) status 'unreach, conf, 1 event,
event_reach' (0x8014)
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937500 jit 0.000001, age 0
transmit: at 3 10.10.16.101->10.10.16.65 mode 3
transmit: at 4 10.10.16.101->10.10.16.64 mode 3
transmit: at 5 10.10.16.101->10.10.16.65 mode 3
transmit: at 6 10.10.16.101->10.10.16.64 mode 3
transmit: at 7 10.10.16.101->10.10.16.65 mode 3
transmit: at 8 10.10.16.101->10.10.16.64 mode 3
transmit: at 9 10.10.16.101->10.10.16.65 mode 3
transmit: at 10 10.10.16.101->10.10.16.64 mode 3
transmit: at 11 10.10.16.101->10.10.16.65 mode 3
transmit: at 12 10.10.16.101->10.10.16.64 mode 3
transmit: at 13 10.10.16.101->10.10.16.65 mode 3
transmit: at 14 10.10.16.101->10.10.16.64 mode 3
transmit: at 15 10.10.16.101->10.10.16.65 mode 3
transmit: at 16 10.10.16.101->10.10.16.64 mode 3
transmit: at 17 10.10.16.101->10.10.16.65 mode 3
transmit: at 18 10.10.16.101->10.10.16.64 mode 3
auth_agekeys: at 60 keys 1 expired 0
transmit: at 65 10.10.16.101->10.10.16.64 mode 3
transmit: at 67 10.10.16.101->10.10.16.65 mode 3
refclock_transmit: at 68 127.127.1.0
refclock_receive: at 68 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 2 off 0.000000 del 0.000000 dsp 3.937744 jit 0.000001, age 0
auth_agekeys: at 120 keys 1 expired 0
transmit: at 131 10.10.16.101->10.10.16.64 mode 3
refclock_transmit: at 133 127.127.1.0
refclock_receive: at 133 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 3 off 0.000000 del 0.000000 dsp 1.937988 jit 0.000001, age 0
transmit: at 133 10.10.16.101->10.10.16.65 mode 3
auth_agekeys: at 180 keys 1 expired 0
transmit: at 195 10.10.16.101->10.10.16.64 mode 3
transmit: at 197 10.10.16.101->10.10.16.65 mode 3
refclock_transmit: at 198 127.127.1.0
refclock_receive: at 198 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 4 off 0.000000 del 0.000000 dsp 0.938171 jit 0.000001, age 0
report_event: system event 'event_peer/strat_chg' (0x04) status
'sync_alarm, sync_local_proto, 2 events, event_restart' (0xc521)
addto_syslog: synchronized to LOCAL(0), stratum 10
clock_update: at 198 assoc 3
local_clock: assocID 5732 offset 0.000000000 freq 0.000 state 1
local_clock: time 198 base 0.000000 offset 0.000000 freq 0.000 state 4
addto_syslog: kernel time sync enabled 0001
local_clock: mu 198 jitr 0.000001 freq 0.000 stab 0.000000 poll 6 count 6
report_event: system event 'event_sync_chg' (0x03) status 'leap_none,
sync_local_proto, 3 events, event_peer/strat_chg' (0x534)
crypto_update: update ts 3496759799
report_event: system event 'event_peer/strat_chg' (0x04) status
'leap_none, sync_local_proto, 4 events, event_sync_chg' (0x543)
auth_agekeys: at 240 keys 1 expired 0
transmit: at 258 10.10.16.101->10.10.16.64 mode 3
refclock_transmit: at 261 127.127.1.0
refclock_receive: at 261 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 5 off 0.000000 del 0.000000 dsp 0.438279 jit 0.000001, age 0
clock_update: at 261 assoc 3
local_clock: assocID 5732 offset 0.000000000 freq 0.000 state 4
local_clock: time 261 base 0.000000 offset 0.000000 freq 0.000 state 4
local_clock: mu 63 jitr 0.000001 freq 0.000 stab 0.000000 poll 6 count 12
transmit: at 262 10.10.16.101->10.10.16.65 mode 3
auth_agekeys: at 300 keys 1 expired 0
transmit: at 323 10.10.16.101->10.10.16.64 mode 3
refclock_transmit: at 326 127.127.1.0
refclock_receive: at 326 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 6 off 0.000000 del 0.000000 dsp 0.188362 jit 0.000001, age 0
clock_update: at 326 assoc 3
local_clock: assocID 5732 offset 0.000000000 freq 0.000 state 4
local_clock: time 326 base 0.000000 offset 0.000000 freq 0.000 state 4
local_clock: mu 65 jitr 0.000001 freq 0.000 stab 0.000000 poll 6 count 18
transmit: at 327 10.10.16.101->10.10.16.65 mode 3
--
Florin Andrei
http://florin.myip.org/
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions