Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I'm trying to resolve an issue I have on one of our servers where the ntp offset is at 1113 second or about 19 minutes. Right now it is showing 2:32PM when it is really 2:14PM. The server has the same ntp.conf as other servers in the same subnet which are not having issues, and ntpd is setup in chkconfig and is running. This is a CentOS 5.8 server.
Code:
# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*4.53.160.75 204.9.54.119 2 u 15 64 377 6.840 -111338 0.463
+69.164.204.77 66.228.59.187 3 u 3 64 377 21.044 -111338 0.302
+50.7.64.4 147.231.2.6 2 u 26 64 377 33.878 -111338 0.279
127.127.1.0 .LOCL. 10 l 9 64 377 0.000 0.000 0.001
# ntpdate -b time.nist.gov
10 Sep 14:24:53 ntpdate[20451]: step time server 128.138.141.172 offset -1113.385469 sec
I've even tried to force a change, but the time will not upudate.
Code:
# ntpd -gq
ntpd: time set -1113.391540s
or
Code:
#sntp -r time.nist.gov
The time correction is -1113.401 +/- 0.000+0.026 seconds
Do you want to correct the time anyway? y
Here is my currently /etc/ntp.conf
Code:
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
#broadcast 192.168.1.255 key 42 # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 key 42 # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 key 42 # manycast client
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42
# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
Please let me know if you can offer any assistance.
Thanks,
Commenting this section out will help prevent future large time offsets:
Code:
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
Otherwise you have to use 'ntpdate' or 'ntpd -q' to set it if there is a large offset.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.