From: David Chinner <dgc@sgi.com>
To: Thomas Walker <walker@stsci.edu>
Cc: David Chinner <dgc@sgi.com>, xfs@oss.sgi.com
Subject: Re: Should xfs_repair take this long?
Date: Sat, 17 Mar 2007 06:37:22 +1100 [thread overview]
Message-ID: <20070316193722.GA5743@melbourne.sgi.com> (raw)
In-Reply-To: <45FAB480.908@stsci.edu>
On Fri, Mar 16, 2007 at 11:15:12AM -0400, Thomas Walker wrote:
> So maybe I got bit the same way. parted may be overwritten something
> at the head of the volume.
Doesn't look like partition blocks at the start of each volume, though.
> Is there any way to repair the super block
> though? It seems that everyone agrees xfs can't do anything until it
> has a super block somewhere and I don't seem to have one.
That's beacuse repair can't work out where things are supposed to
be without a superblock to tell it critical information.
Manually trying to find and repair a superblock is a hit and miss
affair - at this point we don't even know if the primary superblocks
have been overwritten or whether something else is wrong with LVM...
> If there's no
> way to repair, then what about recovery?
In a word: backups.
> I see mention of possibly
> doing an xfs dump to another disk, reformat the original volume, and
> then xfs restore back. Is there any online procedure for how to do that
> if it applies to me here?
You need to be able to mount the filesystem to dump it, so until you
can run repair there's no simple recovery option.
If the lvm config is correct and repair cannot find a valid
secondary superblock, then you really need to start doing dangerous
things to try to recover. i'd suggest taking a copy of the lvm
volumes before doing anything else.
Then, find a secondary superblock in the volume (first 4 bytes of
the sector are "XFSB" in hex) and copy that sector to block zero of
the filesystem. If repair still won't do it's stuff, then you need
to use xfs_db to modify that superblock until it does. Then when
repair runs, you get to look in lost+found and try to work out what
all the broken bits are.....
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2007-03-16 19:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-15 11:27 Should xfs_repair take this long? Thomas Walker
2007-03-15 14:04 ` Emmanuel Florac
2007-03-15 14:06 ` Thomas Walker
[not found] ` <20070315160309.652a6e0c@harpe.intellique.com>
[not found] ` <45F96150.50001@stsci.edu>
2007-03-15 15:23 ` Emmanuel Florac
2007-03-15 15:27 ` Thomas Walker
2007-03-15 23:10 ` David Chinner
2007-03-16 15:15 ` Thomas Walker
2007-03-16 19:37 ` David Chinner [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-16 0:20 Thomas Walker
2007-03-16 1:32 ` David Chinner
2007-03-16 11:15 ` Thomas Walker
2007-03-16 19:20 ` David Chinner
2007-03-16 19:30 ` Eric Sandeen
2007-03-16 20:09 Thomas Walker
2007-03-16 20:52 ` David Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070316193722.GA5743@melbourne.sgi.com \
--to=dgc@sgi.com \
--cc=walker@stsci.edu \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox