1 |
My system clock is running extremely fast... so fast that even |
2 |
openntpd (apparently) can't catch up! |
3 |
|
4 |
I tried (oh how I tried) to get the "regular" ntp package to work. |
5 |
I could correct my clock using ntpdate, but I could never get ntpd |
6 |
to sync with any servers (see notes (*) below). |
7 |
|
8 |
So I got fed up with trying to get it to work, and thought I'd have |
9 |
better luck with openntpd (which is much simpler). |
10 |
|
11 |
As far as I can tell, openntpd *is* working, as I have many lines in my |
12 |
syslog that look like this: |
13 |
|
14 |
Aug 31 17:00:36 [ntpd] adjusting local clock by -344.003180s |
15 |
|
16 |
However, the clock is still drifting---not as fast as it does with no |
17 |
ntp daemon running, but noticeably (it's gained about 5 minutes in less |
18 |
than 24 hours). Note that without any ntp daemon running, my clock will |
19 |
gain about 10 minutes per hour! |
20 |
|
21 |
I have a hunch that whatever prevented the "regular" ntpd from syncing |
22 |
is preventing openntpd from properly keeping the clock in sync. |
23 |
|
24 |
So, my questions are: (1) what would cause my clock to run so fast? And |
25 |
(2) why can't any ntp daemon keep correct time? |
26 |
|
27 |
Thanks, |
28 |
Matt |
29 |
|
30 |
|
31 |
|
32 |
(*) If anyone is interested in the plight I had with ntp, here is some |
33 |
info: |
34 |
|
35 |
This is what my /etc/ntp.conf looked like: |
36 |
|
37 |
restrict 127.0.0.1 nomodify |
38 |
server pool.ntp.org prefer |
39 |
server 0.pool.ntp.org |
40 |
server 1.pool.ntp.org |
41 |
server 2.pool.ntp.org |
42 |
server 127.127.1.1 |
43 |
fudge 127.127.1.1 stratum 10 |
44 |
driftfile /var/lib/ntp/ntp.drift |
45 |
logfile /var/log/ntpd.log |
46 |
|
47 |
After starting ntpd, and waiting a while, ntpq results looked like |
48 |
this: |
49 |
|
50 |
ntpq> pe |
51 |
|
52 |
remote refid st t when poll reach delay offset jitter |
53 |
============================================================================== |
54 |
frigg.interstro 138.195.130.71 3 u 21 128 377 124.592 -3950.7 1260.34 |
55 |
cteha.ulp.co.il 192.114.62.249 3 u 26 128 377 201.236 -4670.9 1715.95 |
56 |
Time4.Stupi.SE .PPS. 1 u 79 128 377 129.134 -1668.9 1996.01 |
57 |
Time1.Stupi.SE 193.10.7.246 2 u 21 128 377 128.697 -3962.7 1253.70 |
58 |
*LOCAL(1) LOCAL(1) 10 l 13 64 377 0.000 0.000 0.001 |
59 |
|
60 |
ntpq> assoc |
61 |
|
62 |
ind assID status conf reach auth condition last_event cnt |
63 |
=========================================================== |
64 |
1 57708 9014 yes yes none reject reachable 1 |
65 |
2 57709 9014 yes yes none reject reachable 1 |
66 |
3 57710 9014 yes yes none reject reachable 1 |
67 |
4 57711 9014 yes yes none reject reachable 1 |
68 |
5 57712 9614 yes yes none sys.peer reachable 1 |
69 |
|
70 |
|
71 |
-- |
72 |
Matt Garman |
73 |
email at: http://raw-sewage.net/index.php?file=email |
74 |
-- |
75 |
gentoo-user@g.o mailing list |