RE: Strange clock reset on boot

Ethan Erchinger <[email protected]> Thu, 20 Nov 2003 11:31:08 -0800
Newsgroups gmane.comp.lib.libtai
Message-ID <[email protected]>
I get this at times as well.  I believe what is happening, is that init is
starting the /service infrastructure, and brings up clockspeed and
clockspeed_adjust.  At that time, networking isn't quite up, or the
spanning-tree algorithm hasn't brought the port up on your switch.

Since the infrastructure below, feeds any adjustments (failed or not) into
clockadd, it's possible you're getting gibberish into clockspeed (or just a
bad reading due to latency), and drastically skewing the clock.

I've modified the below setup to include a 60 second sleep in the adjust
script, before it enters the main loop.

I may be wrong, but it's what I attributed the time change to.
Ethan

-----Original Message-----
From: Ed Vazquez [mailto:[email protected]] 
Sent: Thursday, November 20, 2003 10:58 AM
To: [email protected]
Subject: Strange clock reset on boot


Not sure if this has been seen before, but here goes.

Two different hardware and OS platforms (Gentoo and OBSD, AMD and
Intel).

Both are currently running Frank Tegtmeyer's scripts for
synchronization
(<http://fte.tegtmeyer.net/djbware/clockspeed_setup.html>) and seem
to be consistent once things are up and running.

Same issue happens on both platforms.

On each reboot, the system clock gets reset to Monday, January 29
09:16 2029.

I interrupted the POST on both devices and during POST, the BIOS
clock is set correctly for GMT/UTC.

Once either box boots up, NTPDATE can successfully reset the clock,
and everything works fine from there (clockspeed, taiclock,
sntpclock, etc.) but the time is continually reset on boot and is
repeatable.

This happens regardless of using the Tetgmeyer scripts or not.

System details:
Pentium II
OpenBSD 3.2
daemontools 0.76
clockspeed 0.62
ntpd 4.2.0 (for local serving to non-TAI enabled devices)

AMD Athlon MP 2100 (dual)
Gentoo Linux 1.4 r8 (kernel 2.4.20)
daemontools 0.76
clockspeed 0.62
(no ntpd here, member server)

Any ideas?  Further details need to be posted?

Thanks,

-- 
Ed Vázquez

I have discovered that all human evil comes from this, man's being
unable to sit still and quiet in a room alone. - Blaise Pascal