All of lore.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: likewhoa <likewhoa@weboperative.com>
Cc: "linux-raid@vger.kernel.org >> \"linux-raid@vger.kernel.org\""
	<linux-raid@vger.kernel.org>
Subject: Re: raid10 issues after reorder of boot drives.
Date: Sat, 28 Apr 2012 13:23:31 +1000	[thread overview]
Message-ID: <20120428132331.01396da6@notabene.brown> (raw)
In-Reply-To: <4F9B5D24.1050708@weboperative.com>

[-- Attachment #1: Type: text/plain, Size: 2835 bytes --]

On Fri, 27 Apr 2012 22:59:48 -0400 likewhoa <likewhoa@weboperative.com> wrote:

> On 04/27/2012 10:55 PM, NeilBrown wrote:
> > On Fri, 27 Apr 2012 22:37:29 -0400 likewhoa <likewhoa@weboperative.com> wrote:
> >
> >> On 04/27/2012 08:35 PM, likewhoa wrote:
> >>> I am not sure how to proceed now with the output that shows possible
> >>> pairs as it won't allow me to setup all 8 devices on the array but only
> >>> 4. Should I run the array creation with -x4 and set the available spare
> >>> devicesor or just create the array as I can remember which was one pair
> >>> from each controller. i.e /dev/sda3 /dev/sde3 ...?
> >>> --
> >>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> >>> the body of a message to majordomo@vger.kernel.org
> >>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >> ok I was able to recreate the array with correct order which I took from
> >> my /dev/md0's --details output and was able to decrypt the luks mapping
> >> but XFS didn't open and xfs_repair is currently doing the matrix. I will
> >> keep this posted with updates.
> > I hope the order really is correct.... I wouldn't expect xfs to find problems
> > if it was...
> >
> >> Thanks again Neil.
> >> WRT 3.3.3 should I just go back to 3.3.2 which seemed to run fine and
> >> wait until there is a release of 3.3.3 that has fix?
> > 3.3.4 has the fix and was just released.
> > 3.3.1, 3.3.2 and 3.3.3 all have the bug.  It only triggers on shutdown and
> > even then only occasionally.
> > So I recommend 3.3.4.
> >
> > NeilBrown
> The reason I believe it was correct was that 'cryptsetup luksOpen
> /dev/md1 md1' worked. I really do hope that it was correct too because
> after opening the luks mapping I assume there is no going back.

Opening the luks mapping could just mean that the first few blocks are
correct.  So the first disk is right but others might not be.

There is going backup unless something has been written to the array.  Once
that happens anything could be corrupted.  So if the xfs check you are  doing
is read-only you could still have room to move.

With a far=2 array, each first half of each device is mirrored on the second
half.  So you can probably recover the ordering by finding which pairs match.

The "Used Dev Size" is 902992896 sectors.  Half of that is 451496448
or 231166181376 bytes.

So to check if two devices are adjacent in the mapping you can try:

 cmp --ignore-initial=0:231166181376 --bytes=231166181376 first-dev second-dev

You could possibly use a smaller --bytes= number, at least on the first
attempt.
You a similar 'for' loop to before an use this command and it might tell you
which pairs of devices are consecutive.  From that you should be able to get
the full order.

NeilBrown


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2012-04-28  3:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27 20:04 raid10 issues after reorder of boot drives likewhoa
2012-04-27 21:51 ` likewhoa
2012-04-27 22:05   ` NeilBrown
2012-04-27 23:29     ` likewhoa
2012-04-28  0:24       ` NeilBrown
2012-04-28  0:35       ` likewhoa
2012-04-28  2:37         ` likewhoa
2012-04-28  2:55           ` NeilBrown
2012-04-28  2:59             ` likewhoa
2012-04-28  3:23               ` NeilBrown [this message]
2012-04-28  3:51                 ` likewhoa
2012-04-28 15:23                   ` likewhoa
2012-04-28 21:28                     ` NeilBrown
2012-04-29 14:23                       ` likewhoa
2012-04-27 22:03 ` NeilBrown
2012-04-27 23:26   ` likewhoa
2012-05-01  9:45   ` Brian Candler
2012-05-01 10:18     ` NeilBrown
2012-05-01 11:15       ` Brian Candler
2012-05-02  2:37       ` linbloke

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=20120428132331.01396da6@notabene.brown \
    --to=neilb@suse.de \
    --cc=likewhoa@weboperative.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.