system clock running 2h early although ntpd enabled

Christopher J. Ruwe cjr at cruwe.de
Sat Feb 12 13:11:52 UTC 2011


On Sat, 12 Feb 2011 11:42:19 +0000
Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:

> On 11/02/2011 21:16, Christopher J. Ruwe wrote:
> > Since some weeks my local clock runs two hours early.
> > My /etc/localtime is a copy of /usr/share/zoneinfo/Europe/Berlin
> > and I have set both ntpd_enable="YES" and ntpd_sync_on_start="YES".
> > My ntp.conf consists of 
> > 
> > server ntp1.ptb.de prefer
> > server ntp2.ptb.de
> > restrict default ignore
> > restrict 127.0.0.1
> > 
> > Surely, I must be missing something. Does anybody have an idea?
> > 
> 
> Sounds like your CMOS clock is set to local wallclock time, but you
> haven't got the /etc/wall_cmos_clock file.  Or vice-versa: your CMOS
> clock is set to UTC, but you've got the wall_cmos_clock file.  See
> adjkerntz(8) for details.  The CMOS clock is what drives the time/date
> display shown in the system BIOS, and it's separate from the clock
> used for the system time when the OS is running.

OK, thank you, that was indeed the case, i.e., the CMOS clock was set
to local time. I do not know why, usually I set it to GMT, so I never
did bother to check. Turned out I should have had this time.

> [snip]
> 
> Personally, if the machine is dedicated to running FreeBSD (or FreeBSD
> and other unixoid OSes) I'd set the CMOS clock to UTC[*]

It is now. Thanks and cheers,
-- 
Christopher J. Ruwe
TZ GMT + 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110212/f0ac4b70/signature.pgp


More information about the freebsd-questions mailing list