Bug 84278 - (LVM PATCH)error mounting lvm reiserfs snapshot
Summary: (LVM PATCH)error mounting lvm reiserfs snapshot
Keywords:
Status: CLOSED DUPLICATE of bug 97843
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lvm
Version: 9
Hardware: i686
OS: Linux
high
high
Target Milestone: ---
Assignee: Stephen Tweedie
QA Contact: Brian Brock
URL:
Whiteboard:
: 88977 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-02-13 22:20 UTC by Harris Landgarten
Modified: 2005-10-31 22:00 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-08-31 13:43:36 UTC
Embargoed:


Attachments (Terms of Use)
Bring VFSlock patch up to 2.4.20 (6.42 KB, patch)
2003-05-05 21:26 UTC, Matthew Kent
no flags Details | Diff
Patch so LVM flushes FSes when creating snapshots (1.16 KB, patch)
2003-06-23 20:34 UTC, Chris Adams
no flags Details | Diff

Description Harris Landgarten 2003-02-13 22:20:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030120

Description of problem:
after creating an lvm snapshot of a reiserfs lv, I tried to mount it and
received an error. I believe there is a kernel patch which fixes this problem.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.create an lv and mkfs -t reseiserfs
2. lvcreate --size 100M --snapshot --name any /dev/vg/reiservol
3. mount -o ro /dev/vg/any /mount
    

Actual Results:  mount: block device /dev/test_vg/mail is write-protected,
mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/test_vg/mail,
       or too many mounted file systems


Expected Results:  successful ro mount

Additional info: I believe the problem is in linux/drivers/md/lvm.c
There is a patch to orginal 2.4.20

Comment 1 Matthew Kent 2003-05-05 21:26:20 UTC
Created attachment 91505 [details]
Bring VFSlock patch up to 2.4.20

Cross between the vfslock patch in Sistina's cvs tree for vanilla 2.4.20
kernels and redhats old linux-2.4.18-lvm-VFSlock.patch. Just install the
kernel-2.4.20-9.src.rpm, put the patch into SOURCES, and edit the spec file to
use the new version :)

Comment 2 Harris Landgarten 2003-05-08 18:27:08 UTC
New kernel patch fixed problem.

Comment 3 Harris Landgarten 2003-06-07 16:38:40 UTC
Why hasn't this patch been added to the latest kernel release. There have been 
two kernel updates since this bug was fixed with the new patch yet the old 
patch is still being distributed.

Comment 4 Alan Cox 2003-06-08 14:39:57 UTC
*** Bug 88977 has been marked as a duplicate of this bug. ***

Comment 5 Chris Adams 2003-06-23 20:34:38 UTC
Created attachment 92568 [details]
Patch so LVM flushes FSes when creating snapshots

This is a patch against kernel-2.4.20-18.9 that allows ext3 (and presumably
reiserfs and any other FS) to be flushed when creating LVM snapshots, so the
snapshot is "clean" and can be mounted.  All the supporting code is already
there; this just uncomments the necessary calls from the LVM code.

Comment 6 Jesse Keating 2003-07-18 23:26:52 UTC
This doesn't seem specific to reiser, it's appearing w/ ext3 file systems as well.

Comment 7 Harris Landgarten 2003-07-19 03:37:46 UTC
I never had a problem with ext3 or JFS mounting LVM snapshots. The only 
problem I had was with reiserfs. The kernel patch fixes the problem for me but 
has not yet made it into the distribution kernel for some reason. I have had 
to make custom kernel for two releases since the first working test patch was 
posted on 2003-05-05. I have not tested the 2003-06-23 patch.

Harris

Comment 8 Jesse Keating 2003-07-19 04:31:42 UTC
I was unable to mount an ext3 snapshot with the latest kernel until I applied
the attached patch and rebuilt the kernel.

Comment 9 John Haxby 2003-07-19 08:29:02 UTC
I also had problems with ext3 snapshots that were solved by applying the second
patch listed.   Actually -- I varied the patch slightly.   The patch calls both
fsync_dev(org->lv_dev); and fsync_dev_lockfs(org->lv_dev); which seems
pointless, so I just used #ifdef/else/endif to call just the latter function.

I'm surprised that this patch hasn't made its way in to the distributed kernel
-- I would've thought that there were quite a lot of people who use snapshots to
make reliable backups.

Comment 10 Dax Kelson 2003-07-19 15:02:48 UTC
Yes, I'm very surprised too.

No Red Hat person has even commented on this bug.

Strange...

Comment 11 Jesse Keating 2003-08-22 23:46:03 UTC
*sigh* another kernel update, another kernel that refuses to mount snapshots. 
Whats even more fun, taroon kernel seems to be effected by this as well, trying
taroon kernel on a RHL9 system.  Will do a full taroon install to verify when
time permits.  Why oh why can't we get this fixed?

Comment 12 Damian Menscher 2003-09-03 02:41:24 UTC
Could the original bug reporter (that's you, Harris) please increase the 
priority of this bug so someone at RH will take notice?  Not having the ability 
to perform a consistent tape backup is a pretty serious problem.

Comment 13 Harris Landgarten 2003-09-17 16:30:04 UTC
I just installed a 2.4.20-20.9 with the VFSlock patch and it no longer fixes 
the problem. I can't mount snapshots with this kernel.

Comment 14 Stephen Tweedie 2003-10-23 17:33:32 UTC

*** This bug has been marked as a duplicate of 97843 ***


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