Re: Linux raid wiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/23/2016 02:43 PM, Wols Lists wrote:
> Thanks.
> 
> My understanding of role numbers is that they are the order of the disks
> in which stripes are written, so role 0 has the first stripe, role 1 the
> second, etc etc.

Yes, this is correct.  But the numbers in brackets in mdstat aren't the
role number, but the slot number in the superblock member list.  Which
only matches role number for the active devices at first creation.
Spares occupy additional slots, and keep their slot number for their
life in the array, including after assuming an active role.

> This is *normally* irrelevant, but should the array ever get trashed,
> the disks need to be listed *in* *that* *order* in a new --create statement.

You must use the "this device" role numbers in an mdadm -E report to be
sure, or use lsdrv.

mdstat is only useful for human review of array status.

Phil

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux