Bill Nottingham wrote:
> 
> John DeDourek ([EMAIL PROTECTED]) said:
> > What we see in the /var/log/messages file.
> > ...
> > The next message
> > ("rc.sysinit: Loading default keymap succeeded") has the wrong time, 4
> > hours late (our offset from UTC).
> > ...
> What you're seeing here is actually messages from earlier in the
> boot ineterleaved with later messages (since they aren't passed
> to syslog until after syslog is started.) The timestamp on these
> is whatever time the system thought it was when the message
> was generated; if the message is from when before the clock
> is set, it might not have the 'correct' time.
>
Ahah.  That explains part of it.  Note the following:

/sbin/hwclock --show --utc ; date
Tue Nov 16 09:29:13 1999 -0.464797 seconds
Tue Nov 16 09:29:13 AST 1999
/sbin/hwclock --show ; date
Tue Nov 16 13:29:38 1999 -0.535742 seconds
Tue Nov 16 09:29:38 AST 1999

So we run our hardware clock, pretty accurately, on UTC.  The log time
stamps
in /var/log/messages after a boot on RedHat 6.0 go like

Nov 12 08:22:35 ... syslog: klogd shutdown succeeded
Nov 12 08:22:35 ... exiting on signal 15
Nov 12 08:24:01 ... syslogd 1.3-3: restart.
Nov 12 08:24:01 ... syslog: syslogd startup succeeded
Nov 12 08:24:01 ... syslog: klogd startup succeeded
Nov 12 08:24:01 ... kernel: klogd 1.3-3, log source - /proc/kmsg started
Nov 12 08:24:01 ... kernel: Inspecting /boot/System.map-2.2.5-22
...
Nov 12 08:24:02 ... atd: atd startup succeeded
Nov 12 08:24:02 ... crond: crond startup succeeded
Nov 12 12:23:35 ... rc.sysinit: Loading default keymap succeeded
Nov 12 12:23:35 ... rc.sysinit: Setting default font succeeded
...
Nov 12 12:23:44 ... rc.sysinit: Checking filesystems succeeded
Nov 12 08:23:54 ... rc.sysinit: Mouting local filesystems succeeded
Nov 12 08:23:54 ... rc.sysinit: Turning on user and group quotas for
local
          filesystems succeeded
Nov 12 12:23:56 ... date: Fri Nov 12 08:23:56 AST 1999
Nov 12 08:23:56 ... rc.sysinit: Setting clock  (utc): Fri Nov 12
08:23:56 AST

Thus, all the time stamps are apparently coming from an accurate clock,
except that some of them have come from a "clock" set as if the hardware
clock were running local time (windows style) rather than UTC (unix
style).

Anyone out there running their hardware clock on UTC, with RedHat 6.1
see
a similar situation in /var/log/messages after a boot, or have the
changes
in clock setting fixed that?

John DeDourek

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to