Linux RAID subsystem development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: "RANSOM, Tony" <tony.ransom@baesystems.com>
Cc: "'linux-raid@vger.kernel.org'" <linux-raid@vger.kernel.org>
Subject: Re: Problem rebuild raid 1 replacement disk
Date: Mon, 20 Feb 2012 20:11:59 +1100	[thread overview]
Message-ID: <20120220201159.6cd1633d@notabene.brown> (raw)
In-Reply-To: <807765805CA0DF48898D4C016E982BFC065A6D9BF5@MWLSVEXM002.au.baesystems.com>

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

On Mon, 20 Feb 2012 18:58:22 +1030 "RANSOM, Tony"
<tony.ransom@baesystems.com> wrote:

> Neil,
> 
> Thanks for the reply:
> 
> 
> >What is the output of each of
> >  mdadm -E /dev/sdb
> 
> root@server2:~# mdadm -E /dev/sdb
> /dev/sdb:
>           Magic : a92b4efc
>         Version : 00.90.00
>            UUID : 15e5ad84:82b4dd79:6719eb14:a41dd719
>   Creation Time : Mon Mar 28 23:52:08 2011
>      Raid Level : raid1
>   Used Dev Size : 1953027008 (1862.55 GiB 1999.90 GB)
>      Array Size : 1953027008 (1862.55 GiB 1999.90 GB)
>    Raid Devices : 2
>   Total Devices : 2
> Preferred Minor : 1
> 
>     Update Time : Sun Feb 19 15:44:55 2012
>           State : active
>  Active Devices : 1
> Working Devices : 2
>  Failed Devices : 0
>   Spare Devices : 1
>        Checksum : 5e4b8288 - correct
>          Events : 1314601
> 
>       Number   Major   Minor   RaidDevice State
> this     2       8       16        2      spare   /dev/sdb
> 
>    0     0       0        0        0      removed
>    1     1       8        3        1      active sync   /dev/sda3
>    2     2       8       16        2      spare   /dev/sdb
> 
> 
> >  mdadm -E /dev/sdb3
> 
> root@server2:~# mdadm -E /dev/sdb3
> /dev/sdb3:
>           Magic : a92b4efc
>         Version : 00.90.00
>            UUID : 15e5ad84:82b4dd79:6719eb14:a41dd719
>   Creation Time : Mon Mar 28 23:52:08 2011
>      Raid Level : raid1
>   Used Dev Size : 1953027008 (1862.55 GiB 1999.90 GB)
>      Array Size : 1953027008 (1862.55 GiB 1999.90 GB)
>    Raid Devices : 2
>   Total Devices : 2
> Preferred Minor : 1
> 
>     Update Time : Mon Feb 20 18:38:09 2012
>           State : clean
>  Active Devices : 2
> Working Devices : 2
>  Failed Devices : 0
>   Spare Devices : 0
>        Checksum : 5e621af4 - correct
>          Events : 1349308
> 
> 
>       Number   Major   Minor   RaidDevice State
> this     0       8       19        0      active sync   /dev/sdb3
> 
>    0     0       8       19        0      active sync   /dev/sdb3
>    1     1       8        3        1      active sync   /dev/sda3
> 
> 
> 
> 
> >What version of mdadm do you have?
> 
> root@server2:~# mdadm -V
> mdadm - v2.6.7.1 - 15th October 2008
> 
> >What is the starting sector of /dev/sdb3?  In particular, is it a multiple of
> 64K?
> 
> 589824
> 
> Doesn't appear to be. Each sector (according to gdisk is 512 bytes), but this is same as sda.
> 
> 
> Odd that the system thinks sdb is a spare?
> 
> Can it be corrected?

Yes.
Somehow both sdb and sdb3 have a superblock for the same array.  Must have
been a typo somewhere I suspect.
You should remove the one you don't want:

  mdadm --zero-superblock /dev/sdb

then it should all work nicely again.

(if the offset is a multiple of 64K you can get the both having exactly the
same superblock (same location on disk).  Newer versions of mdadm try to help
you catch that case, older versions don't.  But that doesn't seem to be an
issue for you).

NeilBrown

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

  reply	other threads:[~2012-02-20  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  4:11 Problem rebuild raid 1 replacement disk RANSOM, Tony
2012-02-20  5:29 ` NeilBrown
2012-02-20  8:28   ` RANSOM, Tony
2012-02-20  9:11     ` NeilBrown [this message]
2012-02-20  9:15       ` RANSOM, Tony
2012-02-20 10:51         ` NeilBrown
2012-02-20 12:18           ` RANSOM, Tony
2012-02-21 10:09           ` RANSOM, Tony

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=20120220201159.6cd1633d@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=tony.ransom@baesystems.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