All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Drew Reusser <dreusser@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Issue with Raid 10 super block failing
Date: Mon, 19 Nov 2012 12:12:24 -0500	[thread overview]
Message-ID: <50AA6878.1010002@turmel.org> (raw)
In-Reply-To: <CAPAnFc8WG9cH=MvqpdM830kNeoE2TuT3HcMh0u+m23EqOKvdeQ@mail.gmail.com>

On 11/19/2012 11:44 AM, Drew Reusser wrote:
> On Mon, Nov 19, 2012 at 1:39 PM, Phil Turmel <philip@turmel.org> wrote:

[trim /]

>> So you've re-created the MD array.  That's bad.  Chunk size and Data
>> offset size and alignment defaults have changed in the past couple
>> years, so re-creating an array with a different mdadm version can cause
>> these problems.  You can also lose the original order of devices, with
>> similar consequences.
>>
> 
> Yes I did multiple creates to try to get the devices back together
> after mdadm --Fail commands.  I did not know about the assemble
> command yet and was following what "experts" were saying to try to
> recover failed superblock errors after a reboot (which is what errors
> I found).

The odds of success have dropped.  If you used "--assume-clean" *every*
time you used "--create", the odds are still greater than zero.
Otherwise, the odds your data is destroyed is *very* high.

>> (Side note:  there's various pieces of advice floating around the
>> internet on recovering a broken array that start with re-creating the
>> array.  It's horribly wrong, and only a last resort, and only after
>> recording all the details about the original array.)
>>
>> Unless you kept a copy of "mdadm --examine /dev/sd[abde]1" for the
>> original array, this will be difficult to debug further.  Your best
>> chance is to go back to the version of mdadm available when you first
>> built the system and recreate with that, trying the various device order
>> combinations.
>>
>> Don't attempt to mount to check for success.  First, use "fsck -n" to
>> non-destructively check the FS.  If that gives few errors, then you can
>> mount the FS.
>>
>> Phil
> 
> I don't have the original mdadm --examine as I never knew to keep a
> copy of it.  I created this array when I installed Mint on this server
> in August, so the the version I am running now is the same as the
> version on the pen drive I am booting from.  I know the disks were all
> the same.  I set them up intentionally so they would be identical.
> 
> here is the output of the fsck ..
> 
> mint mnt # fsck -n /dev/md0
> fsck from util-linux 2.20.1
> fsck: fsck.linux_raid_member: not found
> fsck: error 2 while executing fsck.linux_raid_member for /dev/md0

So, mount doesn't see it as an ext4 device at all.  Stop the array, and
scan each member for ext4 superblock magic:

for x in /dev/sd[abde]1 ; do echo $x ; \
dd if=$x bs=1M count=256 2>/dev/null | \
hexdump -C |grep '30  .\+  53 ef 0' ; done

Hopefully, each device will show one or more superblock candidates whose
offsets may help us decide which roles are which, and at what data offset.

Phil

  reply	other threads:[~2012-11-19 17:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 18:06 Issue with Raid 10 super block failing Drew Reusser
2012-11-17 23:48 ` Phil Turmel
2012-11-18  3:07   ` Drew Reusser
2012-11-18 14:35     ` Phil Turmel
2012-11-18 16:49       ` Drew Reusser
2012-11-18 17:01         ` Phil Turmel
2012-11-18 17:39           ` Drew Reusser
2012-11-18 18:56             ` Phil Turmel
2012-11-18 19:10               ` Drew Reusser
2012-11-19 13:39                 ` Phil Turmel
2012-11-19 16:44                   ` Drew Reusser
2012-11-19 17:12                     ` Phil Turmel [this message]
2012-11-19 20:41                   ` Drew Reusser
2012-11-19 20:47                     ` Phil Turmel

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=50AA6878.1010002@turmel.org \
    --to=philip@turmel.org \
    --cc=dreusser@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.