LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 02-09-2007, 10:25 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
DayLight savings change for Redhat 8.0 & 9.0


we have variety of Redhat Linux versions. E.g Redhat 8.0 and Redhat 9.0 as well. I didnt get any DST information for these systems. So guys if you have any , please let me know.
Do i require to install any tzdata on such systems or need to upgrade glibc version ??
Do reply.
 
Old 02-09-2007, 01:11 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
I don't know what you mean by "I didn't get any DST information for these systems." If there is no DST information for those systems, not even old outdated information, then those systems probably have problems that are too severe to be solved by a walk down linuxquestions lane.

But if the problem is getting updated information to reflect the new rules, do this:

Code:
mkdir tz
cd tz
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -
... and then read the README file, and all will be revealed.

Hope this helps.
 
Old 02-15-2007, 11:54 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks for the reply. What I meant was , we did not find any RPM packages for RedHat Linux 8.0 & 9.0 versions. So we do not know how to make these systems ready for DayLight Savings Time Change that is going to take place from 11 Mar 2007.
Is there any reliable ways to achieve this ??
Or just we need to install the packages you have asked to download.i.e.
1. tzcode2007b.tar
2. tzdata2007b.tar

Thanx in advance.
 
Old 02-15-2007, 06:55 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
You can try reading the README in those packages.

Also, is there a reason why you are using RH8 and RH9. Both of these are very old versions of Linux - support for RH9 was discontinued in 2004. If possible, upgrade to a more recent version. The Fedora project is the successor to the "community" Redhat distros, and the latest release is Core 6.

You could also try getting the tzdata RPM from Fedora, and see if that works, but I doubt that it will.

You may have to make the changes manually - there is plenty of threads on this site dealing with how to do this. Hint: you will need to use zdump.

But seriously, I think your best bet is to upgrade to Fedora Core 6.
--Ian
 
Old 02-16-2007, 03:24 AM   #5
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
You don't need to use zdump. People suggest that you use that to determine whether your rules are up to date. But all you have to do is this:

Code:
date -d '27 March'
If the answer you get is expressed in terms of daylight time, no changes are needed. You're good to go.

If the answer you get is expressed in terms of standard time, you need to upgrade the time zone rules. Then the README in what you downloaded gives you everything you need to know.

IBall speaks wisely about upgrading your system to Fedora Core 6, though.

Not that I have any standing to speak about that. I'm still running Slackware (cough)9.1(cough).

Last edited by wjevans_7d1@yahoo.co; 02-16-2007 at 03:27 AM.
 
Old 02-27-2007, 10:10 AM   #6
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Guys , I'm very much confused with DST changes for RH Version 8.0 & 9.0 .
As the time is running out .... Need a defined steps to perform the same.
Tahnx in advance
 
Old 02-28-2007, 01:18 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Unless there is a very good reason that you are still running Redhat 8 and 9, upgrade to a more recent version. The Fedora project replaces the Redhat Community distros, and the current release is v6.

If you must continue to run such an old and unsupported distro, then do a search on howto do this. There are plenty of threads on these forums about this.

Alternatively, you can just adjust the time forward by one hour on the specified day. If your systems are using NTP, then you may need to change the timezone to the next one to the east of you.

But seriously - UPGRADE.

--Ian
 
Old 02-28-2007, 06:54 PM   #8
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Alternatively, install the tzdata stuff. The tzcode (associated programs) should not need to be changed.
 
Old 03-02-2007, 05:51 PM   #9
ilurikishore
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Once you update tzdata package, Verify using zdump and you should be seeing similar output except for your timezone ( In my case, I'm in PST )

zdump -v /etc/localtime |grep 2007
/etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800
 
Old 03-03-2007, 11:52 AM   #10
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
A more fun way to check is simply to use the date command:

Code:
date -d 'Mar 27'
If it comes out as daylight, you have the new rules; otherwise, you don't.
 
Old 03-05-2007, 06:05 PM   #11
pratul
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
Simple And Complete Process To Update Dst

Quote:
Originally Posted by sachinh
we have variety of Redhat Linux versions. E.g Redhat 8.0 and Redhat 9.0 as well. I didnt get any DST information for these systems. So guys if you have any , please let me know.
Do i require to install any tzdata on such systems or need to upgrade glibc version ??
Do reply.
Sachin,

I have seen the people are giving right information in bits and pieces, so I wrote this up for you. This works for any Linux system and this is a complete process :

HERE IS A SIMPLE AND COMPLETE PROCESS TO UPDATE ANY LINUX SERVER FOR DST:

Using ZIC to compile / extracting Zone files: (Elegant / Simple process) works well for any older Linux 7.1 /7.2 versions etc.

Download the most recent version of the time zone text files from the public domain time zone database < ftp://elsie.nci.nih.gov/pub/>, and compile the files yourself with zic.

Download the file named tzdata2007c.tar.gz

This is just an example of just making the America/Los_Angeles zone DST compiled and replace in your presently running linux system, without a break in service. Obviously you could do this for any timezone or all of them.

Download above tar file / unpack it / get your hands on the directory called

tzdata2007c

Logon as root
mkdir /root/DST2007 [ this directory is just a working location for my old timezone files backup. You can name anything and location can be anything ]
CD
CD DST2007
COPY / backup present timezone data files: cp r /usr/share/zoneinfo (and later change the name as oldtimezonebackupfiles)
Unpack the tar file mentioned above and get the tzdata2007c directory. Keep one copy in your work location /root/DST2007 as backup and copy one to /tmp directory.

cd /tmp/tzdata2007c
zic d /tmp/zoneinfo northamerica

this will compile the time zone files into a directory /tmp/zoneinfo.

Check if dates look correct by doing zdump v /tmp/zoneinfo/America/Los_Angeles |grep 2007 . [ Note :you see March 11th and Nov 4th ] .

cd /usr/share
rm rf zoneinfo
mv /tmp/zoneinfo .

cd /etc
ln sf /usr/shar/zoneinfo/America/Los_Angeles /etc/localtime
check again the correct dates by zdump v /etc/localtime |grep 2007

***********************************************************
 
Old 03-05-2007, 10:49 PM   #12
pachai
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Thanks!

pratul

Two notes on your great write-up...
0. Of course, THANKS for your help.

1. There is a letter missing from this line,
I'm sure it was a typo.

ln sf /usr/shar/zoneinfo/America/Los_Angeles /etc/localtime
should read
ln sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime


2. An answer for all the people who asked WHY anyone would
still be on an old OS like RH (so-old-I-forgot-which-version):
LIFE.

At work, I am responsible for 10 Sun boxes and 6
AIX LPARs, and they were done a long time ago,
and tested with my perl script and/or my C program.

But at home, my mail is on an old RH box,
and it will get upgraded when it's replacement is ready,
hopefully soon, but not when Congress or Bill Gates tells me to.

This disposable economy is a bit much
 
Old 03-07-2007, 10:21 AM   #13
jleu
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
I've built a redhat 8.0 RPM with updated tzdata and tzcode from the fedora 6 tzdata RPM. I'm posting the SRC RPM only.

http://inoc.com/redhat/glibc-2.3.2-4.80.8tz.src.rpm

You can build a i386 or i686 variant yourself with the commands:

rpmbuild --rebuild glibc-2.3.2-4.80.8tz.src.rpm

- or -

rpmbuild --rebuild glibc-2.3.2-4.80.8tz.src.rpm --target=i686

YMMV
 
Old 03-10-2007, 12:53 AM   #14
wsanders
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
zoneinfo files are eminently portable

The zoneinfo files are quite portable. I've even copied the directory of Solaris zoneinfo files to some old Debian and Redhat hosts, and it looks like it will work. I'm sure that violates all kinds of laws of nature, feh.

You need to remember to update /etc/localtime also. On some distros but not Redhat it's a softlink to whatever file in /usr/share/zoneinfo you want to set the timezone to. Redhat copies the zoneinfo file to localtime (d'oh!) so you need to update it manually too.

-w
 
Old 03-10-2007, 12:08 PM   #15
rch1231
Member
 
Registered: Mar 2007
Location: Bedford, Texas
Posts: 31

Rep: Reputation: 15
If it helps I had to update 30 servers and put together a script:

txlinux.com/tzupdate.sh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Release 9 and Daylight Savings Time (DST) hbloom Linux - General 10 10-07-2009 12:06 AM
Daylight savings patch for RH 7.2 cavladim Red Hat 1 01-13-2007 08:35 PM
Change to Daylight Savings Time has shifted my file times hippiness Linux - General 4 03-31-2006 02:31 PM
Daylight savings time depdiver Red Hat 2 02-21-2006 10:00 AM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration