Click to See Complete Forum and Search --> : Clock problem


Allan Crooks
10-30-2001, 11:56 AM
While pinging my machine, I get the following error message:

Warning: time of day goes back, taking countermeasures.

This is not really a ping problem, I'm sure it's probably to do with my clock, but any ideas how to fix it?

X_console
10-30-2001, 12:10 PM
http://isp-lists.isp-planet.com/isp-linux/0109/msg00136.html

posterboy
10-30-2001, 04:04 PM
Getting your clocks together is not that hard. There are really two entirely different "clocks" in Linux.
Get both the software and hardware clocks right like this:
date MMDDhhmmYYYY and then do "date" again to make sure you have it close to the right time. Hint: do ntptime as root for the correct time.
Next, hwclock --systohc will put the just set software time into the hardware RTC. Now, no RTC stays right. Consider running NTP to insure all the boxes are at millisecond accuracy with no attention from you at all, after it's setup. I have a page on this at www.raymondjones.net/ntpguide.html (http://www.raymondjones.net/ntpguide.html)