linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Candler <b.candler@pobox.com>
To: peter@steinhoff.se
Cc: linux-raid@vger.kernel.org
Subject: Re: Problem diagnosing rebuilding raid5 array
Date: Tue, 15 Oct 2013 14:15:18 +0100	[thread overview]
Message-ID: <525D3FE6.7000407@pobox.com> (raw)
In-Reply-To: <20131015084037.10297bo5940ryklk@phobos.elinuxservers.com>

On 15/10/2013 13:40, peter@steinhoff.se wrote:
>
> Anyway, I'm still at loss what to do and what my next step should be...
>
Well, I'm not the world's authority on this, but from what I can see:

$ egrep '^/|UUID|State :|Events :' ert
/dev/sdd:
             UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
            State : clean
           Events : 1288444
/dev/sde:
             UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
            State : clean
           Events : 1288428
/dev/sdf:
             UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
            State : clean
           Events : 1288444
/dev/sdg:
             UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
            State : clean
           Events : 1288444
/dev/sdh:
             UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
            State : clean
           Events : 1288444

So it looks like sde is stale with respect to the other drives (which 
have a larger event count) and therefore is not being used. But sdh is a 
spare (you said it was rebuilding onto this?), so you have N-2 usable 
data disks, which is not enough to start RAID5.

DON'T do the following before someone else on the list confirms this is 
the right course of action, but you can force the array to assemble using:

mdadm --stop /dev/mdXXX
mdadm --assemble --force --run /dev/mdXXX /dev/sd{d,e,f,g,h}

But since the state of sde is old, I think there is a real risk that 
data corruption has taken place. Do an fsck before mounting. It may be 
better to restore from a trusted backup.

Regards,

Brian.


  parent reply	other threads:[~2013-10-15 13:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14 16:31 Problem diagnosing rebuilding raid5 array peter
2013-10-14 17:28 ` Brian Candler
2013-10-15 12:40   ` peter
2013-10-15 12:50     ` Brian Candler
2013-10-15 14:20       ` peter
2013-10-15 13:15     ` Brian Candler [this message]
2013-10-15 14:14       ` peter
2013-10-15 14:20         ` Brian Candler
2013-10-15 15:01           ` peter
2013-10-15 15:04             ` Brian Candler
2013-10-16  6:11 ` NeilBrown
2013-10-17  2:27   ` peter
2013-10-17  2:39     ` NeilBrown
2013-10-18  2:41       ` peter

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=525D3FE6.7000407@pobox.com \
    --to=b.candler@pobox.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=peter@steinhoff.se \
    /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).