Re: Array member "role numbers" in /proc/mdstat
From: Phil Turmel <hidden>
Date: 2013-09-23 17:50:00
From: Phil Turmel <hidden>
Date: 2013-09-23 17:50:00
On 09/23/2013 12:39 PM, Ian Pilcher wrote:
On 09/23/2013 11:36 AM, Benjamin ESTRABAUD wrote:quoted
Are you referring to the particular mention"Any device with "n" or higher are spare disks. 0,1,..,n-1 are for the working array." in the Mdstat wiki page?I was really thinking of the sentence before that, which states: The raid role numbers [#] following each device indicate its role, or function, within the raid set.
The wiki is wrong. The number in brackets is the device's index into the *table* of roles in the superblock. In a new array, table entries are allocated sequentially, which makes it *look* like the role numbers. Phil