1835066 Members
2613 Online
110073 Solutions
New Discussion

System time is fast !!

 
SOLVED
Go to solution
Simon R Wootton
Regular Advisor

System time is fast !!

I have an L class server runninh HPUX 11i. My problem is simple, the system clock is fast, it's probably gaining 1 minute/week - any idea's or solutions ?
6 REPLIES 6
Stefan Farrelly
Honored Contributor
Solution

Re: System time is fast !!


You'll need to setup a time server and use NTP to sync your clock to stop it gaining.

See man xntpd
Its easy to setup.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Animesh Chakraborty
Honored Contributor

Re: System time is fast !!

Hi,
You can use NTP(network time protocol)
If you need help on NTP pls. let us know.

Did you take a backup?
Frederic Sevestre
Honored Contributor

Re: System time is fast !!

Hi,

You can try to use NTP to sychronize your server to others.
The NTP protocol will select itself the best server to synchronize the others.
Edit the file /etc/ntp.conf, /etc/rc.config.d/netdaemons.
Then start xntpd using /sbin/init.d/xntpd start.

You can either use SAM.

Hope this help,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Fragon
Trusted Contributor

Re: System time is fast !!

Of course you can use NTP to keep nicety of the clock! But now you can use SAM to change your clock first! Please stop certain service such as DB application before modify the clock!

John Bolene
Honored Contributor

Re: System time is fast !!

Sync that ntp to an outside internet source like the gateway of your ISP.

I have several servers, some run fast, some run slow, some keep pretty darn good time. This is a fact of life with electronics.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
John Payne_2
Honored Contributor

Re: System time is fast !!

Also in ntp.conf, there is an entry for what they call the 'driftfile.' This writes to a file that you can look at to see the last timestep the system took. This can be useful to see if theings are going from kind of bad to very bad as far as time goes. (A system losing lots of time could be having unseen hardware problems, etc.) Plus, as most SA's are curious in nature, it is nice to see what your system is doing all the time.

The format is 'driftfile /etc/drift.file' where /etc/driftfile is the file for it to write to.

Hope it helps

John
Spoon!!!!