NTP out of sync?

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.

Filed under:

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <cpp>, <java>, <php>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Ready for transformation?