[Cialug] NTPD -- OpenSUSE 10.1

Matt Patterson matt at usrlocal.com
Thu Mar 22 11:32:48 CDT 2007


Ok, this one is rather interesting.  So I installed the xntp package which 
installs ntpd.  I editted the ntp.conf file in /etc/ to use one server as 
a main ntp source that is across the network and setup a peer on the local 
subnet.  So everything looks good in the config and I can start ntp and 
get time for a bit.

After say 10 seconds or so, suddenly ntp decides it can no longer serve up 
time.  It's running, just not sending out what I need.

Doing an strace I get the following.....

select(9, [4 5 6 7 8], NULL, NULL, {0, 0}) = 1 (in [8], left {0, 0})

recvfrom(8, 
"\343\0\4\372\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\311\255&\241WV\206\36", 
1092, 0, {sa_family=AF_INET, sin_port=htons(23691), 
sin_addr=inet_addr("216.243.198.244")}, [16]) = 48

select(9, [8], NULL, NULL, {0, 0})      = 0 (Timeout)

  sendto(8, 
"$\0\4\354\0\0\0\0\0\0\0ZINIT\311\255&U\347\22\261\263\311\255&\241WV\206\36\311\255&\241WG\330\5\311\255&\241Wp\233s", 
48, 0, {sa_family=AF_INET, sin_port=htons(23691), 
sin_addr=inet_addr("216.243.198.244")}, 16) = 48

select(9, [4 5 6 7 8], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be 
restarted) --- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0xe)                       = -1 EINTR (Interrupted system 
call)



This continues for roughly 20 minutes and magically, ntp starts 
serving up time again.   Whiskey Tango Foxtrot!  Anyone have a clue on 
why this is happening?

-Matt




More information about the Cialug mailing list