Mailinglist Archive: opensuse-factory (845 mails)

< Previous Next >
Re: [opensuse-factory] wrong system time if no NTP (local hwclock)
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sat, 10 May 2008 15:04:01 +0200 (CEST)
  • Message-id: <alpine.LSU.1.00.0805101454020.29096@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



The Saturday 2008-05-10 at 01:39 -0400, Felix Miata wrote:

1
/etc/adjtime from my 10.2 server:
0.000101 1204753900 0.000000
1204753900
LOCAL

/etc/adjtime from the Factory box I was using today:
0.000234 1210343800 0.000000
1210343800
LOCAL

Both are multiboot systems with the hardware clock set to local (GMT-0400)
time. Why are they different?

That's normal.

The adjtime file serves to keep track of the different speed of the hardware clock (the cmos, battery, clock) when compared with an external source, with the purpose of adjusting for the estimated clock drift when booting the system. It is absolutely normal than different machines have different drifts.

Even the same machine when multibooted will have different data:

factory, this machine:

cer@nimrodel:~> cat /otros/test_d/etc/adjtime
0.308270 1208691242 0.000000
1194859198
UTC


10.3, this same machine:

- -0.003739 1210007671 0.000000
1210007671
UTC

10.2, this same machine:

- -0.000595 1202391337 0.000000
1202391337
UTC



I have NTP (and NSCD) set to start only in runlevels 3 & 5, since in 1 & 2
there is no network. /etc/sysconfig/clock contains HWCLOCK="--localtime",
SYSTOHC="yes", TIMEZONE="America/New_York", DEFAULT_TIMEZONE="US/Eastern".

When I boot to runlevel 2, the system time has the time zone offset doubled.
When GMT is noon, and localtime is 08:00, the system time booted to Factory
is 04:00, even though hwclock and hwclock --localtime both correctly show
08:00. Only after upping runlevel to 3 or 5, which starts NTP, is the system
time correct. Surely I'm not the only one seeing this. System was last
updated around 00:00 local on 09 May. Anyone know which Bugzilla bug this is,
and how one would tell?

That's a bug.

You could check to see if the time is correct in runlevel 3 and 5 with NTP disabled, to make sure.

And if you cant ascertain if it has been reported in Bugzilla, doesn't matter, report again: the people there will know. Even if marked as duplicated it serves to calibrate the incidence of a bug. So they told once, at least :-)

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIJZ1DtTMYHG2NR9URAjwsAJ0cklq9ksqA8A/g+cA1+c7ay+n22wCfbwxq
V5egII1MAYNLbIuUs9eFKDY=
=XTHH
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References