All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave W <dave+gmane@wuertele.com>
To: linux-raid@vger.kernel.org
Subject: How does kernel decide that a drive is "spare"?
Date: Fri, 11 Jun 2010 05:18:48 +0000 (UTC)	[thread overview]
Message-ID: <loom.20100611T070945-23@post.gmane.org> (raw)

I have a fileserver with a RAID6 on five 2TB drives.  It appeared to be working
fine before I rebooted it, but now it is complaining

mdadm: /dev/md0 assembled from 2 drives and 3 spares - not enough to start the \
array.

That's strange... I never configured any spare drives.  There should be five
active drives in this array.  I checked /proc/mdstat:

[root@fileserver ~]# cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] 
md0 : inactive sdd1[2](S) sdb1[7](S) sdc1[6](S) sdf1[5](S) sde1[3](S)
      9767559680 blocks

[root@fileserver ~]# mdadm -A /dev/md0 -fv /dev/sd[bcdef]1
mdadm: looking for devices for /dev/md0
mdadm: /dev/sdb1 is identified as a member of /dev/md0, slot 7.
mdadm: /dev/sdc1 is identified as a member of /dev/md0, slot 6.
mdadm: /dev/sdd1 is identified as a member of /dev/md0, slot 2.
mdadm: /dev/sde1 is identified as a member of /dev/md0, slot 3.
mdadm: /dev/sdf1 is identified as a member of /dev/md0, slot 5.
mdadm: no uptodate device for slot 0 of /dev/md0
mdadm: no uptodate device for slot 1 of /dev/md0
mdadm: added /dev/sde1 to /dev/md0 as 3
mdadm: no uptodate device for slot 4 of /dev/md0
mdadm: added /dev/sdf1 to /dev/md0 as 5
mdadm: added /dev/sdc1 to /dev/md0 as 6
mdadm: added /dev/sdb1 to /dev/md0 as 7
mdadm: added /dev/sdd1 to /dev/md0 as 2
mdadm: /dev/md0 assembled from 2 drives and 3 spares - not enough to start the \
array.

Why are three drives assumed to be spares?  Is there a way for me to recover
this array?

Thanks,
Dave


             reply	other threads:[~2010-06-11  5:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-11  5:18 Dave W [this message]
2010-06-11  6:05 ` How does kernel decide that a drive is "spare"? Leslie Rhorer
2010-06-11  6:51   ` How does kernel decide that a drive is &quot;spare&quot;? Dave W

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=loom.20100611T070945-23@post.gmane.org \
    --to=dave+gmane@wuertele.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.