Unix Technical Forum

My stupid ntp error

This is a discussion on My stupid ntp error within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Problems with ntp on one of our systems were traced to using a DNS cache which came up after ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 06:16 PM
Scott Jordan
 
Posts: n/a
Default My stupid ntp error

Problems with ntp on one of our systems were traced to using a DNS cache
which came up after ntp tried to poll its servers.

D'OH!

We'd switched dns on the machine to DJBDNS dnscache running under
daemontools. dnscache was taking about 10 seconds to come up after
rc.local (where ntpd is started) completed. Apparently ntpd is pretty
graceless about retrying servers when dns is unavailable.

ntpd log errors were:

13 Dec 04:48:59 ntpd[276]: signal_no_reset: signal 17 had flags 4000000
13 Dec 04:49:01 ntpd[276]: signal_no_reset: signal 14 had flags 4000000

Two instances of ntpd would be present. The second one would hang.

Solution was to put another nameserver in /etc/resolve.conf in addition
to the local cache. I should have had a backup nameserver listed anyway.

My pain has proven most educational.

ScottJ


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 06:16 PM
Thomas Ronayne
 
Posts: n/a
Default Re: My stupid ntp error

Scott Jordan wrote:

>Problems with ntp on one of our systems were traced to using a DNS cache
>which came up after ntp tried to poll its servers.
>
>D'OH!
>
>We'd switched dns on the machine to DJBDNS dnscache running under
>daemontools. dnscache was taking about 10 seconds to come up after
>rc.local (where ntpd is started) completed. Apparently ntpd is pretty
>graceless about retrying servers when dns is unavailable.
>
>ntpd log errors were:
>
>13 Dec 04:48:59 ntpd[276]: signal_no_reset: signal 17 had flags 4000000
>13 Dec 04:49:01 ntpd[276]: signal_no_reset: signal 14 had flags 4000000
>
>Two instances of ntpd would be present. The second one would hang.
>
>Solution was to put another nameserver in /etc/resolve.conf in addition
>to the local cache. I should have had a backup nameserver listed anyway.
>
>My pain has proven most educational.
>
>ScottJ
>
>

Yep, ouch.

Have you considered using the pool? My stuff is set up like this

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
server north-america.pool.ntp.org
server north-america.pool.ntp.org
server north-america.pool.ntp.org

and I've experienced no problems whatsoever. It seems that the "local"
server avoids such problems (although I could be wrong about that) and
the pool appears to work just fine when the network becomes available.
After a few minutes

ntpq -n (or -np)

pops up with the servers it's using with nothing whatsoever in
/etc/resolv.conf.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com