Hi all,
I've set up some gentoo powered desktops in the network I administer
with ntpd, so they keep their times sync with the "main application
server". So basically, this main server's ntpd syncs with
au.pool.ntp.org, and all the other ntpd servers in each of the
desktops sync with the main server, thus, creating a small farm.
This setup is working well, but there's one machine that keeps jumping
ahead of all others, even though it uses the exact same config file
than the other desktops where NTP is working fine.
All desktops in question are set to localtime (even the buggy one). I
cp'ed /usr/share/zoneinfo/Australia/Sydney to /etc/localtime when
installing them.
To make sure I had a clean slate, I used ntpdate to "brute-sync" the
machine with the main server (worked fine), then issued a "hwclock
--systohc" so the hardware clock is set to the correct time, then
started ntpd. The other machines, after around 10 minutes, will sync
fine, showing this as the output for "ntpq -p"
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*hostname 220.233.180.218 3 u 65 64 377 0.151 5.983 0.498
(AFAIK, then preceeding * in the hostname shows it's synchronizing
with hostname)
But in this machine, no matter how much I want, this is what I get:
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
hostname 220.233.180.218 3 u 23 64 377 0.169 -756185 80237.9
For reference, this is /etc/ntp.conf in the main server:
#########################################################
server au.pool.ntp.org prefer
server 0.oceania.pool.ntp.org
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
restrict default kod nomodify nopeer notrap noquery
restrict 127.0.0.1
restrict 192.168.111.0 mask 255.255.255.0 kod nomodify nopeer notrap
#########################################################
And this is the one for the clients:
#########################################################
server mainserver
driftfile /var/lib/ntp/ntp.drift
restrict default nomodify nopeer
restrict 127.0.0.0
logfile /var/log/ntp.log
#########################################################
Before anyone asks: yes, mainservers resolves OK to the main server's
IP address. There's no firewalling/filtering in the internal network.
Any help is appreciated.
--
Julio C. Ody
http://rootshell.be/~julioody
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html