Gentoo Archives: gentoo-user

From: Francesco Riosa <BastianBalthazarBux@×××××××××.it>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ntp won't synchronize
Date: Tue, 10 Jan 2006 11:17:20
Message-Id: 43C396D8.1020102@pnpitalia.it
In Reply to: [gentoo-user] ntp won't synchronize by matthew.garman@gmail.com
1 matthew.garman@×××××.com wrote:
2 > I've been struggling with ntp for some time now. I've followed the
3 > gentoo wiki HOWTO for ntp:
4 >
5 > http://gentoo-wiki.com/HOWTO_Setup_MythTV#NTP
6 >
7 > As well as many other sources over the months. Basically, ntpq
8 > shows that I am not synchronized to any peers:
9 >
10 > # ntpq -p
11 > remote refid st t when poll reach delay offset jitter
12 > ==============================================================================
13 > Time4.Stupi.SE .PPS. 1 u 37 64 377 124.516 -11202. 1225.91
14 > thesimonet.org .TRUE. 1 u 38 64 377 109.329 -11213. 1232.51
15 > fin.rshell.net 192.114.62.249 3 u 32 64 377 205.910 -9569.1 1521.31
16 > titan.cais.rnp. 32.233.177.224 2 u 44 64 377 165.240 -11991. 1915.26
17 >
18 > That first space in the peers list is a tally mark that, according to
19 > the ntpq documentation at:
20 >
21 > http://www.eecis.udel.edu/~mills/ntp/html/ntpq.html
22 >
23 > Means that those peers are all rejected: "The peer is discarded as
24 > unreachable, synchronized to this server (synch loop) or outrageous
25 > synchronization distance."
26 >
27 > Likewise:
28 > # ntpq -c rv | grep stratum
29 > processor="i686", system="Linux/2.6.14-gentoo-r5", leap=11, stratum=16,
30 >
31 > I should be at stratum 3, not 16 (which means I'm not synchronized
32 > to anything).
33 >
34 > My /etc/ntp.conf:
35 >
36 > tinker panic 0
37 > minpoll 4
38 > maxpoll 10
39 > server pool.ntp.org
40 > server 0.pool.ntp.org
41 > server 1.pool.ntp.org
42 > server 2.pool.ntp.org
43 > driftfile /var/lib/ntp/ntp.drift
44 > logfile /var/log/ntp.log
45 > restrict default nomodify nopeer
46 > restrict 127.0.0.1
47 >
48 >
49 > Nothing special there! To further clarify, I actually have this
50 > problem on *two* machines. FWIW, I've also tried the OpenBSD
51 > OpenNTP package, but haven't had any luck with that either (except
52 > on my OpenBSD machine!). Using OpenNTP on these two machines
53 > *seemed* to work fine, but the computers still gained time too
54 > quickly.
55 >
56 > I've been fighting this for what seems like forever. If anyone has
57 > any insight or thoughts, I'm happy to hear it!
58 >
59 > Thanks,
60 > Matt
61 >
62 >
63
64 mine:
65
66 $ ntpq -p
67 remote refid st t when poll reach delay offset
68 jitter
69 ==============================================================================
70 +ns.pnpitalia.it 62.101.81.203 3 u 764 1024 377 0.242 7.403
71 4.093
72 *192.168.76.2 193.204.114.105 2 u 215 1024 377 1.170 11.839
73 39.537
74
75 $ cat /etc/ntp.conf
76 # Generated by dhcpcd for interface eth1
77 restrict default noquery notrust nomodify
78 restrict 127.0.0.1
79 restrict 192.168.76.1 nomodify notrap noquery
80 server 192.168.76.1
81 restrict 192.168.76.2 nomodify notrap noquery
82 server 192.168.76.2
83 driftfile /var/lib/ntp/ntp.drift
84 logfile /var/log/ntp.log
85
86 ^^^ this is to join a _local_ server
87
88 I'm a bit rust on this but should the "restrict" parameters allow
89 servers from pool.ntp.org ?
90 also if there is delta time too big it wont syncronize , before to start
91 the ntp server try a
92
93 ntpdate -4b 0.pool.ntp.org
94 ntpdate -4b 1.pool.ntp.org
95
96 then start ntp, leave pass few hours and then check again the result of
97 ntpq -p
98
99 as said I'm a bit rush but small variation of what described here should
100 work.
101
102
103 --
104 gentoo-user@g.o mailing list