Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.
Date: Fri, 07 Jan 2011 04:08:42
Message-Id: 4D268928.6030901@gmail.com
In Reply to: Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file. by William Kenworthy
1 William Kenworthy wrote:
2 >
3 > Dale, can you post (a sanitised) version of what 'ntpq -p' gives after
4 > ntpd has been running for some time, and the sanitised result of
5 > 'ntptrace. Also include your full (sanitised) ntp.conf
6 > and /etc/conf.d/ntpd.
7 >
8 > This might help us see more detail of what is happening.
9 >
10 > BillK
11 >
12 > * sanitised - obfuscate public IP's only.
13 >
14 >
15
16
17 I should have posted this a while back. Here we go:
18
19 root@fireball / # ntpq -p
20 remote refid st t when poll reach delay offset
21 jitter
22 ==============================================================================
23 +triangle.kansas 128.252.19.1 2 u 4 64 127 56.270 673.749
24 238.194
25 +B1-66ER.matrix. 192.43.244.18 2 u 14 64 377 75.505 672.846
26 165.087
27 +kallisti.us 208.90.144.52 3 u 22 64 377 62.917 663.831
28 168.738
29 *kazilik.haqr.ne 209.51.161.238 2 u 42 64 377 66.483 653.962
30 166.119
31 root@fireball / # ntptrace
32 localhost: stratum 16, offset 0.000000, synch distance 0.000240
33 root@fireball / #
34
35 This is ntp.conf but I omitted the parts that are commented out.
36
37
38 server 64.6.144.6
39 server 67.159.5.90
40 server 67.59.168.233
41 server 204.62.14.98
42
43 driftfile /var/lib/ntp/ntp.drift
44
45 restrict default nomodify nopeer
46 restrict 127.0.0.1
47
48 This makes sense if you read the command:
49
50 root@fireball / # cat /var/log/messages | grep ntp | tail -n 30
51 Jan 6 19:58:14 localhost ntpd[3017]: Attemping to register mDNS
52 Jan 6 19:58:14 localhost ntpd[3017]: *** WARNING *** The program 'ntpd'
53 uses the Apple Bonjour compatibility layer of Avahi.
54 Jan 6 19:58:14 localhost ntpd[3017]: *** WARNING *** Please fix your
55 application to use the native API of Avahi!
56 Jan 6 19:58:14 localhost ntpd[3017]: *** WARNING *** For more
57 information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=ntpd>
58 Jan 6 19:58:14 localhost ntpd[3019]: precision = 1.000 usec
59 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #0
60 wildcard, 0.0.0.0#123 Disabled
61 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #1
62 wildcard, ::#123 Disabled
63 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #2 eth0,
64 fe80::1e6f:65ff:fe4c:91c7#123 Enabled
65 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #3 lo,
66 ::1#123 Enabled
67 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #4 lo,
68 127.0.0.1#123 Enabled
69 Jan 6 19:58:14 localhost ntpd[3019]: Listening on interface #5 eth0,
70 192.168.2.5#123 Enabled
71 Jan 6 19:58:14 localhost ntpd[3019]: kernel time sync status 2040
72 Jan 6 19:58:14 localhost ntpd[3019]: frequency initialized 500.000 PPM
73 from /var/lib/ntp/ntp.drift
74 Jan 6 20:02:33 localhost ntpd[3019]: synchronized to 67.59.168.233,
75 stratum 3
76 Jan 6 20:02:33 localhost ntpd[3019]: time reset +0.237917 s
77 Jan 6 20:02:33 localhost ntpd[3019]: kernel time sync status change 2001
78 Jan 6 20:07:31 localhost ntpd[3019]: synchronized to 67.159.5.90, stratum 2
79 Jan 6 20:13:57 localhost ntpd[3019]: synchronized to 204.62.14.98,
80 stratum 2
81 Jan 6 20:17:34 localhost ntpd[3019]: time reset +0.567387 s
82 Jan 6 20:24:05 localhost ntpd[3019]: synchronized to 67.159.5.90, stratum 2
83 Jan 6 20:27:05 localhost ntpd[3019]: synchronized to 204.62.14.98,
84 stratum 2
85 Jan 6 20:31:40 localhost ntpd[3019]: synchronized to 67.159.5.90, stratum 2
86 Jan 6 20:35:33 localhost ntpd[3019]: time reset +0.604521 s
87 Jan 6 20:44:29 localhost ntpd[3019]: synchronized to 67.159.5.90, stratum 2
88 Jan 6 20:47:44 localhost ntpd[3019]: synchronized to 204.62.14.98,
89 stratum 2
90 Jan 6 20:55:22 localhost ntpd[3019]: time reset +0.663361 s
91 Jan 6 21:01:22 localhost ntpd[3019]: synchronized to 204.62.14.98,
92 stratum 2
93 Jan 6 21:04:05 localhost ntpd[3019]: synchronized to 67.159.5.90, stratum 2
94 Jan 6 21:08:40 localhost ntpd[3019]: synchronized to 204.62.14.98,
95 stratum 2
96 Jan 6 21:17:01 localhost ntpd[3019]: time reset +0.676538 s
97 root@fireball / #
98
99 Notice it is off about .6 seconds every 15 to 20 minutes or so? It
100 never gets any closer than this either. I let it run for a good day the
101 other day and it was still the same. On my old rig, it would get to a
102 point where the corrections were smaller and the syncs were father
103 apart. I have seen it go for hours between syncs and be only .01 or .02
104 seconds off. My old rig wouldn't sync so often either. The drift file
105 would also change and be some rather odd numbers. The file on this rig
106 never changes and looks like some sort of a default value. Speaking of:
107
108 root@fireball / # cat /var/lib/ntp/ntp.drift
109 500.000
110 root@fireball / #
111
112 This is the adjtime file from a good ways back:
113
114 root@fireball / # cat /etc/adjtime
115 0.000000 1294340368 0.000000
116 1294340368
117 UTC
118 root@fireball / #
119
120 And the current one after some updates:
121
122 root@fireball / # cat /etc/adjtime
123 0.000000 1294365381 0.000000
124 1294365381
125 UTC
126 root@fireball / #
127
128 Does any of this put the light on something I may be missing?
129
130 I started with a copy of ntp.conf from my old rig. I did change the
131 servers but I change them sometimes anyway. I use netselect or
132 something to find the closest and fastest one to get a accurate clock.
133
134 Hoping for ideas. Redoing adjtime doesn't seem to have helped.
135
136 Dale
137
138 :-) :-)

Replies

Subject Author
Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file. Paul Colquhoun <paulcol@×××××××××××××××××.au>
Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file. William Kenworthy <billk@×××××××××.au>