1 |
I have Gentoo 2.6.13-r5 kernel running and have used ntpd in |
2 |
broadcastclient mode to keep its time in sync on my home network. The |
3 |
other day, the system suffered and abrupt shutdown due to a power |
4 |
outage. Ever since then, the system clock gains about 10 seconds every |
5 |
5 minutes. Also, I can't get ntpd to sync the clock. My command line |
6 |
is "ntpd -A -b -g -u ntp:ntp". I've included some output running the |
7 |
command with the debug switch below. |
8 |
|
9 |
I've also tried to gain more info with the ntpdc utility although I |
10 |
don't really know what I'm doing. However it appears that ntpd does see |
11 |
my FreeBSD time server even though it's not synced: |
12 |
|
13 |
ntpdc> peers |
14 |
remote local st poll reach delay offset disp |
15 |
======================================================================= |
16 |
=192.168.1.2 0.0.0.0 2 64 7 0.00038 -9.600170 1.98438 |
17 |
|
18 |
The time server is a FreeBSD 6.0 box on my network. My other FreeBSD |
19 |
box and two Windows boxes get time from it just fine. Even the Gentoo |
20 |
box will set its clock with "ntpd -gq". I am currently using this brute |
21 |
force method via a cron job as a temporary workaround. |
22 |
|
23 |
Any ideas on what might have caused this recent change in behavior? |
24 |
|
25 |
Thanks for your help, |
26 |
|
27 |
Drew |
28 |
|
29 |
|
30 |
--- Begin debug output --- |
31 |
ntpd 4.2.0a@1.1191-r Sat Feb 11 19:19:56 PST 2006 (1) |
32 |
addto_syslog: ntpd 4.2.0a@1.1191-r Sat Feb 11 19:19:56 PST 2006 (1) |
33 |
addto_syslog: precision = 3.000 usec |
34 |
create_sockets(123) |
35 |
addto_syslog: no IPv6 interfaces found |
36 |
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=8 |
37 |
addto_syslog: Listening on interface wildcard, 0.0.0.0#123 |
38 |
bind() fd 5, family 2, port 123, addr 127.0.0.1, flags=0 |
39 |
addto_syslog: Listening on interface lo, 127.0.0.1#123 |
40 |
bind() fd 6, family 2, port 123, addr 192.168.1.6, flags=8 |
41 |
addto_syslog: Listening on interface eth1, 192.168.1.6#123 |
42 |
init_io: maxactivefd 6 |
43 |
local_clock: time 0 clock 0.000000 offset 0.000000 freq 0.000 state 0 |
44 |
bind() fd 8, family 2, port 123, addr 192.168.1.255, flags=8 |
45 |
io_setbclient: Opened broadcast client on interface 2, socket: 8 |
46 |
io_setbclient: Opened broadcast clients |
47 |
addto_syslog: frequency initialized -36.958 PPM from /etc/ntp/ntp.drift |
48 |
local_clock: time 0 clock 0.000000 offset 0.000000 freq -36.958 state 1 |
49 |
report_event: system event 'event_restart' (0x01) status 'sync_alarm, |
50 |
sync_unspec, 1 event, event_unspec' (0xc010) |
51 |
auth_agekeys: at 1 keys 1 expired 0 |
52 |
timer: refresh ts 0 |
53 |
receive: at 15 192.168.1.6<-192.168.1.2 mode 5 code 5 |
54 |
Finding addr 192.168.1.2 in list of addresses |
55 |
key_expire: at 15 |
56 |
peer_clear: at 15 assoc ID 33252 refid INIT |
57 |
newpeer: 192.168.1.6->192.168.1.2 mode 3 vers 4 poll 6 10 flags 0x210 |
58 |
0x20 ttl 0 key 00000000 |
59 |
receive: at 15 0.0.0.0<-192.168.1.2 mode 5 code 6 |
60 |
peer 192.168.1.2 event 'event_reach' (0x84) status 'unreach, 1 event, |
61 |
event_reach' (0x14) |
62 |
auth_agekeys: at 60 keys 1 expired 0 |
63 |
transmit: at 79 0.0.0.0->192.168.1.2 mode 3 |
64 |
receive: at 79 192.168.1.6<-192.168.1.2 mode 4 code 1 |
65 |
clock_filter: popcorn 7.896193 0.000960 |
66 |
receive: at 82 192.168.1.6<-192.168.1.2 mode 5 code 6 |
67 |
receive: at 82 0.0.0.0<-192.168.1.2 mode 5 code 6 |
68 |
auth_agekeys: at 120 keys 1 expired 0 |
69 |
transmit: at 143 0.0.0.0->192.168.1.2 mode 3 |
70 |
receive: at 143 192.168.1.6<-192.168.1.2 mode 4 code 1 |
71 |
clock_filter: n 2 off -9.600170 del 0.000386 dsp 3.937744 jit 1.703977, |
72 |
age 64 |
73 |
receive: at 148 192.168.1.6<-192.168.1.2 mode 5 code 6 |
74 |
receive: at 148 0.0.0.0<-192.168.1.2 mode 5 code 6 |
75 |
auth_agekeys: at 180 keys 1 expired 0 |
76 |
transmit: at 206 0.0.0.0->192.168.1.2 mode 3 |
77 |
receive: at 206 192.168.1.6<-192.168.1.2 mode 4 code 1 |
78 |
clock_filter: n 3 off -9.600170 del 0.000386 dsp 1.938216 jit 1.639332, |
79 |
age 127 |
80 |
receive: at 215 192.168.1.6<-192.168.1.2 mode 5 code 6 |
81 |
receive: at 215 0.0.0.0<-192.168.1.2 mode 5 code 6 |
82 |
--- End debug output --- |
83 |
|
84 |
|
85 |
-- |
86 |
gentoo-user@g.o mailing list |