Hardware time ok, system time not ok

Carsten Aulbert carsten.aulbert at aei.mpg.de
Wed Jan 19 11:48:30 UTC 2011


Hi Jorge

On Wednesday 19 January 2011 12:33:11 Jorge Andres Brugger wrote:
> Scenario: Ubuntu Server 9.04 on a Quad-Core AMD Server, all updates
> applied.
> 
> root at server3:~# date
> Wed Jan 19 08:16:52 ART 2011
> 
> root at server3:~# hwclock
> Wed 19 Jan 2011 08:23:02 AM ART  -0.298296 seconds
> 
> There is a cron that syncs both clocks from pool.ntp.org every midnight.
> 
> But there is always a gap of several minutes between hardware clock and
> system clock.
> 
> Server is always on.
> 
> How can I fix this issue?

I think, you should
(a) stop the cron job
(b) install ntpd to run continuously in the background
(c) trust the system time, ignore the hardware clock
(d) let hwclock set the hardware clock upon system shutdown

That way, all should be well.

HTH

Carsten




More information about the ubuntu-server mailing list