LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2010, 12:41 PM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
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
 
Old 09-08-2010, 01:01 PM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
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
 
Old 09-08-2010, 01:10 PM   #3
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
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 View Post
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

Last edited by pgb205; 09-08-2010 at 02:00 PM.
 
  


Reply

Tags
clock



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Slow system clock and stray hardware clock, pleas help! Epox Linux - General 6 01-02-2007 02:43 PM
why is my clock always being put forward?? woodywellhung Linux - General 2 07-20-2004 06:21 AM
clock keeps going forward one hour every reboot. Frustin Linux - General 2 08-08-2002 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration