Thread (3 messages) 3 messages, 2 authors, 2010-06-11

RE: How does kernel decide that a drive is "spare"?

From: Leslie Rhorer <hidden>
Date: 2010-06-11 06:05:18

-----Original Message-----
From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
owner@vger.kernel.org] On Behalf Of Dave W
Sent: Friday, June 11, 2010 12:19 AM
To: linux-raid@vger.kernel.org
Subject: How does kernel decide that a drive is "spare"?

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
	Any failed drives are moved to spare status.  Issue the `mdadm -D
/dev/mdX` command, and it will probably show 3 failed drives.
Why are three drives assumed to be spares?
	It's not assumed.  If was almost surely forced by md / mdadm.
Is there a way for me to recover this array?
	Probably.  No doubt at least one of the drives probably has enough
info on hand to be able to recover most if not all of the information.  You
should be able to force assemble (-A -f) the array using at least 4 drives,
or perhaps all six.  Once assembled, you should be able to fsck the file
system and then mount it and save any critical data off to a backup.  I'd
find out why the drives are being kicked from the array before I tried bring
the array back into production, though, and replace them, or whatever
component is causing them to be kicked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help