[Cialug] NTPD -- OpenSUSE 10.1
Josh More
morej at alliancetechnologies.net
Thu Mar 22 12:45:03 CDT 2007
NTP will not serve unless the daemon knows that it's own time is
properly synchronized.
It can take up to half an hour for the daemon to gather enough data to
know this.
You can minimize the startup time by making the initial call use more
packets. This is controlled with the "iburst" parameter.
Note that if you do this, there is a slight chance that that you will
sync to an out of sync server and be serving the wrong time to the rest
of your network. Most people just wait the 30 mins and let it be.
-Josh More, RHCE, CISSP, NCLP
morej at alliancetechnologies.net
515-245-7701
>>> Matt Patterson <matt at usrlocal.com> 03/22/07 11:32 AM >>>
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
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list