NTP out of sync?

Barrett

Is your unix-based system time out of sync? If it is out of sync by more that 1000 seconds, you will need to manually force it back into sync. Try:

# ntpd -q

to force a re-sync with the ntp time servers specified in your NTP configuration file.

Two issues that may arise:

  1. Your ntp servers may need updating in your /etc/ntp.conf file (one of many NTP server lists).
  2. Check if you are being stymied by trying to update from behind a firewall.

Also, you can try using the deprecated ntpdate along with the regional host name that makes the most sense provided with the server name (see list above).

for example:
# ntpdate north-america.pool.ntp.org

And finally, use ntpq to check that your offset and jitter aren't too large (times are shown in milliseconds):

# ntpq -p

Check any of the above commands' man pages for an in-depth explanation of each one and it's possible options.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options