Skip to contentSkip to conversation

mount reiserfs snapshot failed

linux-lvm Markus Bartl 6 participants 8 messages Apr 18, 2002 – Apr 19, 2002

lore
Share & tools
lore
#0 lore raw

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

I made a shell-script to perform a test using snapshots. Here is what it does (looped):
1) create snapshot
2) mount snapshot --> fails sometimes (35 loops, 6 fails)
3) backup snapshot
4) create file on original volume while backup is still running
5) unmount snapshot
6) remove snapshot

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

Thanks for your help,
Markus

#1 lore raw
Quoted 16 lines · Markus Bartl

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

I made a shell-script to perform a test using snapshots. Here is what it does (looped):
1) create snapshot
2) mount snapshot --> fails sometimes (35 loops, 6 fails)
3) backup snapshot
4) create file on original volume while backup is still running
5) unmount snapshot
6) remove snapshot

Quoted 3 lines

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

Do version 1.0.3 tools fail in the same way ?

- Joe

#2 lore raw
Quoted 24 lines · Joe Thornber
Quoted 16 lines · Markus Bartl

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

I made a shell-script to perform a test using snapshots. Here is what it does (looped):
1) create snapshot
2) mount snapshot --> fails sometimes (35 loops, 6 fails)
3) backup snapshot
4) create file on original volume while backup is still running
5) unmount snapshot
6) remove snapshot

Quoted 3 lines

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

Do version 1.0.3 tools fail in the same way ?

Quoted 7 lines

- Joe

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Hi there.
I tried the 1.0.3 tools with the 1.1rc1 kernel module. The same problem occured (not as much
as with the 1.1rc1 tools though).
Im now going to build the 1.0.3 kernel module and try it that way. Thanks.

Signature · 4 lines
MC-Lindinger GmbH
Markus Bartl
Wiesenweg 1
D-94099 Ruhstorf
#3 lore raw
Quoted 10 lines · Markus Bartl
Quoted 9 lines · Joe Thornber
Quoted 7 lines · Markus Bartl

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

[..]

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

No idea, but for information, I have the same problem on a kernel 2.4.17 + linux-2.4.11-VFS-lock.patch + patch reiserfs-quota, with LVM 1.0.2

Quoted 1 line

Im now going to build the 1.0.3 kernel module and try it that way.

[ Xavier Montagutelli          `""'                                   ]
[ INSA Toulouse                0--0                                   ]
[               ---------oOOo---()---oOOo----------                   ]
[ Dpt de Math / Service Informatique  Tel: +33 5 61 55 93 38 / 67     ]
[ 135, Avenue de Rangueil             Fax: +33 5 61 55 93 20 / 60     ]
[ 31077 Toulouse Cedex 4              Mel: [email protected]  ]
#4 lore raw
In reply to Joe Thornber
Quoted 24 lines · Joe Thornber
Quoted 16 lines · Markus Bartl

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

I made a shell-script to perform a test using snapshots. Here is what it does (looped):
1) create snapshot
2) mount snapshot --> fails sometimes (35 loops, 6 fails)
3) backup snapshot
4) create file on original volume while backup is still running
5) unmount snapshot
6) remove snapshot

Quoted 3 lines

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

Do version 1.0.3 tools fail in the same way ?

Quoted 7 lines

- Joe

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Hi there.

I rebuilt the kernel with lvm 1.0.3 and used the 1.0.3 tools. The problem is still there.
Anyone got any other idea???
Thanks!!!

Markus

Signature · 4 lines
MC-Lindinger GmbH
Markus Bartl
Wiesenweg 1
D-94099 Ruhstorf
#5 lore raw
Quoted 2 lines · Markus Bartl

I rebuilt the kernel with lvm 1.0.3 and used the 1.0.3 tools. The problem is still there.

Could you please send the script?

During snapshot testing, I run two loops in the background:

while(1)
mount /dev/vg/lv1 /foo
touch /foo/foo
rm /foo/foo
umount /foo/foo
end

while(1)
create snapshot
mount snapshot
umount snapshot
remove snapshot
end

-chris

#6 lore raw
In reply to Joe Thornber

Hi, Joe!

Joe Thornber ([email protected]) wrote 31 lines:

Quoted 8 lines · Markus Bartl
Quoted 5 lines

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).

Do version 1.0.3 tools fail in the same way ?

I am running a similar configuration:
Kernel 2.4.18-rc4
+ LVM 1.0.3
+ linux-2.4.18-VFS-lock.patch
+ sched-O1-2.4.18-pre8-K3.patch
I use ext3, and the LVM 1.0.3-tools + LVM-1.0.3-pmove-patch

Snapshots work.

I upgrade to 2.4.19-pre6, must merge the VFS-lock.patch by hand and drop the sched-O1-* patch; and use the LVM 1.1rc1-Tools:

Snapshots get generated, but first some (depending on the order of generation!), later all of them are unreadable (even a simple cat fails complaining about that), so mount fails.

I decide this might be due to a bad merge on my side or a kernel problem, so I downgrade to:

Kernel 2.4.18-rc4
+ LVM 1.1rc1
+ linux-2.4.18-VFS-lock.patch
+ sched-O1-2.4.18-pre8-K3.patch
LVM 1.1rc1-Tools.

Snapshots still unreadable.

I downgrade the Kernel to LVM 1.0.3:

Kernel 2.4.18-rc4
+ LVM 1.0.3
+ linux-2.4.18-VFS-lock.patch
+ sched-O1-2.4.18-pre8-K3.patch
but still with LVM 1.1rc1-Tool

Snapshots still show the same problems as before.

Downgrading to LVM 1.0.3-tools on the running system:
everything works again.

-Wolfgang

#7 lore raw
In reply to Markus Bartl

This could still be VM issues.

Have you tried top of CVS, which is in pre-release tests for LVM 1.1-rc2?

Regards,
Heinz -- The LVM Guy --

Quoted 20 lines · Markus Bartl

Hi there.

Im using the original kernel 2.4.18 with the locking patch and the lvm-patch applied. I use the lvm in Version 1.1rc1.
I got one harddisk with 4 partitions on it, 1 partition is Linux LVM. The volume to backup is mounted on /home and has reiserfs.

I made a shell-script to perform a test using snapshots. Here is what it does (looped):
1) create snapshot
2) mount snapshot --> fails sometimes (35 loops, 6 fails)
3) backup snapshot
4) create file on original volume while backup is still running
5) unmount snapshot
6) remove snapshot

In some cases mounting the snapshot volume fails with error 32 (wrong fs type or bad superblock).
Anybody got any idea???

Quoted 8 lines

Thanks for your help,
Markus

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-