1828192 Members
2034 Online
109975 Solutions
New Discussion

Linux clock too fast

 
Jack Fan
Regular Advisor

Linux clock too fast

Dear All,
I had installed a Red Hat Advanced Server 2.1
But the clock too fast than current time even I have adjust the system clock.
What's wrong? And How can I do?

Thanks,

Jack Fan
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Linux clock too fast

If on the internet, you can get accurate time with ntp.

Her is a configuration file with a sample connection to a time source.

from /etc/ntp.conf

server 140.221.8.88 # local clock
fudge 127.127.1.0 stratum 10

#
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
#
driftfile /etc/ntp/drift
#multicastclient # listen on default 224.0.1.1
broadcastdelay 0.008


service ntpd start

service ntpd stop (to stop)

service nptd restart

You can install ntpd if its missing fromt he original cd's

To check, on red hat rpm -q ntpd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sergejs Svitnevs
Honored Contributor

Re: Linux clock too fast

To set the system clock:
# date --set='2003mar21 22:51'

To set the hardware clock:
# hwclock --utc --systohc

Make sure the timezone is correct and you should be all set at the next reboot.
Regards,
Sergejs