Bug 84278 - (LVM PATCH)error mounting lvm reiserfs snapshot
(LVM PATCH)error mounting lvm reiserfs snapshot
Status: CLOSED DUPLICATE of bug 97843
Product: Red Hat Linux
Classification: Retired
Component: lvm (Show other bugs)
9
i686 Linux
high Severity high
: ---
: ---
Assigned To: Stephen Tweedie
Brian Brock
:
: 88977 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-13 17:20 EST by Harris Landgarten
Modified: 2005-10-31 17:00 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-08-31 09:43:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Harris Landgarten 2003-02-13 17:20:37 EST
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 17:26:20 EDT
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 14:27:08 EDT
New kernel patch fixed problem.
Comment 3 Harris Landgarten 2003-06-07 12:38:40 EDT
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 10:39:57 EDT
*** Bug 88977 has been marked as a duplicate of this bug. ***
Comment 5 Chris Adams 2003-06-23 16:34:38 EDT
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 19:26:52 EDT
This doesn't seem specific to reiser, it's appearing w/ ext3 file systems as well.
Comment 7 Harris Landgarten 2003-07-18 23:37:46 EDT
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 00:31:42 EDT
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 04:29:02 EDT
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 11:02:48 EDT
Yes, I'm very surprised too.

No Red Hat person has even commented on this bug.

Strange...
Comment 11 Jesse Keating 2003-08-22 19:46:03 EDT
*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-02 22:41:24 EDT
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 12:30:04 EDT
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 13:33:32 EDT

*** 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.