LVM, Reiserfs, and snapshots.
Im having a bit of trouble here, and I'm hoping that someone on this list can assist me.
I am trying to do snapshots on a database system, and I'm getting:
dbgsh01:~# lvremove /dev/vg0/snap23052 lvremove -- do you really want to remove "/dev/vg0/snap23052"? [y/n]: y lvremove -- doing automatic backup of volume group "vg0" lvremove -- logical volume "/dev/vg0/snap23052" successfully removed
dbgsh01:~# lvcreate -L 10G -s -n test /dev/vg0/lv0 lvcreate -- WARNING: the snapshot will be automatically disabled once it gets full lvcreate -- INFO: using default snapshot chunk size of 64 KB for "/dev/vg0/test" lvcreate -- doing automatic backup of "vg0" lvcreate -- logical volume "/dev/vg0/test" successfully created
dbgsh01:~# mount -o ro /dev/vg0/test /snap/
mount: wrong fs type, bad option, bad superblock on /dev/vg0/test,
or too many mounted file systemsAnd of course, /dev/log/kern.log contains:
Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: CONFIG_REISERFS_CHECK is set ON Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: - it is slow mode for debugging. Nov 11 21:15:23 dbgsh01 kernel: reiserfs: checking transaction log (device 3a:01) ... Nov 11 21:15:23 dbgsh01 kernel: journal-1153: found in header: first_unflushed_offset 7026, last_flushed_trans_id 11094 Nov 11 21:15:23 dbgsh01 kernel: journal-1006: found valid transaction start offs et 7026, len 3 id 11095 Nov 11 21:15:23 dbgsh01 kernel: clm-2076: device is readonly, unable to replay log Nov 11 21:15:23 dbgsh01 kernel: Replay Failure, unable to mount Nov 11 21:15:23 dbgsh01 kernel: reiserfs_read_super: unable to initialize journal space
Ok, so there's the problem description.
Kernel version is 2.4.14 (no patches), Debian variant of Linux, using:
Logical Volume Manager 0.9.1_beta7
mount: mount-2.11h
The funny thing is that I've got 2 other systems where I *can* do the above steps, and the only differences are the kernel on *one* of the systems (2.4.8-ac8) and the configuration of the underlying hardware (all three have 3ware cards, one of them has 2 disks in raid0, the other 2 have raid1. One working and one non-working have raid1.).
Any clues?
Signature · 1 line
Share and Enjoy.
Quoted 10 lines · Petro
Im having a bit of trouble here, and I'm hoping that someone on this list can assist me.
Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: CONFIG_REISERFS_CHECK is set ON Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: - it is slow mode for debugging. Nov 11 21:15:23 dbgsh01 kernel: reiserfs: checking transaction log (device 3a:01) ... Nov 11 21:15:23 dbgsh01 kernel: journal-1153: found in header: first_unflushed_offset 7026, last_flushed_trans_id 11094 Nov 11 21:15:23 dbgsh01 kernel: journal-1006: found valid transaction start offs et 7026, len 3 id 11095 Nov 11 21:15:23 dbgsh01 kernel: clm-2076: device is readonly, unable to replay log Nov 11 21:15:23 dbgsh01 kernel: Replay Failure, unable to mount Nov 11 21:15:23 dbgsh01 kernel: reiserfs_read_super: unable to initialize journal space
You need to apply the VFS lock patch in the LVM PATCHES directory to make reiserfs snapshots work.
patrick
Quoted 11 lines · Patrick Caulfield
Quoted 10 lines · Petro
Im having a bit of trouble here, and I'm hoping that someone on this list can assist me.
Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: CONFIG_REISERFS_CHECK is set ON Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: - it is slow mode for debugging. Nov 11 21:15:23 dbgsh01 kernel: reiserfs: checking transaction log (device 3a:01) ... Nov 11 21:15:23 dbgsh01 kernel: journal-1153: found in header: first_unflushed_offset 7026, last_flushed_trans_id 11094 Nov 11 21:15:23 dbgsh01 kernel: journal-1006: found valid transaction start offs et 7026, len 3 id 11095 Nov 11 21:15:23 dbgsh01 kernel: clm-2076: device is readonly, unable to replay log Nov 11 21:15:23 dbgsh01 kernel: Replay Failure, unable to mount Nov 11 21:15:23 dbgsh01 kernel: reiserfs_read_super: unable to initialize journal space
Quoted 2 lines
You need to apply the VFS lock patch in the LVM PATCHES directory to make reiserfs snapshots work.
Are/were these part of the -ac patchset?
I ask because I have it working with 2.4.8-ac8.
Signature · 1 line
Share and Enjoy.
Quoted 12 lines · Petro
Quoted 11 lines · Patrick Caulfield
Quoted 10 lines · Petro
Im having a bit of trouble here, and I'm hoping that someone on this list can assist me.
Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: CONFIG_REISERFS_CHECK is set ON Nov 11 21:15:23 dbgsh01 kernel: reiserfs:warning: - it is slow mode for debugging. Nov 11 21:15:23 dbgsh01 kernel: reiserfs: checking transaction log (device 3a:01) ... Nov 11 21:15:23 dbgsh01 kernel: journal-1153: found in header: first_unflushed_offset 7026, last_flushed_trans_id 11094 Nov 11 21:15:23 dbgsh01 kernel: journal-1006: found valid transaction start offs et 7026, len 3 id 11095 Nov 11 21:15:23 dbgsh01 kernel: clm-2076: device is readonly, unable to replay log Nov 11 21:15:23 dbgsh01 kernel: Replay Failure, unable to mount Nov 11 21:15:23 dbgsh01 kernel: reiserfs_read_super: unable to initialize journal space
Quoted 6 lines
Quoted 2 lines
You need to apply the VFS lock patch in the LVM PATCHES directory to make reiserfs snapshots work.
Are/were these part of the -ac patchset?
I ask because I have it working with 2.4.8-ac8.
No, I don't think so. You can mount reiserfs snapshots if you make them off an unmounted filesystem but other than that it shouldn't work without the VFS patch. Maybe you have been lucky :^)
patrick