[ntp:questions] Peering doesn't work

unruh unruh at wormhole.physics.ubc.ca
Sat Dec 18 10:16:18 UTC 2010


On 2010-12-15, Mike Hauth <mhauth at gmail.com> wrote:
> Hi everybody
>
> i've got a problem with my ntp configuration.
>
> In my infrastructure i have two servers and a couple of clients.
> In normal case the servers should synchronize to 2 external time servers.
>
> In other cases, if the external network is not available on one or both
> servers, the concerning server should change to local clock or rather use
> the peering server mate via local network to synchronize to his local clock.
>
> But in all cases the servers should synchronize to the same time source.
>
> For this i appened the hardware clock as fallback time source with two
> different strata (server1 has a fudged stratum of 5, server2 has a fudged
> straum of 10).

local does not mean "harware clock" It means the system clock itself.
Ie, it is using itself to discipline itself. It is not a useful
synchronization source. It is simply there on a server so that that
server's clients think it is syncing to something. 
>
> My expected behavior is, that server1 will be mastering server2 if both
> servers doesn't have an network connection to the external time servers.
> Instead they are synchronizing both to their own local clocks.
>
> Whats my lack of understanding?
> How can i correct my configuration?
>
> I append the configuration of both servers and the output of ntpq -p.
>
> Hope you can help me out of this ... :-)
>
> By all means, have some nice christmas days!
> Yours Mike
>
>======================================================================================
>
>===================
> ### On Server 1
>===================
> server1:/ # ntpq -p
>
>      remote           refid      st t when poll reach   delay   offset
> jitter
>==============================================================================
>  extern1         .INIT.          16 u    -   64    0    0.000    0.000
> 0.000
>  extern2         .INIT.          16 u    -   64    0    0.000    0.000
> 0.000
> *LOCAL(0)        .LOCL.           5 l   42   64  377    0.000    0.000
> 0.001
>  server2         LOCAL(0)        11 u   15   64  377    0.160   98.151
> 0.057
>
> ------------------------------------------------------------------------------
>
> server1:/ # cat /etc/ntp.conf
>
> server extern1 maxpoll 6
> server extern2 maxpoll 6
> peer server2 maxpoll 6
> server 127.127.1.0 maxpoll 6
> fudge 127.127.1.0 stratum 5
>
> driftfile /var/lib/ntp/drift/ntp.drift
>
> logfile   /var/log/ntp
>
>
> ##############################################################################
>
>
>===================
> ### On Server 2
>===================
> server2:/ # ntpq -p
>
>      remote           refid      st t when poll reach   delay   offset
> jitter
>==============================================================================
>  extern1         .INIT.          16 u    -   64    0    0.000    0.000
> 0.000
>  extern2         .INIT.          16 u    -   64    0    0.000    0.000
> 0.000
> *LOCAL(0)        .LOCL.          10 l   33   64  377    0.000    0.000
> 0.001
>  server1         LOCAL(0)         6 u    4   64  377    0.144  -98.136
> 0.066
>
> ------------------------------------------------------------------------------
>
> server2:/ # cat /etc/ntp.conf
>
> server extern1 maxpoll 6
> server extern2 maxpoll 6
> peer server1 maxpoll 6
> server 127.127.1.0 maxpoll 6
> fudge 127.127.1.0 stratum 10
>
> driftfile /var/lib/ntp/drift/ntp.drift
>
> logfile   /var/log/ntp




More information about the questions mailing list