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.
My Linux system shows a current time with the date command that is 12-14 minutes behind the time shown by my DirecTV satellite receiver or my wife's MS Vista system. ntpd is running; it's polling several ntp servers; ntpstat claims that the system time is accurate to 11ms. What could be going wrong?
Basically none of the time servers are good enough to use (look at the values for offset and jitter) so ntp has defaulted to your local clock. Note the * beside LOCAL(0).
What does your /etc/ntp.conf file contain for servers?
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
Offset is the difference between your clock and the server.
Jitter is a measurement of stability of the timer server.
Changing the clock within a couple of minutes will help sync your system to a ntp server faster.
Last edited by michaelk; 09-13-2009 at 06:18 PM.
Reason: Additional information
Basically none of the time servers are good enough to use (look at the values for offset and jitter) so ntp has defaulted to your local clock. Note the * beside LOCAL(0).
What does your /etc/ntp.conf file contain for servers?
Oh, so that's what "*" means. But I don't know what is the problem with the last server listed. Here are the servers requested in ntp.conf:
Code:
server 0.fedora.pool.ntp.org
server 1.fedora.pool.ntp.org
server 2.fedora.pool.ntp.org
server 127.127.1.0
server ntp.hawaii.edu
I quess I shouldn't have 127.127.1.0 in there, so that ntpd will look outside my system. Wait ... I've removed the line "server 127.127.1.0" from /etc/ntp.conf, restarted ntpd, waited about 4 minutes, and now my system time appears to be correct. Problem solved; thanks loads.
BTW server 127.127.1.0 is a fake time server when your computer can not connect to the internet. Restarting ntpd was probably all that was needed. At least its working now.
Oh, so that's what "*" means. But I don't know what is the problem with the last server listed. Here are the servers requested in ntp.conf:
Code:
server 0.fedora.pool.ntp.org
server 1.fedora.pool.ntp.org
server 2.fedora.pool.ntp.org
server 127.127.1.0
server ntp.hawaii.edu
I quess I shouldn't have 127.127.1.0 in there, so that ntpd will look outside my system. Wait ... I've removed the line "server 127.127.1.0" from /etc/ntp.conf, restarted ntpd, waited about 4 minutes, and now my system time appears to be correct. Problem solved; thanks loads.
These aren't VM servers by any chance, are they?? Linux guests under VMware ESX had a bug, causing time to drift quickly. It would eventually get so far out of whack, that NTP would die, or go back to local-reference.
VMware and/or RedHat (can't remember right now), released a patch that supposedly fixed it.
I don't do anything that requires that sort of constant syncing. I just run "ntpdate time-b.nist.gov" every so often and that is good enough. I'm rarely more than five minutes off if I do that at least once a month. Baring any sort of power outage, heavy media processing / game playing, or other things that toys with the system clock. One caveat is that I do have to lower my network usage (dial-up connection) to have it work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.