Bug 693898 - Boot failure due to future mount timestamp -- fsck does not work everytime
Summary: Boot failure due to future mount timestamp -- fsck does not work everytime
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: e2fsprogs
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-05 20:41 UTC by Yogesh Babar
Modified: 2018-11-14 13:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 18:58:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yogesh Babar 2011-04-05 20:41:04 UTC
Description of problem:

If the current time in the BIOS is moved to the future, at the time of boot system drops emergency prompt and asks to fsck the disk. Filesystem is ext3.

How reproducible:
can't reproduce the issue consistently. On some occasions, it boots fine without issues and sometime running e2fsck doesn't seem to fix it.

Steps to Reproduce:
1) Change system time to a future value in BIOS. Reboote system and log in (System will mount the root filesystem with future timestamp)
2) Change system time to a past value in BIOS. Reboot system, System will fail  
   when it will try to mount the root filesystem.
3) Do a e2fsck<root device>  and reboot the system.

Actual results:
This fixed issue and logged in, system chosen the old date.  On some occasions, it boots fine without issues and sometime running e2fsck doesn't seem to fix it.

Expected results:
e2fsck should fix this. 

Additional info:
e2fsprogs-1.41.12-3.el6

Comment 2 RHEL Program Management 2011-04-05 20:43:40 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Eric Sandeen 2011-04-13 20:36:06 UTC
Some of this is expected, but there are patches upstream to relax the clock vs. timestamp requirements.  These could be added so that less severe clock differences don't cause a forced fsck.

Comment 4 Eric Sandeen 2011-05-23 18:58:17 UTC
Actually, all of these upstream commits are in place in the RHEL6 e2fsprogs package.

It is by design that e2fsck -p won't work when the time looks "insane," and a manual fsck is requested.

If this is what you see, it is actually working as intended.

There is also an option, "broken_system_clock" :

from RELEASE-NOTES:

> E2fsck now will completely skip time-based checks if the system clock
> looks insane or the option broken_system_clock is set in
> /etc/e2fsck.conf.

so this behavior can be changed.

I'm going to close this NOTABUG, but feel free to re-open if you feel that this is incorrect, with more detail or rationale...

Thanks,
-Eric


Note You need to log in before you can comment on or make changes to this bug.