[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

10054.0. "Date/Time Again..." by BPSOF::TELEKI (Laszlo Teleki) Thu Jun 05 1997 12:06

I need some help reassuring one of our customers about the date/time problem on
his TurboLaser running D. UNIX v3.2d-1.

After a power loss the date of the system changed to 2025 (the remaining part of
the date/time hasn't changed). I booted to single user mode, set date, mount -u
/ and rebooted. This worked. But a week or two later the same story repeated
again. After reading the relevant notes here and in the TurboLaser conference I
gave the following explanation to the customer:

"Since the year is stored in the root file system's timestamp and the power
outage left the file system metadata in an inconsistent state therefore it's not
surprising that the year has changed. It's not an expected operating condition
to cut off the power."

Was I right or the should explanation be completed or did I tell him total mess?

Thank you in advance and regards,

Laszlo
T.RTitleUserPersonal
Name
DateLines
10054.1Does the console know it's UNIX?WIBBIN::NOYCEPulling weeds, pickin' stonesThu Jun 05 1997 14:2917
I *think* the correct answer is different.

OpenVMS, Digital UNIX, and probably Windows NT all have
slightly different ways of using the battery-backed wristwatch
chip that the hardware uses to implement a long-term clock.
For example, VMS stores local time, while Digital UNIX stores
UTC.  Rather than take the risk that the time would be off
by just a few hours (and not be noticed for a long time),
Digital UNIX chooses to store an offset date.

If the console believes it's in "OpenVMS mode" it will
misinterpret the UNIX offset date.  Are you seeing the wrong
date only in the console, or also in Digital UNIX?  Or did you
reset the date in the console, thus confusing UNIX?

I think if you keep your hands off it, and reboot after the
power is restored, the date will be OK from within UNIX.
10054.2TEMPER::"[email protected]"telekiFri Jun 06 1997 07:3414
Thank you for your answer.

Perhaps it hasn't turned out of my note clearly but I've never adjusted 
the date in console mode but only in Digital UNIX (and in single user mode!). 
The OS_TYPE console variable was UNIX, which means (I think) the console 
was in UNIX mode. 

So I don't know now where I am. Could you please, give me an explanation 
why only the year portion of the date changed after the power outage?

Rgds,

Laszlo
[Posted by WWW Notes gateway]