[Bug 595573] New: Wrong hardware date after Daylight Saving ended:
http://bugzilla.novell.com/show_bug.cgi?id=595573 http://bugzilla.novell.com/show_bug.cgi?id=595573#c0 Summary: Wrong hardware date after Daylight Saving ended: Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gfarrell@netspeed.com.au QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2) Gecko/20100317 SUSE/3.6.2-1.2 Firefox/3.6.2 Australia's Eastern Daylight Time (AEDT) reverted to Australian Eastern Standard Time (AEST) at 0300 AEDT on Sun 04 April 2010. While the System time on my computer seemed to be updated (time shown in the notification area, and output of the 'date' command), there were inconsistencies in the logs. Also, the Hardware time set in the BIOS remained one hour ahead (ie, still set to AEDT). The /var/log/messages output shows the successful transition to AEST at 0300 AEDT (becoming 0200 AEST): .. Apr 4 02:59:20 Linuxbox kernel: [968309.297164] martian source 255.255.255.255 from 10.3.246.120, on dev eth1 Apr 4 02:59:20 Linuxbox kernel: [968309.297187] ll header: ff:ff:ff:ff:ff:ff:00:a0:fa:03:f6:79:08:00 Apr 4 02:59:40 Linuxbox kernel: [968329.293682] martian source 255.255.255.255 from 10.3.246.120, on dev eth1 Apr 4 02:59:40 Linuxbox kernel: [968329.293701] ll header: ff:ff:ff:ff:ff:ff:00:a0:fa:03:f6:79:08:00 ----------------------------------- Transition occurred here ----------------------------------- Apr 4 02:01:16 Linuxbox smartd[2532]: Device: /dev/sdc [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 112 to 110 Apr 4 02:01:16 Linuxbox smartd[2532]: Device: /dev/sdc [SAT], SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 63 to 64 Apr 4 02:05:21 Linuxbox kernel: [968670.241099] martian source 255.255.255.255 from 10.3.246.120, on dev eth1 Apr 4 02:05:21 Linuxbox kernel: [968670.241118] ll header: ff:ff:ff:ff:ff:ff:00:a0:fa:03:f6:79:08:00 .. However, re-boots showed sudden changes in time at about the moment that bootup is completed (just after ntpd is activated??): .. Apr 11 09:59:57 Linuxbox kernel: [ 36.812358] Slow work thread pool: Starting up Apr 11 09:59:57 Linuxbox kernel: [ 36.812491] Slow work thread pool: Ready Apr 11 09:59:57 Linuxbox kernel: [ 36.812575] FS-Cache: Loaded Apr 11 09:59:57 Linuxbox kernel: [ 36.909638] FS-Cache: Netfs 'nfs' registered for caching ----------------------------------- The above times are one hour ahead of AEST. Note the sudden wind-back of one hour to the correct time at this point ----------------------------------- Apr 11 09:00:19 Linuxbox python: hp-systray[3485]: warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting. Apr 11 09:19:43 Linuxbox rsyslogd: -- MARK -- Apr 11 09:20:32 Linuxbox su: (to root) geoff on /dev/pts/0 Apr 11 09:26:40 Linuxbox shutdown[11471]: shutting down for system reboot .. Another from /var/log/warn: Apr 4 11:06:24 Linuxbox nmbd[2008]: query_name: Failed to send packet trying to query name WORKGROUP<1d> Apr 4 11:06:28 Linuxbox kernel: [ 26.557455] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Apr 4 11:06:32 Linuxbox smartd[2702]: Device: /dev/sdc [SAT], 1 Currently unreadable (pending) sectors Apr 4 11:06:32 Linuxbox smartd[2702]: Device: /dev/sdc [SAT], 1 Offline uncorrectable sectors ----------------------------------- The above times are one hour ahead of AEST. Note the sudden wind-back of one hour to the correct time at this point ----------------------------------- Apr 4 10:06:51 Linuxbox python: hp-systray[3398]: warning: No hp: or hpfax: devices found in any installed CUPS queue. Exiting. Apr 4 10:36:32 Linuxbox smartd[2784]: System clock time adjusted to the past. Resetting next wakeup time. Apr 4 11:06:32 Linuxbox smartd[2784]: Device: /dev/sdc [SAT], 1 Currently unreadable (pending) sectors Apr 4 11:06:32 Linuxbox smartd[2784]: Device: /dev/sdc [SAT], 1 Offline uncorrectable sectors (smartd noticed this at Apr 4 10:36:32 and adjusted for the change.) This has occurred at every bootup since Daylight Saving ended. I rebooted and found the Hardware time in the BIOS was one hour ahead. It had not been updated, as expected by the procedure in /etc/init.d/boot.clock that saves System time to Hardware time at shutdown. This should have occurred on the first shutdown conducted on 04 April 2010. It's obvious that it didn't occur then, and hasn't since. Since manually changing the Hardware time to AEST in the BIOS, the sudden changes in time have not occurred. A further curiosity is seen in /var/log/boot.msg: <6>[ 1.999154] rtc_cmos 00:04: setting system clock to 2010-04-11 09:29:09 UTC (1270978149) At the time this line was logged, UTC time was 2010-04-10 23:29:09 in my UTC +10 time zone. My /etc/sysconfig/clock settings are: HWCLOCK="--localtime" SYSTOHC="yes" TIMEZONE="Australia/Sydney" DEFAULT_TIMEZONE="US/Eastern" Having correct handling of the System time is important, as I have been having NFS problems since Daylight Saving ended, where connections have been sporadic. To correct these problems, I have had to go into YaST-> Network Services-> NFS Server and re-process the settings each time. Since manually correcting the Hardware time in the BIOS, the NFS connection problems have disappeared. Reproducible: Always Steps to Reproduce: 1. After Daylight Saving has ended, start the computer. 2. Then re-boot it. Actual Results: The Hardware clock in the BIOS is still set to one hour ahead Expected Results: The Hardware clock should have changed to one hour behind Daylight Saving time. Considered Major because of the effect on NFS. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c2
Ruediger Oertel
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c3
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c4
--- Comment #4 from Geoff Farrell
If CMOS is localtime it is up to the user to change the CMOS time.
Why? When the system startup has gone to the trouble of correcting to the new local time, why can't it simply be saved to CMOS on shutdown, as it's supposed to happen with boot.clock (under the 'stop' stanza)? The bug here is that the time was changed to the correct time according to timezone settings for Australia/Sydney, but the time was not saved to the Hardware Clock on shutdown as it was supposed to, by obeying the SYSTOHC="yes" setting in /etc/sysconfig/clock.
There is no point to save the information that the switch from/to Daylight Saving Time within the CMOS.
??? The point is to change the local time to the correct local time, as has been specified in /etc/sysconfig/clock: ie, --localtime.
Doing this on disk will not work... (1)
It's not done on disk; the time is supposed to be saved to CMOS memory on the motherboard.
...as normally only users with several OS (e.g. Windows[tm]) do use localtime in CMOS. (2)
Not true. I only use openSUSE; it's the only OS installed. I don't know of anyone in Australia that uses UTC in their Hardware (CMOS) Clock, regardless of whether they use Linux, Windows, Mac, or anything else. Local time is used, because that's the easiest time to refer to. Points (1) and (2) are unrelated. Therefore, (2) does not follow from (1).
If Linux is the only OS on the system the user is strongly enforced to use the common standard for CMOS wich is UTC.
Is 'enforced' the intended meaning here? Or was 'encouraged' really meant? Regardless, my openSUSE system works well with the Hardware Clock set to my local time zone. That's not surprising, given the effort made in accommodating this sort of setting in system configuration files, such as HWCLOCK="--localtime" and TIMEZONE="Australia/Sydney" in /etc/sysconfig/clock. What's the point of having these provisions if there is simply an ideological position that UTC should be used instead? There's nothing special about UTC. It can be derived from simple mathematics using local time and the TIMEZONE setting (openSUSE obviously performs this quite competently at the moment). This issue has nothing to do with UTC. It has everything to do with a shutdown script (boot.clock) failing to do its job. FWIW, I use local time in my Hardware Clock because UTC is more difficult for humans to relate to in +10- and +11-hour timezones. I would much prefer my computer to handle that for me. One of the reasons I own a computer is for it to do computations for me, not the other way around. In summary, the startup system correctly applied the adjustment to local time for the System Clock at the end of daylight saving, but the system failed to obey the /etc/sysconfig/clock settings to save the correct time to the Hardware Clock. That's a bug, pure and simple. I request that this bug be reopened and addressed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c5
--- Comment #5 from Dr. Werner Fink
There is no point to save the information that the switch from/to Daylight Saving Time within the CMOS.
??? The point is to change the local time to the correct local time, as has been specified in /etc/sysconfig/clock: ie, --localtime.
... the rule when the Daylight Saving Time occurs is not part of /etc/sysconfig/clock, the /etc/sysconfig/clock points only to /usr/share/zoneinfo/ and the time zone data base therein. The /etc/localtime is a copy of the choosen time zone. Nevertheless this information is on the disk and the Linux kernel nor the CMOS even know about this at boot time. It is not possible to use the rules without mounting the disk. Beside this the Linux kernel nor the CMOS knows if a second OS like Windows[tm] had already changed the CMOS clock. There is no register on the CMOS clock chip to save informations about Daylight Saving Time nor any space to load rules onto the chip. I've done a lot of investigations (see the comments in the source code of warpclock.c which is part of mkinitrd src rpm) and this is what I've been told by the kernel developers. It is a bug, but without using a better CMOS clock chip (e.g. with integrated Daylight Saving Time rules or more simply a bit flag to be set if the clock is switched to Daylight Saving Time) the only solution is to use Universal Time Clock as hard reference. If it would be solvable in a safe manner for two or more OS on the same system in any other way I would have done it. If you know how to solve this problem with two OS on the same system (e.g. Windows[tm] and Linux kernel) on common PC hardware without DCF clock chip please let me know by reopen this bug *with* the working solution. Thank you. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c6
--- Comment #6 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c7
--- Comment #7 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c8
--- Comment #8 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c9
--- Comment #9 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c10
--- Comment #10 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c11
--- Comment #11 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c12
--- Comment #12 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c13
--- Comment #13 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c14
--- Comment #14 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c15
--- Comment #15 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c16
--- Comment #16 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c17
--- Comment #17 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c18
--- Comment #18 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c19
--- Comment #19 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c20
--- Comment #20 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c21
--- Comment #21 from Geoff Farrell
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c22
--- Comment #22 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=595573
http://bugzilla.novell.com/show_bug.cgi?id=595573#c23
--- Comment #23 from Geoff Farrell
participants (1)
-
bugzilla_noreply@novell.com