xfs
[Top] [All Lists]

Re: [linux-lvm] Re: Unable to get XFS, ext3, reiserfs & LVM to coexis

To: Adrian Head <ahead@xxxxxxxxxxxxxx>
Subject: Re: [linux-lvm] Re: Unable to get XFS, ext3, reiserfs & LVM to coexist happily
From: Andreas Dilger <adilger@xxxxxxxxxxxxx>
Date: Thu, 10 Jan 2002 13:12:57 -0700
Cc: Eric Sandeen <sandeen@xxxxxxx>, Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>, linux-lvm@xxxxxxxxxxx, ext2-devel@xxxxxxxxxxxxxxxxxxxxx
In-reply-to: <200201101521.IAA17651@xxxxxxxxxxxxxxxxxxxxx>; from ahead@xxxxxxxxxxxxxx on Fri, Jan 11, 2002 at 01:21:26AM +1000
Mail-followup-to: Adrian Head <ahead@xxxxxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxx>, Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>, linux-lvm@xxxxxxxxxxx, ext2-devel@xxxxxxxxxxxxxxxxxxxxx
References: <200201020451.g024pPg00867@xxxxxxxxxxx> <200201050212.TAA16774@xxxxxxxxxxxxxxxxxxxxx> <20020105142527.I12868@xxxxxxx> <200201101521.IAA17651@xxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Jan 11, 2002  01:21 +1000, Adrian Head wrote:
> The last problem is that in only some of my tests when I "ls" the overflowed 
> snapshot "ls" complains about missing directories and files, "echo *" shows 
> what use to be there and ext3 generates errors in the logs:
> EXT3-fs error (device lvm(58,5)): ext3_readdir" directory #2 contains a hole 
> at offset 0

Well, given that the snapshot is now broken and LVM is refusing I/O on it,
what do you expect the filesystem to do?  This is what LVM _intends_ to
happen, because the snapshot can no longer hold all of the data to keep
it consistent.

The ext3 error is reporting that it tried to read the directory (root = #2)
and it got nothing back.  The reason you see some files and not others is
because those blocks happen to still be in the cache, and it does not go
to LVM to try and re-read them.  Eventually, as the memory is needed for
other things, you will no longer be able to read anything.

I suppose it would be possible to have LVM do an "unmount" of any fs
using a bad snapshot device from within the kernel, but whether people
actually want that to happen is another question entirely.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


<Prev in Thread] Current Thread [Next in Thread>