linux-raid.vger.kernel.org archive mirror
 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>
Subject: Re: raid10 issues after reorder of boot drives.
Date: Sat, 28 Apr 2012 10:24:37 +1000	[thread overview]
Message-ID: <20120428102437.754d82c3@notabene.brown> (raw)
In-Reply-To: <4F9B2BE1.5080207@weboperative.com>

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

On Fri, 27 Apr 2012 19:29:37 -0400 likewhoa <likewhoa@weboperative.com> wrote:

> On 04/27/2012 06:05 PM, NeilBrown wrote:
> > On Fri, 27 Apr 2012 17:51:54 -0400 likewhoa <likewhoa@weboperative.com> wrote:
> >
> >
> >> adding more verbose info gives me:
> >>
> >>> -> mdadm -A --verbose /dev/md1
> >> mdadm: looking for devices for /dev/md1
> >> mdadm: /dev/dm-8 is not one of
> >> /dev/sdg3,/dev/sdf3,/dev/sde3,/dev/sdd3,/dev/sdb3,/dev/sda3,/dev/sdc3
> > You seem to have an explicit list of devices in /etc/mdadm.conf
> > This is not a good idea for 'sd' devices as they can change their names,
> > which can mean they aren't on the list any more.  You should remove that
> > once you get this all sorted out.
> >
> > NeilBrown
> >
> >
> @Neil sorry but I didn't get to reply to all on my last 2 emails, so
> here is goes again so it's archived.
> 
> /dev/sdh3:
>           Magic : a92b4efc
>         Version : 1.0
>     Feature Map : 0x0
>      Array UUID : 828ed03d:0c28afda:4a636e88:7b29ec9f
>            Name : Darkside:1  (local to host Darkside)
>   Creation Time : Sun Aug 15 21:12:34 2010
>      Raid Level : raid10
>    Raid Devices : 8
> 
>  Avail Dev Size : 902993648 (430.58 GiB 462.33 GB)
>      Array Size : 3611971584 (1722.32 GiB 1849.33 GB)
>   Used Dev Size : 902992896 (430.58 GiB 462.33 GB)
>    Super Offset : 902993904 sectors
>           State : clean
>     Device UUID : 00565578:e2eaaba3:f1eae17c:f474ee8d
> 
>     Update Time : Wed Apr 25 17:22:58 2012
>        Checksum : 1e7c3692 - correct
>          Events : 82942
> 
>          Layout : far=2
>      Chunk Size : 256K
> 
>    Device Role : Active device 0
>    Array State : AAAAAAAA ('A' == active, '.' == missing)
>  
> 
> The only drive that didn't get affected is far=3. Any suggestions? I
> have the drives on separate controllers and when I created the array I
> set up the order as /dev/sda3 /dev/sde3 /dev/sdb3 /dev/sdf3 and so on.
> so I would assume the same order would be used, also note that I ran
> luksFormat on /dev/md1 then ran pvcreate /dev/md1 and so on. Will I have
> issues with luksOpen after recreating the array? I removed the /dev/sdh1
> drive so now the output is like:

As the array is "far=2" you will need to create with --layout=f2

That means you cannot easily detect pairs by comparing the first few
kilobytes.

However if you are confident that you know the order of the drives (because
of they arrangement of controllers) then maybe you can just create the array.
Make sure you set --chunk=256


Yes, you will need to 'luksOpen' after recreating the array.  That will
quite possibly fail if you have the order wrong.
Then you would need to "pvscan" or whatever one does to find LVM components.
If both those succeed, then try "fsck -n".
If they fail, try a different ordering.

NeilBrown

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

  reply	other threads:[~2012-04-28  0:24 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 [this message]
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
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=20120428102437.754d82c3@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).