[ntp:questions] NTP not syncing
unruh at invalid.ca
Sat Nov 2 18:03:39 UTC 2013
On 2013-11-02, antonio.marcheselli at gmail.com <antonio.marcheselli at gmail.com> wrote:
> Hello all,
> I have a Linux machine which comes with fixed configuration. The manufacturer allows only ONE NTP server to be setup and I learnt that this is not ideal. In fact, the NTP service usually does not work and I have to reboot the machine every now and then, so the NTPDATE command built in the boot script can re-sync the clock.
Stupid setup unless that is a pool server and even then a few more than
one would be useful.
> I have tinkered with the configuration file manually and ended up with a working server. But when I stored the same configuration on the read only partition and rebooted, looks like it does not work anymore and after 2 days the offset keeps increasing.
How did you "store" on a read only partition. read only means that
partition cannot be written to and thus cannot "store" anything.
> I put the same configuration on three different servers on the same network, looks like sometimes it works, sometime it doesn't.
> Here is my configuration from ntp.con
> server 127.127.1.0
Completely lunatic. You do NOT use the local refclock ever. (And if you
know that that statement may have some exceptions, you may know enough
to use it, but even then probably not).
> fudge 127.127.1.0 stratum 10
> server 184.108.40.206
> server 220.127.116.11
> server 18.104.22.168
What servers are those? You should NOT be using fixed addresses unless
you personally control them.
> restrict 127.0.0.1
> restrict 22.214.171.124 mask 255.255.255.0 nomodify
And those lines are there why?
> tos orphan 4
> driftfile /status/etc/ntp/ntp.drift
> logfile /var/log/ntp.log
> broadcastdelay 0.008
> enable monitor
> Some of the parameters were on the factory configurations, so I left them. Like the broadcastdelay.
> 126.96.36.199 is a secure device which pools the time from the server.
??? that means what?
> Below some data from ntpq
> ntpq> o
> remote local st t when poll reach delay offset disp
> LOCAL(0) 127.0.0.1 10 l 47 64 377 0.000 0.000 0.924
> +188.8.131.52 192.168.241.5 2 u 41 64 377 61.669 -7159.7 4.450
> +184.108.40.206 192.168.241.5 3 u 13 64 377 90.475 -7167.2 2.633
> *220.127.116.11 192.168.241.5 2 u 60 64 377 66.076 -7145.6 4.446
OK, i is locking on to 18.104.22.168 but the offset is far too high.
> An extract from the logs:
> 2 Nov 15:02:02 ntpd: frequency error -527 PPM exceeds tolerance 500 PPM
OK. Your system is badly broken. It is impossible for ntp to discipline
it. You have to figure out why your hardware is broken before you try to
> This server synced perfectly for the last 2 weeks with the same exact configuration.
Well, it is broken now. Is it a virtual server?
> Could someone please help? I can add a forth server if needed, I also understand that it would be recommended to use the iburst parameter.
Forth is not a language in much use anymore (not that it eer was:-)
Nothing you can do can save you except fixing your hardware.
> Thanks for your help!
More information about the questions