[ntp:questions] ntpd keep trying preferred servers?

Seth Seeger seth at tofutavern.com
Tue Sep 6 14:56:32 UTC 2011


I have the following lines in my ntp.conf (on Debian Lenny):

server ext-server-1 prefer
server ext-server-2 prefer
fudge stratum 12

I am running in a situation where one or both of the external servers
may not be accessible.  This machine is serving as a time server for
other Debian servers behind our firewall.  I set up the "server" line so that in case the external servers are not
available, it will sync to itself so that it will always talk to the
other clients on our network.

When ntpd was started, the external servers were not available, so
ntpd sync'd to itself.  Now, the external servers have become
available, but ntpd hasn't noticed.  (It's been a few days.)  Is there
a way I can tell ntpd to keep checking for the preferred servers?

Here is the output of ntpq:

$ ntpq -pcrv
assID=0 status=0544 leap_none, sync_local_proto, 4 events, event_peer/
version="ntpd 4.2.4p4 at 1.1520-o Sun Nov 22 16:14:34 UTC 2009 (1)",
processor="x86_64", system="Linux/2.6.26-2-amd64", leap=00,
precision=-20, rootdelay=0.000, rootdispersion=11.015, peer=40390,
reftime=d210b0f9.3c931f02  Tue, Sep  6 2011 14:47:21.236, poll=10,
clock=d210b0ff.5f77289a  Tue, Sep  6 2011 14:47:27.372, state=4,
offset=0.000, frequency=0.000, jitter=0.001, noise=0.001,
stability=0.000, tai=0
     remote           refid      st t when poll reach   delay
offset  jitter
*LOCAL(1)        .LOCL.          12 l    6   64  377    0.000
0.000   0.001
 rds1          14 u  538 1024  377    0.148
-0.474   0.065
 rds2          14 u  892 1024  377    0.138
-1.210   0.099


More information about the questions mailing list