Skip to contentSkip to conversation

can't snap a mounted (reiserfs|ext3) with kernel 2.2.x

linux-lvm Thierry VOYAT 3 participants 3 messages Aug 23, 2002 – Aug 24, 2002

lore
Share & tools
lore
#0 lore raw

I need to unmount the lvm partition before i can realize a valid snapshot of a journalized fs (reiserfs or ext)
All works fine with ext2 :

mount -t ext3 /dev/vg0/ext3fs =>ok
lvreate snap /dev/vg0/ext3fs => ok
mount snap => FAILED
mount: block device /dev/vg0/snap is write-protected, mounting
read-only
mount: wrong fs type, bad option, bad superblock on /dev/vg0/snap,
or too many mounted file systems

umount /dev/vg0/ext3fs =>ok
lvreate snap /dev/vg0/ext3fs => ok
mount snap => ok

mount -t ext2 /dev/vg0/ext2fs =>ok
lvreate snap /dev/vg0/ext2fs => ok
mount snap => ok

Redhat 6.2 on IBM Netfinity
kernel used: 2.2.19, 2.2.20, 2.2.21
patches: reiserfs-3.5.35,

	ext3-0.0.7a
	linux-2.2.18-rawio.patch, 
	linux-2.2.19.kdb.diff, 
	linux-2.2.19.ext3.diff

LVM: 1.0.3, 1.0.4, 1.0.5 patches and utils

I known there was a patch for kernel 2.4.x for VFS-lock but nothing for kenel 2.2.x series.

I can't upgrade to kernel 2.4. What can i do ?

Signature · 4 lines
     ?????      Thierry VOYAT       T�l: (33) 3 22 82 38 39
    ( 0 0 )     Rectorat Amiens     Fax: (33) 3 22 82 39 16
---oOo(_)oOo--- 20 boulevard Alsace-Lorraine - 80063 AMIENS
Les faiblesses des hommes font la force des femmes. Voltaire
#1 lore raw
Quoted 8 lines · Thierry VOYAT

I need to unmount the lvm partition before i can realize a valid snapshot of a journalized fs (reiserfs or ext)
All works fine with ext2 :

I known there was a patch for kernel 2.4.x for VFS-lock but nothing for kenel 2.2.x series.

I can't upgrade to kernel 2.4. What can i do ?

I don't think there is such a thing as the VFS lock patch for 2.2 (unless Chris Mason knows otherwise!).

In which case, Im afraid, you're stuck.

patrick

#2 lore raw
Quoted 8 lines · Patrick Caulfield
Quoted 7 lines · Thierry VOYAT

I need to unmount the lvm partition before i can realize a valid snapshot of a journalized fs (reiserfs or ext)
All works fine with ext2 :

I known there was a patch for kernel 2.4.x for VFS-lock but nothing for kenel 2.2.x series.

Quoted 6 lines
Quoted 1 line

I can't upgrade to kernel 2.4. What can i do ?

I don't think there is such a thing as the VFS lock patch for 2.2 (unless Chris Mason knows otherwise!).

In which case, Im afraid, you're stuck.

We do have patch in the 2.2.x suse kernel to add the lockfs calls to the kernel, but not a reiserfs patch to use them. Anyone know if 2.2.x ext3 provides a lockfs call?

-chris