Bug 178705 - ext "mounting unchecked fs" warnings when mounting snapshots
Summary: ext "mounting unchecked fs" warnings when mounting snapshots
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lvm2
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Mikuláš Patočka
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-23 17:38 UTC by Corey Marthaler
Modified: 2008-06-11 03:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-11 03:08:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2006-01-23 17:38:56 UTC
Description of problem:
I remember discussing this issue before and I thought that there was a bz
already open for it but I couldn't find one. When ever you mount a snapshot of a
valid filesystem, ext warns that it's unchecked even though the origin
filesystem is just fine, and ext didn't complain when you mounted it.

"EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended"


Version-Release number of selected component (if applicable):
lvm2-2.02.01-1.3.RHEL4


How reproducible:
everytime

Comment 1 Milan Broz 2007-05-15 17:55:06 UTC
Is there still an issue with this ?
(I think it is fixed by lock_fs call...)

Comment 2 Corey Marthaler 2007-05-23 16:36:17 UTC
Yes, this still exists in lvm2-2.02.21-5.el4 (2.6.9-55.ELlargesmp).

[root@link-08 ~]# mount /dev/link/snap1 /mnt/2

May 23 11:35:35 link-08 kernel: EXT2-fs warning: mounting unchecked fs, running
e2fsck is recommended


Comment 3 Mikuláš Patočka 2008-06-09 00:00:26 UTC
Hmm, I am considering marking this as WONTFIX.  Ext2 design doesn't allow to bring filesystem to a consistent state while it is mounted. There are two reasons for it:  1. the filesystem doesn't contain any global lock. When creating snapshot, we must make sure that there is no operation in progress and that no new operation will be started --- but there are many entry points to the filesystem and no lock to protect them all. Fixing this would mean major code rewrite.  2. ext2 allows files being open after they are deleted and only fsck can recover these lost inodes. If you take snapshot of a filesystem with open deleted file, the only way to make this snapshot consistent is to run fsck on it --- so keeping the snapshotted filesystem marked for fsck is a good thing.  I'd suggest to use ext3 or other journaled filesystem for snapshots. 


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