Mailinglist Archive: opensuse (1002 mails)

< Previous Next >
[opensuse] Re: chrony and hwclock
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Tue, 19 Jul 2011 11:23:54 +0200
  • Message-id: <j03ifb$t0l$1@dough.gmane.org>
Roger Oberholtzer wrote:

After boot (real time was 21.48), I see this is /var/log/messages:

Jul 18 23:48:59 barracuda ntpd[3033]: ntpd 4.2.6p3@1.2290-o Tue Jun 7
03:10:56 UTC 2011 (1)

As Per wrote, at the time of start of ntpd, system time is already
set incorrect. You need to investigate that first and stop to fuss
about ntpd not synchronizing to its time sources - you can do that
later... ;-)

First, you have to assure that book.clock works:

1) Check that "hwclock -r -u" outputs roughly correct time in UTC.

2) Check: HWCLOCK="-u" in /etc/sysconfig/clock.

3) Check that /etc/sysconfig/clock has a European timezone name
as TIMEZONE value. (The value of DEFAULT_TIMEZONE doesn't
matter.)

4) Check that /etc/localtime is correct:
$ bash
$ . /etc/sysconfig/clock
$ cmp /etc/localtime /usr/share/zoneinfo/$TIMEZONE
# This must output no message
$ exit

5) Call "/etc/init.d/boot.clock restart" and check with "date"
if the time is off by 2 hours afterwards.

Report back if all of these tests are OK at your installation.
If yes, debugging the ntpd startup will be the next step.

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups