Forum Moderators: bakedjake

Message Too Old, No Replies

Server Clock

Server clock not keeping time correctly

         

joedub

10:40 am on Dec 14, 2004 (gmt 0)

10+ Year Member



Hello,

The clock on my server is losing time pretty badly. In the space of 12 hours it's falling around 20 seconds behind another clock im synching it to. Any ideas how to get round or rectify this?

wheel

1:42 pm on Dec 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1) Feed the gerbils

2) install ntpd - a daemon that synchronizes your server clock with some offsite accurate clock.

Glacai

3:10 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



Not sure if this will be the same for you but on suse you need to delete /etc/adjtime, set the time with hwclock and repeat a few times about a week apart.

mcavic

5:26 am on Dec 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



40 seconds per day is too much drift even for ntpd to keep up with.

I have that problem with a Dell PowerEdge server. I haven't figured out a solution, but if you're not running any applications that are extremely time-sensitive, you could:

1) Go ahead and let ntpd run, even though it'll probably never sync completely.

or

2) Run a cron job to sync every 15 minutes or hour using ntpdate.

joedub

9:49 am on Dec 16, 2004 (gmt 0)

10+ Year Member



For some reason the hardware clock was running ok, just the system clock that was losing it, so i set a cron job to run every 5 seconds to synchronise the system clock from the hardware clock and now thing are ok.

/sbin/hwclock --hctosys