linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do I determine which drive should be in which slot?
@ 2010-06-26  5:32 Dave W
  2010-06-29  6:26 ` Dave W
  0 siblings, 1 reply; 5+ messages in thread
From: Dave W @ 2010-06-26  5:32 UTC (permalink / raw)
  To: linux-raid

After making some changes in the bios to my boot order, my 5-drive RAID6
stopped assembling.  Three of the five known-good drives suddenly stopped
getting added to the right slots.  There are no disk errors in the logs and
I can read from the drives with no problems.

# mdadm --stop /dev/md0
mdadm: stopped /dev/md0
# mdadm -v -Af /dev/md0 /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.
# 

Reading the thread at http://thread.gmane.org/gmane.linux.raid/17774, I think
that a command like this:

   mdadm -C /dev/md0 -l6 -n5 /dev/sd[bcdef]1

would tell mdadm to rewrite the superblock with the disks in the right slots.
Does the order on the command line determine the slot allocations?  How can I
tell that my disks will get put in the right slots?  Is it safe to just try
this order?

Thanks,
Dave


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-30  1:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-26  5:32 How do I determine which drive should be in which slot? Dave W
2010-06-29  6:26 ` Dave W
2010-06-29  7:02   ` Neil Brown
2010-06-29 16:00     ` Dave W
2010-06-30  1:02       ` Neil Brown

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).