[linux-lvm] Patching a kernel that already has VFS-lock

Patrick Caulfield caulfield at sistina.com
Thu Mar 13 02:11:02 UTC 2003


On Wed, Mar 12, 2003 at 05:18:35PM -0500, Rechenberg, Andrew wrote:
> Good day,
> 
> I'm trying to upgrade my kernel from LVM 1.0.3 to 1.0.7.  My kernel with
> 1.0.3 already has the VFS lock pactch installed and all I want to do is
> upgrade the LVM code because my snapshots are misbehaving.  I should not
> have to re-patch to get the VFS-lock to work should I?
> 
> The reason I ask is because when I just patch the kernel with LVM 1.0.7
> and reboot all my VG's/LV's come up clean, and I can create snapshots
> but the snapshots do not mount.  I get the:
> 
> mount: wrong fs type, bad option, bad superblock on /dev/flux1/snap,
>        or too many mounted file systems
> 
> error which would indicate to me that the VFS lock is not working with
> my ext3 filesystem.  Does anyone have any ideas on what could be causing
> this problem?  
> 
> Red Hat kernel source RPM 2.4.18-26
> LVM 1.0.7 from the Sistina FTP site
> 


If you've managed to successfully patch LVM into the kernel (and it sounds like
you have), all that should be needed to enable VFS-Lock functionality is to
uncomment the line in lvm.c that reads:

/* #define LVM_VFS_ENHANCEMENT */


to be

#define LVM_VFS_ENHANCEMENT

and rebuild.

patrick





More information about the linux-lvm mailing list