Sunday, April 17, 2011

HP-UX Networking - NTP Losing Synchronization

When trying to synchronize an HP-UX 11.11 server to an external time source it repeatedly loses synchronization. The following excerpt is from the syslog :

Dec 4 10:01:09 rep2 xntpd[27557]: synchronized to 132.163.4.102, stratum=1
Dec 4 10:20:59 rep2 xntpd[27557]: time reset (step) -0.276097 s
Dec 4 10:20:59 rep2 xntpd[27557]: synchronization lost
Dec 4 10:26:19 rep2 xntpd[27557]: synchronized to 132.163.4.102, stratum=1
Dec 4 12:42:22 rep2 xntpd[27557]: time reset (step) -0.279892 s
Dec 4 12:42:22 rep2 xntpd[27557]: synchronization lost
Action Taken:
1. Ran ntpq -p . It does not have any good servers to synchronize.
2. It was discovered that none of the NTP servers in the /etc/ntp.conf file, could be successfully pinged.
3. It was also discovered that ntptrace timed out twice and occasionally worked on the third try.
4. It appears that the NTP servers listed in the /etc/ntp.conf file are not reliable.
5. Chose a Reliable time Source.
1. NTP servers are available on the Internet. If your system is connected to the Internet, you may use time from one or more of these servers as reference time.
Click here for a list of NTP servers http://www.ntp.org.
2. If your local network is not connected to the Internet, you may use one of the machines on your LAN as your timeserver and consider its clock as standard.
6. Chose multiple time servers and edited the /etc/ntp.conf to include the reliable NTP servers.
7. Used the following commands to restart the xntpd daemon
/etc/init.d/xntpd stop
/etc/init.d/xntpd start
8. The NTP daemon process is started at boot time. At start time, xntpd reads its configuration file /etc/ntp.conf and configures itself.
9. After choosing the reliable time source, NTP is synchronizing properly.

No comments: