[EMAIL PROTECTED] wrote:
> I've been struggling with ntp for some time now. I've followed the
> gentoo wiki HOWTO for ntp:
>
> http://gentoo-wiki.com/HOWTO_Setup_MythTV#NTP
>
> As well as many other sources over the months. Basically, ntpq
> shows that I am not synchronized to any peers:
>
> # ntpq -p
> remote refid st t when poll reach delay offset jitter
> ==============================================================================
> Time4.Stupi.SE .PPS. 1 u 37 64 377 124.516 -11202. 1225.91
> thesimonet.org .TRUE. 1 u 38 64 377 109.329 -11213. 1232.51
> fin.rshell.net 192.114.62.249 3 u 32 64 377 205.910 -9569.1 1521.31
> titan.cais.rnp. 32.233.177.224 2 u 44 64 377 165.240 -11991. 1915.26
>
> That first space in the peers list is a tally mark that, according to
> the ntpq documentation at:
>
> http://www.eecis.udel.edu/~mills/ntp/html/ntpq.html
>
> Means that those peers are all rejected: "The peer is discarded as
> unreachable, synchronized to this server (synch loop) or outrageous
> synchronization distance."
>
> Likewise:
> # ntpq -c rv | grep stratum
> processor="i686", system="Linux/2.6.14-gentoo-r5", leap=11, stratum=16,
>
> I should be at stratum 3, not 16 (which means I'm not synchronized
> to anything).
>
> My /etc/ntp.conf:
>
> tinker panic 0
> minpoll 4
> maxpoll 10
> server pool.ntp.org
> server 0.pool.ntp.org
> server 1.pool.ntp.org
> server 2.pool.ntp.org
> driftfile /var/lib/ntp/ntp.drift
> logfile /var/log/ntp.log
> restrict default nomodify nopeer
> restrict 127.0.0.1
>
>
> Nothing special there! To further clarify, I actually have this
> problem on *two* machines. FWIW, I've also tried the OpenBSD
> OpenNTP package, but haven't had any luck with that either (except
> on my OpenBSD machine!). Using OpenNTP on these two machines
> *seemed* to work fine, but the computers still gained time too
> quickly.
>
> I've been fighting this for what seems like forever. If anyone has
> any insight or thoughts, I'm happy to hear it!
>
> Thanks,
> Matt
>
>
mine:
$ ntpq -p
remote refid st t when poll reach delay offset
jitter
==============================================================================
+ns.pnpitalia.it 62.101.81.203 3 u 764 1024 377 0.242 7.403
4.093
*192.168.76.2 193.204.114.105 2 u 215 1024 377 1.170 11.839
39.537
$ cat /etc/ntp.conf
# Generated by dhcpcd for interface eth1
restrict default noquery notrust nomodify
restrict 127.0.0.1
restrict 192.168.76.1 nomodify notrap noquery
server 192.168.76.1
restrict 192.168.76.2 nomodify notrap noquery
server 192.168.76.2
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
^^^ this is to join a _local_ server
I'm a bit rust on this but should the "restrict" parameters allow
servers from pool.ntp.org ?
also if there is delta time too big it wont syncronize , before to start
the ntp server try a
ntpdate -4b 0.pool.ntp.org
ntpdate -4b 1.pool.ntp.org
then start ntp, leave pass few hours and then check again the result of
ntpq -p
as said I'm a bit rush but small variation of what described here should
work.
--
[email protected] mailing list