QUESTION
How could TOY preposterous time occur upon triple-booting?
Tru64 V5.1A (dka0) : Tru64 V5.1A (dka100) : Tru64 V5.1A (dqb0)
ACRONYMS
TOY : Time of Year : part on the system's motherboard with battery backup
INSIGHT FACTS
+ On older systems or a system having been powered off for quite a while
(several days or more), the TOY clock battery may be dead.
+ The value in the TOY clock register is not stored in a common format between
UNIX and OpenVMS and the console firmware.
+ TOY can get set with a good value during system startup.
o A TOY backup value is saved in the disk label of the boot disk.
o TOY can get set if running a network time service.
+ A bogus TOY time value would wind up with bad time stamps on files and
things that depend on file time stamping not working at all correctly.
ANSWER
>>> boot dka0
<...>
# make <CD-ROM image on dka100 with .tgz dumps of a to-be-cloned dsk0>
# shutdown -h now
Jan 20 20:30:00 pmgrd[656]: PM daemon exiting on signal 15...
syncing disks... done
CPU 0: Halting... (transferring to monitor)
>>> boot dka100
<simulate CD-ROM booting and install .tgz dumps on rz8 i.e. dqb0>
# ls -lR /mfs/mnt/etc/fdmns/
total 24
-r-------- 1 root system 0 Jan 20 20:40 .advfslock_fdmns
-r-------- 1 root system 0 Jan 20 20:40 .advfslock_root_domain
-r-------- 1 root system 0 Jan 20 20:40 .advfslock_usr1_domain
-r-------- 1 root system 0 Jan 20 20:40 .advfslock_usr_domain
drwxr-xr-x 2 root system 8192 Jan 20 40:10 root_domain
drwxr-xr-x 2 root system 8192 Jan 20 40:10 usr1_domain
drwxr-xr-x 2 root system 8192 Jan 20 40:10 usr_domain
/mfs/mnt/etc/fdmns/root_domain:
total 0
lrwxr-xr-x 1 root system 9 Jan 20 20:43 rz8a -> /dev/rz8a
<...>
# ls -l /dev/rz8*
ls: No match.
>>> boot dqb0
<boot the cloned disk and fail thanks to rz8 vs. dsk0>
<...>
Alpha boot: available memory from 0xd8a000 to 0xff3c000
Compaq Tru64 UNIX V5.1A (Rev. 1885); Tue Jan 20 20:59:15 CET 2004
physical memory = 256.00 megabytes.
available memory = 241.69 megabytes.
using 948 buffers containing 7.40 megabytes of memory
Firmware revision: 5.9-4
PALcode: UNIX version 1.86-68
COMPAQ AlphaServer DS10 617 MHz
<...>
NetRAIN configured.
panic (cpu 0): vfs_mountroot: cannot mount root
syncing disks... done
DUMP: Warning: no disk available for dump.
DUMP: first crash dump failed: attempting memory dump...
DUMP: compressing 25880KB into 223567KB memory...
DUMP: Starting Address Ending Address Size(MB)
DUMP: ------------------ ------------------ --------
DUMP: 0xfffffc000fd70000 - 0xfffffc000ff3bfef 1.7 (indicator)
DUMP: Writing data. [1MB]
DUMP: crash dump complete.
halted CPU 0
halt code = 5
HALT instruction executed
PC = fffffc000044fa70
>>>
>>> boot dka0
<"TOY clock" story>
Alpha boot: available memory from 0xee4000 to 0xff3c000
Compaq Tru64 UNIX V5.1A (Rev. 1885); Wed May 15 12:40:17 CEST 2002
<...>
NetRAIN configured.
i2c: Server Management Hardware Present
WARNING: preposterous time in TOY clock -- CHECK AND RESET THE DATE!!
vm_swap_init: swap is set to eager allocation mode
Checking device naming:
Passed.
Checking local filesystems
<...>
Subsystem hwautoconfig was successfully configured.
Jan 20 20:12:47 update: started
Checking for Installation Tasks...
Executing Installation Tasks...
The system is coming up. Please wait...
<...>
Setting kernel timezone variable
Setting the current time and date with ntpdate
Wed Jan 21 11:37:27 CET 2004
Ntpdate succeeded.
WORKAROUND
Please note that Jan 20 20:12:47 above, might be the backup value saved in the
disk label of the dka0 boot disk.
The same sequence, now successful thanks to MAKEDEV rz8:
>>> boot dka0
<...>
# make <CD-ROM image on dka100 with .tgz dumps of a to-be-cloned dsk0>
>>> boot dka100
<simulate CD-ROM booting and install .tgz dumps on rz8 i.e. dqb0>
# cd /mfs/mnt/dev; ./MAKEDEV rz8
MAKEDEV: special file(s) for rz8:
rz8a rrz8a rz8b rrz8b rz8c rrz8c rz8d rrz8d rz8e rrz8e rz8f rrz8f rz8g rrz8g
rz8h rrz8h
# ls -l rz8*
brw------- 1 root system 8,16384 Feb 3 16:55 rz8a
<...>
>>> boot dqb0
<boot the cloned disk>
>>> boot dka0
<...>
# make <better CD-ROM image on dka100>
THANKS TO
Dr. Thomas P. Blinn
Tom Ackenhusen
FOTI Gergely
Lucien HERCAUD
SEE ALSO
+ "TOY clock" story
Date: Wed, 21 Jan 2004 12:21:55 +0100
From: Daniel Lungu <lungu_at_nagra.com>
To: tru64-unix-managers_at_ornl.gov
Subject: SUMMARY: TOY clock
Received on Wed Feb 04 2004 - 10:20:50 NZDT