- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: system time increments by 5 hours at eache reb...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 04:40 AM
11-20-2004 04:40 AM
I have a dual boot system, i.e. rhl9 and windows are both installed on the same machine.
Prblm is that whenever I boot/reboot my system in rhl9, the system time increments exactly by 5 hours. for e.g, If if boot my system in rhl9, and the time it shows/display is 1:0:0, then if i reboot my system in rhl(init 6) then it will show the time 6:0:0, and so on, i,e whenever I reboot my system in rhl9 it will aoutomatically inrement the system time exactly 5 hours.
since it only happens when I reboot my system in rhl9, i.e. If i reboot my system in windows, then windows doesnt increases the time, so that It must be a linux issue/prblm.
On this very machine I have used rhl7.x for a long period, and during the rhl7.x regime, this prblm didnt happen
plz help me resolving the issue.
Any help/suggestion/respone will be Highly appreciated.
Thanks in Advance
Regards
Maaz.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 07:02 PM
11-20-2004 07:02 PM
Re: system time increments by 5 hours at eache reboot - plz help
redhat-config-date
or
dateconfig
and see if there's a correct region zone set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 11:42 PM
11-20-2004 11:42 PM
Re: system time increments by 5 hours at eache reboot - plz help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 12:20 AM
11-21-2004 12:20 AM
Re: system time increments by 5 hours at eache reboot - plz help
I would start by the following
# zdump /etc/localtime
this should return something like
/etc/localtime Sun Nov 21 14:15:25 2004 CET
the time zone should be the correct one, the time should be the right one and the file should be dump corectly by zdump (oe else it is corrupted)
Time problem can be fustrating to track but keep us informed.
hth
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 01:43 AM
11-21-2004 01:43 AM
Re: system time increments by 5 hours at eache reboot - plz help
This would probably be set in one of the /etc/init.d scripts.
It sure sounds like a timezone problem, though.
If you need a workaround, you can use "ntpdate", in conjunction with ntp. (/etc/ntp.conf)
It's not overly difficult to setup ntp.
-tjh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 04:21 AM
11-21-2004 04:21 AM
Re: system time increments by 5 hours at eache reboot - plz help
yes HUC, its purely rhl9 issue, nothing is wrong phisically.
# zdump /etc/localhost
/etc/localhost Sun Nov 21 22:01:20 2004 PKT
Many Thanks dear Thomas J Harrold
this is a standalone system i.e no ntp server is configured. the system is running its own local time.
# ntpdate
22 Nov 03:00:32 ntpdate[627]: no servers can be used, exiting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 04:56 AM
11-21-2004 04:56 AM
Re: system time increments by 5 hours at eache reboot - plz help
date -s
will it return to a wrong time after reboot?
Maybe that all you need to do.After all you don't use ntpd....
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 06:14 AM
11-21-2004 06:14 AM
Re: system time increments by 5 hours at eache reboot - plz help
i did as
# date -s 23:10:15; init 6
# date
Mon 04:12:11
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 12:51 PM
11-21-2004 12:51 PM
Re: system time increments by 5 hours at eache reboot - plz help
$ grep UTC /etc/sysconfig/clock
UTC=false
Check what your hardware clock is set to with
# /sbin/hwclock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 02:29 PM
11-21-2004 02:29 PM
Re: system time increments by 5 hours at eache reboot - plz help
# grep UTC /etc/sysconfig/clock
UTC=false
# date; /sbin/hwclock
Tue Nov 23 03:50:50 PKT 2004
Mon Nov 22 22:50:51 2004 -0.017312 seconds
# init 6
# date; /sbin/hwclock
Tue Nov 23 08:54:08 PKT 2004
Tue 23 Nov 2004 03:54:09 AM PKT -0.450678 seconds
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2004 03:04 PM
11-21-2004 03:04 PM
Re: system time increments by 5 hours at eache reboot - plz help
Is /etc/localtime link to a file in /usr/share/zoneinfo/?/?. If so, delete the link and copy /usr/share/zoneinfo/?/? file (that /etc/localtime was previously linked to) to /etc/localtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 01:01 AM
11-22-2004 01:01 AM
Re: system time increments by 5 hours at eache reboot - plz help
windows is stupid and stores local time in the system clock, as opposed to most unix systems, that store GMT in the clock, then do a timezone adjust in runtime.
configure redhat to store local time in the bios, http://www.linux.com/howtos/TimePrecision-HOWTO/set.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 06:27 PM
11-22-2004 06:27 PM
Re: system time increments by 5 hours at eache reboot - plz help
# ls -l /etc/localtime
lrwxrwxrwx 1 root root 32 Nov 23 20:56 /etc/localtime -> /usr/share/zoneinfo/Asia/Karachi
# rm -f /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Karachi /etc/localtime
#
yes Dear Ermin Borovac ... u mentioned the right prblm ... infact(in my case) when the system boots in rhl9, rhl doesnt set/get its time from hardware, and but rhl automatically increase the time by +5 hours, and when the system is preparing to shutdown , the linux(software) sets the hardware clock.
Many Thanks to Thomans. And Thomans Bianco I m here in Karachi, Pakistan. Ok, I'll check the url and try to solve the issue.
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 12:58 AM
11-23-2004 12:58 AM
Re: system time increments by 5 hours at eache reboot - plz help
http://aa.usno.navy.mil/graphics/TimeZoneMap2003.pdf
PS, this is a Zero-point post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 09:23 AM
11-23-2004 09:23 AM
Solution# ls -l /etc/localtime
lrwxrwxrwx 1 root root 32 Nov 23 20:56 /etc/localtime -> /usr/share/zoneinfo/Asia/Karachi
# rm -f /etc/localtime
# cp /usr/share/zoneinfo/Asia/Karachi /etc/localtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 11:30 PM
11-23-2004 11:30 PM
Re: system time increments by 5 hours at eache reboot - plz help
u were 100% right ... u made the right suggestions.
By following ur suggestion, prblm has been solved
# rm -f /etc/localtime
and then
# cp /usr/share/zoneinfo/Asia/Karachi /etc/localtime
But Dear Ermin ... could u plz le me know what was the prblm, I mean if /etc/localhost is linked to /usr/share/zoneinfo/Asia/Karachi, it will cause the prblm ... and when I followed ur instruction, that is delete ths link, and then simple copy .../Karachi to /etc/localhost, the prblm gone ... so could u plz explain ?
Many Thanks to All.
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 10:30 AM
11-24-2004 10:30 AM
Re: system time increments by 5 hours at eache reboot - plz help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:28 PM
11-24-2004 01:28 PM
Re: system time increments by 5 hours at eache reboot - plz help
Yes /usr is a separate partition.