[ start | index | login ]

ntp

Created by retep. Last edited by retep, 2 years and 206 days ago. Viewed 1,465 times. #1
[edit] [rdf]
labels
attachments
  1. Time out of Sync on NTPd server?
NTPd synchronizes a servers time with an external time source. Keeping it up to date.

Sometimes servers that are running ntpd get out of sync.

In these cases restarting ntp regularly (weekly/monthly?) may help.

e.g. in this case there were no peers found when we first looked (the peers only appeared after an ntpd restart).

[root@host82 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        LOCAL(0)        10 l   41   64  377    0.000    0.000   0.001
# /etc/init.d/ntpd restart
Shutting down ntpd:                                        [  OK  ]
Starting ntpd:                                             [  OK  ]
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ad.67.1343.stat 132.163.4.103    2 u    1   64    1    3.094  -41335.   0.001
 mail.landrin.ru .INIT.          16 u    -   64    0    0.000    0.000 4000.00
 vine.desynched. .INIT.          16 u    -   64    0    0.000    0.000 4000.00
 LOCAL(0)        LOCAL(0)        10 l    -   64    0    0.000    0.000 4000.00

It seems like ntpd establishes its peers when it first starts up. Perhaps if there is a dns issue causing the ntp peer to not be found at that time the peer may not be used? Also perhaps if a peer stops responding for a long period it will not be kicked out of the server list and replaced with another? e.g. a good ntp server to use can be from ntps pooled servers: 0.pool.ntp.org, 1.pool.ntp.org, etc.

no comments | post comment
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.