I note that in the booting logs for Red Hat 6.0, on a system where the
hardware clock is kept in UTC rather than in local time (system never
runs windows) that the logged time is exactly 4 hours later than actual
local time.  Given that our hardware clock is running 4 hours later than
local time, I suspect that the problem is that the booting system, for
a period of time, thinks that the hardware clock is correct local time.

What we see in the /var/log/messages file is that after a reboot
("shutdown -r now"), the booting messages are correctly time stamped
from
the first apparent bootup message ("syslogd 1.1-3: restart") through the
cron start message ("crond: crond startup succeeded").  The next message
("rc.sysinit: Loading default keymap succeeded") has the wrong time, 4 
hours late (our offset from UTC).  This continues through "rc.sysinit:
Checking filesystems succeeded".  The next message "Mounting local
filesystems succeeded" resumes the proper time stamping.

Has anyone else seen this behaviour on a Red Hat 6.0 system with the
hardware clock running on UTC?


Ingo Luetkebohle wrote:
> 
> Hiya,
> 
> I'd like to recommend setting the hardware clock in the NTP scripts. A
> simple call to "hwclock --systohc" (add --utc if applicable) should
> suffice. A good place would be the kill script (reasoning that xntpd has
> had sufficient time to synchronize). In case step-tickers are available, it
> can be set in the startup scripts.
> 
> The reasoning is that if the hardware clock and the real time differ a lot,
> there is a period during booting where the time is vastly wrong, but this
> time difference is not noted during normal operations (because ntp has
> kicked in). A number of daemons and programs that process time behave in a
> very weird way of they are started in "the future". To give just two
> examples, cron will stop executing cron scripts until the time it was
> `really' started has been reached again, and the process accounting tools
> will print completely wrong results.
> 
> Regards,
> 
> ---Ingo Luetkebohle / 21st Century Digital Boy
> 
> Confident, cocky, lazy, dead.
> [J. Dread, Otherland]
> 
> --
> To unsubscribe:
> mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

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

Reply via email to