Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: bobzer <bobzer@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: problem with raid after reboot
Date: Mon, 10 Dec 2012 10:04:53 -0500	[thread overview]
Message-ID: <50C5FA15.9000600@turmel.org> (raw)
In-Reply-To: <CADzS=aq_83Nr55m+LFywx6LqHdwwkfzfBM+tPv8gcf6ono_j8g@mail.gmail.com>

Hi Mathieu,

[Top-posting repaired.  Please don't.]

[List address restored.  Please use reply-to-all on kernel.org lists.]

On 12/10/2012 09:14 AM, bobzer wrote:
>> Hi Mathieu,

[trim /]

>> It looks like the superblocks didn't get updated together due to your
>> improper reboot.  (Event counts don't match.)
>>
>> I suggest you stop the array and reassemble with "--force", like so:
>>
>> mdadm --stop /dev/md0
>> mdadm --assemble --force /dev/md0 /dev/sd[bcd]1
>>
>> The "--force" option will instruct mdadm to ignore the event count
>> mismatch.
>>
>> You probably want to investigate why your array wasn't properly stopped
>> during shutdown.

> Hi Phil,
> thanks to help me.
>
> what do you think of the array state ?it' s look strange no ?
>
>    Device Role : Active device 0
>    Array State : A.. ('A' == active, '.' == missing)
>
>    Device Role : Active device 1
>    Array State : AAA ('A' == active, '.' == missing)
>
>    Device Role : Active device 2
>    Array State : AAA ('A' == active, '.' == missing)
>
> do you think it's a problem ?

It's a side-effect of the improper shutdown.  Two devices' superblocks
weren't saved properly, and still show everything OK.  But their event
counts are older than the one device that shows a problem.  So mdadm
sees that one device as most up-to-date, and cannot start the raid5 from
just that one.

Please try the commands I recommended.

Phil

      parent reply	other threads:[~2012-12-10 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10  4:13 problem with raid after reboot bobzer
2012-12-10 13:58 ` Phil Turmel
     [not found]   ` <CADzS=aq_83Nr55m+LFywx6LqHdwwkfzfBM+tPv8gcf6ono_j8g@mail.gmail.com>
2012-12-10 15:04     ` Phil Turmel [this message]

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=50C5FA15.9000600@turmel.org \
    --to=philip@turmel.org \
    --cc=bobzer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox