linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] snapshots of busy ext2 file system corrupt
@ 2002-02-26  7:55 Urs Thuermann
  2002-02-26 10:59 ` Andreas Dilger
  2002-02-27  3:01 ` Anselm Kruis
  0 siblings, 2 replies; 14+ messages in thread
From: Urs Thuermann @ 2002-02-26  7:55 UTC (permalink / raw)
  To: linux-lvm

I tried creating a snapshot of a ext2 file system on a LV.  I expected
a fsck on the snapshot device to give no errors, i.e. a consistent
file system.  This is ok, as long as there is no (or little) load on
the file system when creating the snapshot.

However, on a busy file system, the created snapshot has lots of
errors found by fsck.

Is it this what the VFS lock patch is for?  If so, why hasn't it been
integrated into the standard kernel?  Has it flaws in it?  Maybe
performance wise?


urs

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: [linux-lvm] snapshots of busy ext2 file system corrupt
@ 2002-02-27 14:24 Stephenson, Dale
  2002-02-27 14:43 ` Chris Mason
  2002-03-04  2:51 ` Anselm Kruis
  0 siblings, 2 replies; 14+ messages in thread
From: Stephenson, Dale @ 2002-02-27 14:24 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Anselm Kruis writes:

[Of the VFS lock patch]
> 
> It deadlocks for XFS on smp under heavy writeload. I use a writeable
> snapshot patch and replay the log afterwards.
> 
So if you don't have the patch, you don't have a deadlock?  I've been trying
to track down a problem with multiple snapshots of the same volume, but the
presence or absence of the lock patch doesn't seem to make a difference.

> I think, the VFS patch has some principal problems. Creating 
> a snapshot
> with the VFS-lock patch applied is more or less equivalent to 
> unmounting 
> the file system, creating the snapshot of the device and 
> remounting the
> file system. That means that all ongoing write operations must be
> suspended until the filesystem is in a "clean" state. This can take
> some time. Up to 15 minutes from my observations and that is 
> way too long.
> I think the right way is: use a jornaling file system, take a 
> snapshot,
> make the snapshot writeable, replay the log, make the 
> snapshot readonly
> and dump it to tape or whatever you want. No races, no deadlocks, no
> problems.
> 
Except that it's a lot more steps :->.  I only wrote a writable snapshot
patch because I wanted to use XFS with snapshots and they didn't have the
nouuid,norecovery mount options at the time.  Is there any difference
between doing the replay and just mounting norecovery?

Dale Stephenson
steph@snapserver.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-03-04  2:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26  7:55 [linux-lvm] snapshots of busy ext2 file system corrupt Urs Thuermann
2002-02-26 10:59 ` Andreas Dilger
2002-02-26 11:40   ` Chris Mason
2002-02-26 13:30     ` Urs Thuermann
2002-02-26 14:58       ` Chris Mason
2002-02-26 15:27         ` Andreas Dilger
2002-02-26 16:32           ` Marc MERLIN
2002-02-26 17:21             ` Andreas Dilger
2002-02-26 13:25   ` Urs Thuermann
2002-02-27  3:01 ` Anselm Kruis
  -- strict thread matches above, loose matches on Subject: below --
2002-02-27 14:24 Stephenson, Dale
2002-02-27 14:43 ` Chris Mason
2002-03-04  2:46   ` Anselm Kruis
2002-03-04  2:51 ` Anselm Kruis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).