NTP - Time not updating
Hello,
A few months ago we switched the NTP servers that our Linux servers use to point to a couple of windows servers that the rest of the company uses. Since that time we have been having issues with time staying synced up on some of these servers. The servers are all Redhat or CentOS 5.x or 6.x. The strange thing is I can do a ntpd -gq to force an update and it works. I have verified that port 123 is open via "nc -uvz INTERNALSERVER1 123". Below are a few strange things I have noticed on the servers that are not updating time correctly: Code:
# ntpq -p Stratum is 16 which I believe means out of sync: Code:
# ntpq -c readlist Code:
# /usr/sbin/ntpq -c "rv 0 offset" Code:
# ntpdc -c loopinfo Let me know if there is more information I can provide. Below is my ntp.conf: Code:
# Permit time synchronization with our time source, but do not Chris. |
How are windows servers configured for time?
Are there other linux computers synching with the windows servers? Do they have an internal fudge setting in their ntp.conf file? Not enough information but in general windows servers only using w32time do not provide enough accuracy to be used by ntp. |
michaelk,
Thanks for the response. I don't have access to the windows servers, but can try and get some of that information from their admins. There are serveral of our linux servers that are staying in sync using these servers, however, with the same ntp.conf configuration. The only correlation I've been able to find so far is that the servers having issues are RH 5.6 and 5.11. Some of the servers not having issues are RH 5.8 and 6.6. Is there anything else I can provide besides windows server configuration? Thanks, Chris. |
What happens if you restart ntp?
|
It restarts and resyncs the time, but does not sync with the peers. All of the commands return the same as my initial post.
Thanks, Chris. |
Hello claforce ,
Try this , 1. empty the /etc/ntp.conf and add your ntp server IP >/etc/ntp.conf vi /etc/ntp.conf and add the ip example [root@airpal ~]# cat /etc/ntp.conf server 10.0.0.5 2. start the ntp daemon /etc/init.d/ntpd start 3. check the connection / sync with your ntp server using ntpstat example [root@airpal ~]# ntpstat 10.0.0.5 synchronised to NTP server (10.0.0.5) at stratum 4 time correct to within 134 ms polling server every 1024 s 4. you can verify with ntpq -pn example [root@airpal ~]# ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== *10.0.0.5 2xx.2xx.1x.1xx 3 u 859 1024 377 2.106 29.718 36.905 hope this helps |
All times are GMT -5. The time now is 05:31 AM. |