LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-18-2007, 03:53 PM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
RHEL2 Daylight Savigs


At work we have a couple of RHEL2 with Oracle. Since the Daylight Saving will experience some modifications, RHEL 2 will need to undergo some hard patches. Like upgrading glibc or some other low level packages.

My question, is there any workaround without having to do a major upgrade on this server.

We want to avoid glibc upgrade specially for the long history of conflight with the Oracle database on top of it.

We would like to see if anyone in this forum knows a workaround to keep RHEL2 up to date.

FYI: this server doesn't have opening to the internet so ntp is not an option.
 
Old 01-19-2007, 01:51 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Take the following for what it is worth. I offer it in hopes it may help, but make your own evaluation before you do anything to your system.

My understanding is that you need to update your time zone (/usr/share/zoneinfo) files? I have dealt with the same situation on a couple of archaic systems a while back. I believe you were alluding to the fact, that for reasons that are totally mysterious to me, these are bundled with glibc. As I have done it, I can attest to the fact that it is possible to download the current files necessary to create a new batch of time zone files without doing anything else. Of course, before you delete or overwrite any existing files (basically in /usr/share/zoneinfo) you should backup the existing files in case something goes wrong. And if you succeed, you will have a whole bunch of files that your RPM db will consider to be "wrong."

I did not (shame on me!) take detailed notes on how I did this. I did, however, bookmark three sites that I used to figure out how to do this. So I offer the following links to you and I wish you good luck!

http://www.twinsun.com/tz/tz-link.htm
http://wpram.com/log/2006/03/04/comm...ylight-saving/
http://www.vanemery.com/Linux/RH-Linux-Time.html

WRT ntp, if I have understood your problem correctly, ntp wouldn't help anyway. Perhaps I am glossing too much (to heck with crossing the tees and dotting the i's), but basically ntp deals with UTC and has nothing to do with time zones.
 
Old 01-19-2007, 07:47 AM   #3
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
Well I think Daylight Saving will change this year in the US, and this means that some systems are not ready for the change. For RHEL 3 and 4, there are some patches that will update to the latest policy but for RHEL 2 there is not such patch.

Here is an example that happened in 2006 when Indiana was looking into having Daylight Saving time and how it will impact their servers.

Quote:
Unix

If you use any flavor of Unix (i.e. Linux, Mac OSX, *BSD, Solaris, etc), you should check your distribution's website or errata list for updates to the timezone files. You shouldn't just change your timezone. You should apply the updates from your distribution vendor and allow the changes that they have made to take effect. This will ensure that your timestamps will be correct.

Depending on your fladov/distro; you'll update or patch one of two files/packages:
some systems keep timezone data in the glibc library (HP-UX, RHEL 2.1 for example)

-or-
some systems keep a seperate tzdata package (RHEL 3, RHEL 4 for example)

Just make sure that your glibc or tzdata packages/libraries are updated and you'll probably be good to go. The update of glibc and tzdata will patch the entry for Indiana, so that machines using Indiana (or Indiana-east, or east-Indianapolis, or Indianapolis, etc) as their localtime setting will start to observe DST.
Sound this familiar? any sysadmin had gone through this?
 
Old 01-19-2007, 12:42 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Jzarecta
Well I think Daylight Saving will change this year in the US, and this means that some systems are not ready for the change. For RHEL 3 and 4, there are some patches that will update to the latest policy but for RHEL 2 there is not such patch.
DST time most definitely is changing in the U.S. this year. I believe there have been and will be other changes in the world also.

If RHEL 2 is still supported and you subscribe, then you need to push RH to issue a patch. If not, I would think your only alternatives would be to to either update your servers to a more recent OS, leave the time zones on your servers in error, or do some kind of an ad hoc solution like I just suggested. Am I missing something?
 
Old 01-19-2007, 11:38 PM   #5
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
I just figure out that since this is not only a problem that affect me personally. There would be more sys admins facing this situation and maybe someone else would have some experience on this. I know indiana had some similar issues last year and I found some documentation herE:

http://www.indianawiki.org/wiki/Indi...s_Time_in_2006

An ingenions idea such as building a local ntp on the newer server and have the 2.x sync to it. Then again my issue will be on forecasting what can go wrong.
 
Old 01-21-2007, 01:00 AM   #6
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Jzarecta
An ingenions idea such as building a local ntp on the newer server and have the 2.x sync to it. Then again my issue will be on forecasting what can go wrong.
Feel free to correct me, but I think you are barking up the wrong tree talking about NTP. Following the Unix tradition, Linux system time is the number of seconds after the beginning of 1970, UTC. So while NTP is useful for keeping your system time accurate, it has nothing to do with time zones or Daylight Saving Time! If you try to adjust your system clock based on time zones or Daylight Saving Time, you will really screw yourself up. DST and TZs only come into play in translating between system time and human readable time.

As the article states, the preferred solution is the vendor supplied one. If you can't do that for some reason, the solution I've done on my archaic systems seems to work, but the time zone files are then out of sync with the RPM data base.
 
Old 02-09-2007, 10:24 AM   #7
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
Nice replies Guuys. Expecting 1 more now. Like 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-10-2007, 12:52 AM   #8
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Neither RH 8.0 or nor RH 9 are supported any longer. So I doubt that updating glibc would do any good since you couldn't get the vendor's version for it (but I could,as always, be wrong). FYI, RH 8.0 was one of the archaic systems that I referred to in post #2 which I successfully updated using tzdata. YMMV. It seemed to work fine for me (but like I said, I didn't take detailed notes and I don't remember the steps clearly). Realize using the tzdata will put all of the files in /usr/share/zoneinfo out of sync with your RPM database; i.e. running rpm -V on the appropriate package will show a lot of mismatches. As always in such case, I would recommend first backing up your existing files in /usr/share/zoneinfo.
 
  


Reply



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
startx error on RHEL2 on box Dell Latitude D600 thomasdreyer Red Hat 3 09-20-2006 01:19 AM
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
DL580G2 RHEL2.1 AS memory upgrade sd-sal Linux - Enterprise 2 07-06-2005 08:15 AM
DO NOT use Daylight Saving Time - how? EcceVery Debian 4 05-28-2005 02:21 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:28 AM.

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