Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Where does Linux get the date from?
  1999-11-03 14:06 Xpert98 video card Eric Jones
@ 1999-11-03 15:40 ` Todd Henderson
  1999-11-03 16:47   ` Xiaozhou Qiu
                     ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Todd Henderson @ 1999-11-03 15:40 UTC (permalink / raw)
  To: axp-list

I've got a cluster of XP1000's, and they all seem to boot up with a date from
the year 2047.  I can set the date, reboot, and it goes back to 2047.  Is
there a setup for the date in the SRM?  I did a show in the SRM and didn't
see anything that looked like a date?
This is Redhat 6.0.

Thanks,
Todd



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
  1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
@ 1999-11-03 16:47   ` Xiaozhou Qiu
  1999-11-03 16:47   ` Jim Gettys
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Xiaozhou Qiu @ 1999-11-03 16:47 UTC (permalink / raw)
  To: axp-list

After setting the correct date, use "clock -w" to write it to CMOS. 

sincerely yours
Xiaozhou Qiu

http://www.iol.unh.edu/linux/alpha
Linux Consortium
Interoperability Lab
University of New Hampshire
Durham,  NH 03824

(603)862-1908
                  

On Wed, 3 Nov 1999, Todd Henderson wrote:

> I've got a cluster of XP1000's, and they all seem to boot up with a date from
> the year 2047.  I can set the date, reboot, and it goes back to 2047.  Is
> there a setup for the date in the SRM?  I did a show in the SRM and didn't
> see anything that looked like a date?
> This is Redhat 6.0.
> 
> Thanks,
> Todd
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
  1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
  1999-11-03 16:47   ` Xiaozhou Qiu
@ 1999-11-03 16:47   ` Jim Gettys
  1999-11-03 16:55     ` Todd Henderson
  1999-11-03 16:49   ` Christian Iseli
  1999-11-03 16:51   ` Wes Bauske
  3 siblings, 1 reply; 7+ messages in thread
From: Jim Gettys @ 1999-11-03 16:47 UTC (permalink / raw)
  To: axp-list; +Cc: Todd Henderson

This needs to be a FAQ on various web sites:
			- Jim

Two pieces to the puzzle: How to get the CMOS set to the right year,
as some SRM consoles seem to have no way to set the time (causing
one to try to set it from ARC; unfortunately, there is a 19 year
difference in belief between the two.).  Why the kernel doesn't
do this when you execute the date(8) command is beyond me...

This is solved using the clock(8) command, which can be used
to update the CMOS clock to the current year in the right format.

Then there is the problem of fixing the files you've installed.

Per Michal Jaegerman:
  Once you got > your clock runing ok the simplest "fix" is to do the
following:

       touch /tmp/now
       find / -newer /tmp/now | xargs touch
       rm /tmp/now

  This will reset all dates "in advance" to the current time.  Not the
  best solution but it works.  You can get fancier if you wish as
  'touch' allows you to set dates on files to whatever you wish, so
  you can read them and set them back by a fixed number of years in a
  shell script (or perl, or awk, or ...).

  This will not change dates on symbolic links but this is minor in a
  sense.

Hope this helps...
                                - Jim Gettys


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
  1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
  1999-11-03 16:47   ` Xiaozhou Qiu
  1999-11-03 16:47   ` Jim Gettys
@ 1999-11-03 16:49   ` Christian Iseli
  1999-11-03 16:51   ` Wes Bauske
  3 siblings, 0 replies; 7+ messages in thread
From: Christian Iseli @ 1999-11-03 16:49 UTC (permalink / raw)
  To: axp-list


Todd_Henderson@readwo.com said:
> I've got a cluster of XP1000's, and they all seem to boot up with a
> date from the year 2047.  I can set the date, reboot, and it goes back
> to 2047.  Is there a setup for the date in the SRM?  I did a show in
> the SRM and didn't see anything that looked like a date?

What have you got in /etc/sysconfig/clock ?  Make sure ARC is set to false.

					Christian



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
  1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
                     ` (2 preceding siblings ...)
  1999-11-03 16:49   ` Christian Iseli
@ 1999-11-03 16:51   ` Wes Bauske
  3 siblings, 0 replies; 7+ messages in thread
From: Wes Bauske @ 1999-11-03 16:51 UTC (permalink / raw)
  To: axp-list

Todd Henderson wrote:
> 
> I've got a cluster of XP1000's, and they all seem to boot up with a date from
> the year 2047.  I can set the date, reboot, and it goes back to 2047.  Is
> there a setup for the date in the SRM?  I did a show in the SRM and didn't
> see anything that looked like a date?
> This is Redhat 6.0.
> 

Try "man clock".


Wes


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
  1999-11-03 16:47   ` Jim Gettys
@ 1999-11-03 16:55     ` Todd Henderson
  0 siblings, 0 replies; 7+ messages in thread
From: Todd Henderson @ 1999-11-03 16:55 UTC (permalink / raw)
  To: Jim Gettys, axp-list

Thanks.  It worked.  I keep all of the email from the list on my
workstation and looked through it, but I didn't find any I thought
pretained to what the problem was.  Anyway, thanks for the fix.


Todd

Jim Gettys wrote:

> This needs to be a FAQ on various web sites:
>                         - Jim
>
> Two pieces to the puzzle: How to get the CMOS set to the right year,
> as some SRM consoles seem to have no way to set the time (causing
> one to try to set it from ARC; unfortunately, there is a 19 year
> difference in belief between the two.).  Why the kernel doesn't
> do this when you execute the date(8) command is beyond me...
>
> This is solved using the clock(8) command, which can be used
> to update the CMOS clock to the current year in the right format.
>
> Then there is the problem of fixing the files you've installed.
>
> Per Michal Jaegerman:
>   Once you got > your clock runing ok the simplest "fix" is to do the
> following:
>
>        touch /tmp/now
>        find / -newer /tmp/now | xargs touch
>        rm /tmp/now
>
>   This will reset all dates "in advance" to the current time.  Not the
>   best solution but it works.  You can get fancier if you wish as
>   'touch' allows you to set dates on files to whatever you wish, so
>   you can read them and set them back by a fixed number of years in a
>   shell script (or perl, or awk, or ...).
>
>   This will not change dates on symbolic links but this is minor in a
>   sense.
>
> Hope this helps...
>                                 - Jim Gettys


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Where does Linux get the date from?
@ 1999-11-03 19:29 On Fire
  0 siblings, 0 replies; 7+ messages in thread
From: On Fire @ 1999-11-03 19:29 UTC (permalink / raw)
  To: axp-list

FYI,

The clock program is obsolete and has been removed in Red Hat 6.1.
Instead hwclock is used, as on x86 platform. I have tested hwclock
on my Alpha boxes, including the venerable Jensen, and it works
perfectly. It takes the same options as clock for backwards
compatibility plus has a few other nice hooks. You can get it
from the RawHide area on the RH site. You'll need updates time
and initscripts to use it properly.

/Michael

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-11-03 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-03 19:29 Where does Linux get the date from? On Fire
  -- strict thread matches above, loose matches on Subject: below --
1999-11-03 14:06 Xpert98 video card Eric Jones
1999-11-03 15:40 ` Where does Linux get the date from? Todd Henderson
1999-11-03 16:47   ` Xiaozhou Qiu
1999-11-03 16:47   ` Jim Gettys
1999-11-03 16:55     ` Todd Henderson
1999-11-03 16:49   ` Christian Iseli
1999-11-03 16:51   ` Wes Bauske

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox