LVM1 snapshots and reiserfs
Hello:
(I've already sent this to the LVM list; it was suggested that I ask here as well.)
Sometimes, but not always, I am unable to mount a snapshot. When it fails, I see the following lines in my logs...
kernel: reiserfs: checking transaction log (device 3a:06) ...
kernel: clm-2076: device is readonly, unable to replay log
kernel: Replay Failure, unable to mount
kernel: reiserfs_read_super: unable to initialize journal space
I am using RedHat 9 with the following stock packages:
kernel-smp-2.4.20-30.9
lvm-1.0.3-12
reiserfs-utils-3.6.4-5
I have not tried the combination of snapshots & reiserfs with earlier RedHat packages so I don't know if this is a regression.
After some STFW, I thought I might need a "VFS lock" patch. However, it looks like this was already included by RedHat... in kernel-smp-2.4.20-30.9.src.rpm there is already this patch:
linux-2.4.18-lvm-VFSlock.patch.
Is there anything else I can try or look at?
Also, is it necessary that the filesystem be quiescent in order to create a snapshot? I could temporarily remount readonly to create the snapshot, but I would like not to have to do that.
Thanks and regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 22 lines · Mark M. Hoffman
Hello:
(I've already sent this to the LVM list; it was suggested that I ask here as well.)
Sometimes, but not always, I am unable to mount a snapshot. When it fails, I see the following lines in my logs...
kernel: reiserfs: checking transaction log (device 3a:06) ...
kernel: clm-2076: device is readonly, unable to replay log
kernel: Replay Failure, unable to mount
kernel:reiserfs_read_super: unable to initialize journal spaceI am using RedHat 9 with the following stock packages:
kernel-smp-2.4.20-30.9
lvm-1.0.3-12
reiserfs-utils-3.6.4-5I have not tried the combination of snapshots & reiserfs with earlier RedHat packages so I don't know if this is a regression.
Quoted 7 lines
After some STFW, I thought I might need a "VFS lock" patch. However, it looks like this was already included by RedHat... in kernel-smp-2.4.20-30.9.src.rpm there is already this patch:
linux-2.4.18-lvm-VFSlock.patch.Is there anything else I can try or look at?
Hard to say, but you might want to check their VFSlock patch for this hunk (or something like it)
fs/reiserfs/super.c +1 -1
@@ -83,7 +83,7 @@reiserfs_prepare_for_journal (s,SB_BUFFER_WITH_SB (s),1 );journal_mark_dirty (&th, s,SB_BUFFER_WITH_SB (s));reiserfs_block_writes (&th) ; -journal_end (&th, s,1 ) ; +journal_end_sync (&th, s,1 ) ; } s->s_dirt =0 ;unlock_kernel () ;
-chris
Hi Chris:
(long delay because I was on vacation last week...)
Quoted 36 lines · Chris Mason
Quoted 22 lines · Mark M. Hoffman
Hello:
(I've already sent this to the LVM list; it was suggested that I ask here as well.)
Sometimes, but not always, I am unable to mount a snapshot. When it fails, I see the following lines in my logs...
kernel: reiserfs: checking transaction log (device 3a:06) ...
kernel: clm-2076: device is readonly, unable to replay log
kernel: Replay Failure, unable to mount
kernel:reiserfs_read_super: unable to initialize journal spaceI am using RedHat 9 with the following stock packages:
kernel-smp-2.4.20-30.9
lvm-1.0.3-12
reiserfs-utils-3.6.4-5I have not tried the combination of snapshots & reiserfs with earlier RedHat packages so I don't know if this is a regression.
Quoted 7 lines
After some STFW, I thought I might need a "VFS lock" patch. However, it looks like this was already included by RedHat... in kernel-smp-2.4.20-30.9.src.rpm there is already this patch:
linux-2.4.18-lvm-VFSlock.patch.Is there anything else I can try or look at?
Hard to say, but you might want to check their VFSlock patch for this hunk (or something like it)
diff -urlinux.beta3.1/fs/reiserfs/super.clinux.beta3/fs/reiserfs/super.c
fs/reiserfs/super.c line 89
Quoted 8 lines
fs/reiserfs/super.c +1
-1@@ -83,7 +83,7 @@reiserfs_prepare_for_journal (s,SB_BUFFER_WITH_SB (s),1 );journal_mark_dirty (&th, s,SB_BUFFER_WITH_SB (s));reiserfs_block_writes (&th) ; -journal_end (&th, s,1 ) ; +journal_end_sync (&th, s,1 ) ; } s->s_dirt =0 ;unlock_kernel () ;
Right, the above hunk is already part of RedHat's VFSlock patch. Thanks for the hint though. If there's nothing else easy or obvious to check, I guess I'll build kernel.org 2.4.26 for it. I was hoping to avoid that - oh well.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]