LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   System Clock keeps drifting forward (https://www.linuxquestions.org/questions/linux-general-1/system-clock-keeps-drifting-forward-831028/)

pgb205 09-08-2010 12:41 PM

System Clock keeps drifting forward
 
the time on system clock given with 'date' command keeps moving forward about 1 minute for every hour of realtime. The box is up all the time so this is not an issue with motherboard battery. An equivalent box with the same hardwre/OS and applications doesn't have the same level of drift. I'm not sure what else this could be.
Both boxes are Centos 5.2 64-bit.

thanks for any suggestions

thedonkdonk 09-08-2010 01:01 PM

Is this a virtual server?

You can run as root:
Code:

ntpdate 0.pool.ntp.org
hwclock --systohc

That will set the correct time. To keep the time from drifting you can turn on ntpd.
Code:

service ntpd restart

pgb205 09-08-2010 01:10 PM

my concern that even without ntp the time shouldn't drift that much.
what would cause it to drift this much forward?
it's not a virtual box btw.

Quote:

Originally Posted by thedonkdonk (Post 4091645)
Is this a virtual server?

You can run as root:
Code:

ntpdate 0.pool.ntp.org
hwclock --systohc

That will set the correct time. To keep the time from drifting you can turn on ntpd.
Code:

service ntpd restart



All times are GMT -5. The time now is 06:15 PM.