LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-07-2007, 04:25 PM   #1
jmor3
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
RH9 DST 2007 update not current ...


I updated one of my RH9 servers for the DST 2007 change this weekend, and I noticed that I get two different values when I use zdump:

# zdump -v /etc/localtime | grep 2007 shows me the old DST info (April and October)
# zdump -v /usr/share/zoneinfo/PST8PDT | grep 2007 shows me the new DST info (March and November)
# zdump -v /usr/share/zoneinfo/America/Los_Angeles | grep 2007 shows me the new DST info (March and November)

I pasted together some directions from a few forum postings, and now I'm wondering if I did something wrong (or out of order). Here are the steps I used:

- Go to ftp://elsie.nci.nih.gov/pub/ and download tzcode2007c.tar.gz and tzdata2007c.tar.gz
- Create a /tz directory and copy the two .tar.gz files into a /tz directory on the server
- Uncompress the two files ('gzip -dc tzcode*.tar.gz | tar -xf -' and 'gzip -dc tzdata*.tar.gz | tar -xf -')
- Run 'zic -d /tmp/zoneinfo northamerica' to compile the timezone data files.
- Run 'cp -p /tmp/zoneinfo /usr/share/zoneinfo' to replace the old file
- Check the updates with the zdump commands listed above

So the values look right in the /usr/share/zoneinfo files, but not in my /etc/localtime. Do I need to restart something to update the settings?

Any help would be greatly appreciated!

Thanx, Raoul
 
Old 03-08-2007, 08:58 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You forgot to update/replace the /etc/localtime file, just copy the /usr/share/zoneinfo/America/Los_Angeles as a replacement.
 
Old 03-08-2007, 09:52 AM   #3
jmor3
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Success!

Thank you - I forgot that the localtime info is static (so a restart won't write the values into /etc/localtime). For anyone who may want to see the last step:

- After copying the timezone data files to /usr/share/zoneinfo, I backed up the current localtime file just for fun (cp /etc/localtime /etc/localtime.predst2k7), then copied the Los Angeles timezone file over the current localtime file (cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime). Zdump now reports March and November as the start and end times for DST for /etc/localtime.

Thank you! Raoul
 
Old 03-08-2007, 11:39 AM   #4
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Rep: Reputation: 16
What do you do with a server that doesnt have internet access?
 
Old 03-08-2007, 11:39 AM   #5
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hi does the instructios above apply to RH 9? I tried to do the above but recieve the old information still when running zdump.
 
Old 03-08-2007, 11:46 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, the instructions by jmor3 apply (for almost any version of Linux), remember to update the /etc/localtime file and you need to be root for this.
 
Old 03-08-2007, 12:18 PM   #7
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Using this thread here and a little of this one http://www.linuxquestions.org/questi...d.php?t=518752
made me realize my mistake, thanks for the info guys!
 
Old 03-08-2007, 02:37 PM   #8
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Just a quick question, I am returning correct info now from zdump, but do we need to reboot our machines?,or should I be good, 90% of our Linux machines are production servers and a reboot is kinda almost out of the question.

TIA
 
Old 03-08-2007, 02:59 PM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You should be good to go (Is this a Taco Bell commercial????)

It is bad idea to wait until this coming Sunday morningearly to install the timezone changes. Depending on the timing your nightly cron jobs may run twice or not at all.
 
Old 03-08-2007, 03:14 PM   #10
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Quote:
It is bad idea to wait until this coming Sunday morningearly to install the timezone changes.
Well I have done what is in this post and made backups and pushed new files into place, is there another step I am missing?

TIA
 
Old 03-08-2007, 04:15 PM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Nope, all the services should be fine by the time the DST change takes place.
 
Old 03-08-2007, 08:03 PM   #12
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Awesome, thank you.
 
Old 03-10-2007, 12:06 PM   #13
rch1231
Member
 
Registered: Mar 2007
Location: Bedford, Texas
Posts: 31

Rep: Reputation: 15
You can test to see if the update worked or is working with:

date -d '27 March'
 
Old 03-11-2007, 10:00 AM   #14
ACDII
Member
 
Registered: Aug 2006
Posts: 87

Rep: Reputation: 16
DOH missed copying the new file to localtime. Did that and rebooted, now all the servers show the correct time.
 
  


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 2007 DST Changes bryansail Linux - Software 10 03-11-2007 10:45 AM
How to Install DST Update on RH9 N2fastbikes Linux - Newbie 8 03-08-2007 11:44 PM
Am I DST Ready after TZDATA update mconstan Linux - Software 2 03-03-2007 07:32 AM
RHEL3 update-rpms good for rh9? or howto keep rh9 up2date? birras Red Hat 4 11-14-2004 01:11 PM
When Ever I Update to Current FXRS Slackware 5 04-19-2004 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration