* [linux-lvm] snapshots and reiserfs
@ 2004-04-08 18:18 Mark M. Hoffman
2004-04-08 18:57 ` Clint Byrum
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Mark M. Hoffman @ 2004-04-08 18:18 UTC (permalink / raw)
To: linux-lvm
Hello:
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,
--
Mark M. Hoffman
mhoffman@lightlink.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-lvm] snapshots and reiserfs
2004-04-08 18:18 [linux-lvm] snapshots and reiserfs Mark M. Hoffman
@ 2004-04-08 18:57 ` Clint Byrum
2004-04-08 22:48 ` Greg Freemyer
2004-04-10 8:28 ` Craig Ringer
2 siblings, 0 replies; 6+ messages in thread
From: Clint Byrum @ 2004-04-08 18:57 UTC (permalink / raw)
To: LVM general discussion and development
On Thu, 2004-04-08 at 11:18, Mark M. Hoffman wrote:
> Hello:
>
> 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:
>
I see the same thing on RedHat 8. I never looked at the kernel messages,
but I do occasionally get a backup failure because the snapshot won't
mount. I added a 3 second sleep between the lvcreate and the mounting in
our backup scripts, and that seems to have reduced the frequency, but I
still see it once a month or so.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] snapshots and reiserfs
2004-04-08 18:18 [linux-lvm] snapshots and reiserfs Mark M. Hoffman
2004-04-08 18:57 ` Clint Byrum
@ 2004-04-08 22:48 ` Greg Freemyer
2004-04-10 8:28 ` Craig Ringer
2 siblings, 0 replies; 6+ messages in thread
From: Greg Freemyer @ 2004-04-08 22:48 UTC (permalink / raw)
To: linux-lvm
On Thu, 2004-04-08 at 14:18, Mark M. Hoffman wrote:
> Hello:
>
> 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,
XFS used to have this problem about a year ago.
For xfs the issue was that xfs mount attempted a journal replay even
when the mount was read-only. XFS now skips journal replay on read-only
mounts.
You should ask on a reiserfs list if they skip journal replay on
read-only mounts or not.
Greg
--
Greg Freemyer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] snapshots and reiserfs
2004-04-08 18:18 [linux-lvm] snapshots and reiserfs Mark M. Hoffman
2004-04-08 18:57 ` Clint Byrum
2004-04-08 22:48 ` Greg Freemyer
@ 2004-04-10 8:28 ` Craig Ringer
2004-04-10 18:23 ` Mark M. Hoffman
2 siblings, 1 reply; 6+ messages in thread
From: Craig Ringer @ 2004-04-10 8:28 UTC (permalink / raw)
To: LVM general discussion and development
On Fri, 2004-04-09 at 02:18, Mark M. Hoffman wrote:
> 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 upgraded my kernel to one provided by the Fedora project ( fedora.us,
not fedora.redhat.com ). This seemed to sort out the problem.
> I have not tried the combination of snapshots & reiserfs with
> earlier RedHat packages so I don't know if this is a regression.
I used to get it on RH8, with both ext3 and reiserfs (though more
commonly with reiserfs). Syncing before taking the snapshot can help,
but the only real fix is a kernel patch that makes sure the disk buffers
are flushed to disk before the snapshot is taken.
> 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.
That would probably work too, but the VFS lock patch /really/ should do
the trick.
Craig Ringer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] snapshots and reiserfs
2004-04-10 8:28 ` Craig Ringer
@ 2004-04-10 18:23 ` Mark M. Hoffman
2004-04-12 12:42 ` Craig Ringer
0 siblings, 1 reply; 6+ messages in thread
From: Mark M. Hoffman @ 2004-04-10 18:23 UTC (permalink / raw)
To: Linux LVM
* Craig Ringer <craig@postnewspapers.com.au> [2004-04-10 16:28:32 +0800]:
> On Fri, 2004-04-09 at 02:18, Mark M. Hoffman wrote:
>
> > 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 upgraded my kernel to one provided by the Fedora project ( fedora.us,
> not fedora.redhat.com ). This seemed to sort out the problem.
What version? I just looked at that site, and I don't see any kernel
RPMs except the stock RedHat ones (base and updates) for RedHat 9.
Or are you using FC1? I'll upgrade, but only if I'm *sure* it will
solve the problem.
> > I have not tried the combination of snapshots & reiserfs with
> > earlier RedHat packages so I don't know if this is a regression.
>
> I used to get it on RH8, with both ext3 and reiserfs (though more
> commonly with reiserfs). Syncing before taking the snapshot can help,
> but the only real fix is a kernel patch that makes sure the disk buffers
> are flushed to disk before the snapshot is taken.
Yeah, I already added a 'sync ; sleep 2' in front of the 'lvcreate' in
my scripts... I'm still seeing some failures, but fewer than before.
> > 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.
>
> That would probably work too, but the VFS lock patch /really/ should do
> the trick.
That's what I understood as well; maybe RedHat's VFS lock patch is bad.
Thanks and regards,
--
Mark M. Hoffman
mhoffman@lightlink.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] snapshots and reiserfs
2004-04-10 18:23 ` Mark M. Hoffman
@ 2004-04-12 12:42 ` Craig Ringer
0 siblings, 0 replies; 6+ messages in thread
From: Craig Ringer @ 2004-04-12 12:42 UTC (permalink / raw)
To: Linux LVM
On Sun, 2004-04-11 at 02:23, Mark M. Hoffman wrote:
> What version? I just looked at that site, and I don't see any kernel
> RPMs except the stock RedHat ones (base and updates) for RedHat 9.
I'm afraid I don't remember now. It was a while ago. Looking at my RPM
database, I appear to have kernel-smp-2.4.20-28.8 as my newest 2.4
kernel; that'll be the one. Remember, though, that I'm using RH8 not
RH9, so things will be a little different.
I just fetched the kernel image using apt, thinking "perhaps a newer
kernel will help..." - and it did.
> Or are you using FC1? I'll upgrade, but only if I'm *sure* it will
> solve the problem.
No, definitely not FC1.
Craig Ringer
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-04-12 12:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-08 18:18 [linux-lvm] snapshots and reiserfs Mark M. Hoffman
2004-04-08 18:57 ` Clint Byrum
2004-04-08 22:48 ` Greg Freemyer
2004-04-10 8:28 ` Craig Ringer
2004-04-10 18:23 ` Mark M. Hoffman
2004-04-12 12:42 ` Craig Ringer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox