Redhat Server Time Run Out

Posted on July 24, 2006

advertisement

This morning I was noticed that all my server [tag]time[/tag] are running out :( What Happen?

After further investigate, I found that [tag]Redhat[/tag] did an automatic [tag]up2date[/tag] updated. More than 20 packages are updated last night, my /etc/localtime was overwrite.


[user1@planetmy user1]$rpm -qf /etc/localtime
glibc-2.3.2-95.44

My RHEL 3 Redhat Network(RHN) updated glibc last night.

So how to solve this problem in the future?

First run the command:


sudo up2date --configure
0.adminAddress ['root@localhost']
1.debug No
2.disallowConfChange ['noReboot', 'sslCACert', 'useNoSSLForPackages', 'noSSLSe
3.enableProxy No
4.enableProxyAuth No
5.enableRollbacks No
6.fileSkipList ['/etc/localtime']
7.forceInstall No
8.gpgKeyRing /etc/sysconfig/rhn/up2date-keyring.gpg
9.headerCacheSize 40
10.headerFetchCount 10
11.httpProxy
12.isatty Yes
13.keepAfterInstall No
14.networkRetries 5
15.networkSetup Yes
16.noBootLoader No
17.noReboot No
18.noReplaceConfig Yes
19.noSSLServerURL http://xmlrpc.rhn.redhat.com/XMLRPC
20.pkgSkipList ['kernel*']
21.pkgsToInstallNotUp ['kernel', 'kernel-modules']
22.proxyPassword
23.proxyUser
24.removeSkipList ['kernel*']
25.retrieveOnly No
26.retrieveSource No
27.rhnuuid fcdbeee8-a2e5-11d9-82a5-1202b39c34ca
28.serverURL https://xmlrpc.rhn.redhat.com/XMLRPC
29.showAvailablePacka No
30.sslCACert /usr/share/rhn/RHNS-CA-CERT
31.storageDir /var/spool/up2date
32.systemIdPath /etc/sysconfig/rhn/systemid
33.updateUp2date Yes
34.useGPG Yes
35.useNoSSLForPackage No
36.useRhn Yes
37.versionOverride
Enter number of item to edit:

Choose option no.6

Enter /etc/localtime:

Attribute: fileSkipList
Comment: A list of file names, optionally including wildcards, to skip
Current value: /etc/localtime;
New Value: /etc/localtime

Restored my server time:

mv /etc/localtime /etc/localtime.backup
ln -s /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime
/etc/init.d/ntpd restart

Possibly Related Posts:


Comments

4 Responses to “Redhat Server Time Run Out”

  1. Noname on July 25th, 2006 9:09 pm

    Dont u local server time sync with rehat time server ? so how come it will running out of time ?? ??

  2. PlanetMalaysia Team on July 25th, 2006 9:55 pm

    Noname, yes I did run ntpd and sync with time server but my /etc/localtime was overwrite so that the system sync to wrong time zone :(

  3. Planet Malaysia Blog » Blog Archive » Redhat Server Time Changed Again! on August 14th, 2006 6:56 pm

    [...] Previously my servers system time overwrite because of glibc [root@planetmy]# rpm -qf /etc/localtime glibc-2.3.2-95.44 [...]

  4. Linux Server Masters » Blog Archive » Planet Malaysia Blog Blog Archive Redhat Server Time Run Out on August 22nd, 2006 7:18 am

    [...] Planet Malaysia Blog Blog Archive Redhat Server Time Run OutThis morning I was noticed that all my server time are running out What Happen? After further investigate, I found that Redhat did an automatic up2date updated. [...]

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com