xfs
[Top] [All Lists]

Re: assemble vs create an array.......

To: Michael Tokarev <mjt@xxxxxxxxxx>
Subject: Re: assemble vs create an array.......
From: David Chinner <dgc@xxxxxxx>
Date: Fri, 7 Dec 2007 08:22:25 +1100
Cc: Dragos <dragos@xxxxxxxxxxx>, David Greaves <david@xxxxxxxxxxxx>, linux-raid@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx
In-reply-to: <475825C0.4070605@msgid.tls.msk.ru>
References: <474F869D.5040503@mpigani.org> <18255.41044.614676.410107@notabene.brown> <47501D7E.7000804@dgreaves.com> <475552D2.4000802@mpigani.org> <47568DE1.1050108@dgreaves.com> <4758129D.40600@mpigani.org> <475825C0.4070605@msgid.tls.msk.ru>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Thu, Dec 06, 2007 at 07:39:28PM +0300, Michael Tokarev wrote:
> What to do is to give repairfs a try for each permutation,
> but again without letting it to actually fix anything.
> Just run it in read-only mode and see which combination
> of drives gives less errors, or no fatal errors (there
> may be several similar combinations, with the same order
> of drives but with different drive "missing").

Ugggh. 

> It's sad that xfs refuses mount when "structure needs
> cleaning" - the best way here is to actually mount it
> and see how it looks like, instead of trying repair
> tools. 

It self protection - if you try to write to a corrupted filesystem,
you'll only make the corruption worse. Mounting involves log
recovery, which writes to the filesystem....

> Is there some option to force-mount it still
> (in readonly mode, knowing it may OOPs kernel etc)?

Sure you can: mount -o ro,norecovery <dev> <mtpt>

But it you hit corruption it will still shut down on you. If
the machine oopses then that is a bug.

> thread prompted me to think.  If I can't force-mount it
> (or browse it using other ways) as I can almost always
> do with (somewhat?) broken ext[23] just to examine things,
> maybe I'm trying it before it's mature enough? ;)

Hehe ;)

For maximum uber-XFS-guru points, learn to browse your filesystem
with xfs_db. :P

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


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