Long story short - does anyone know of a way to indicate which drives are paired with one another in an MD RAID10?
I'm looking to upgrade my array by way of replacing each drive with a larger one, and it occurred to me I've never looked for a way to see which drive is paired with which; I'll be able to see this when I replace and resync the drives (as new drive and source drive will both have activity lights on constantly), but it'd be nice to see if there's a way to ascertain the disk topology a) beforehand and b) without having to physically look at the activity lights. Ideally I'd like to colour-code my drive sleds according to this.
From mdstat:
mdadm --detail /dev/md10 shows sync-set information, but only shows two different sets as opposed to the three I'd expect, so seemingly these don't map to the components of each stripe, but rather to either the left or right hand drives:
Thus it seems that the native mdadm tools don't actually report this information.
Short of actually comparing the blocks, does anyone know of any tricks to help ascertain which two drives make up each of the three stripes?
I'm looking to upgrade my array by way of replacing each drive with a larger one, and it occurred to me I've never looked for a way to see which drive is paired with which; I'll be able to see this when I replace and resync the drives (as new drive and source drive will both have activity lights on constantly), but it'd be nice to see if there's a way to ascertain the disk topology a) beforehand and b) without having to physically look at the activity lights. Ideally I'd like to colour-code my drive sleds according to this.
From mdstat:
Code:
md10 : active raid10 sda1[9] sdg1[7] sdf1[10] sdd1[11] sdb1[6] sde1[8]
17581171200 blocks super 1.2 512K chunks 2 near-copies [6/6] [UUUUUU]
bitmap: 0/66 pages [0KB], 131072KB chunk
Code:
...
Number Major Minor RaidDevice State
11 8 49 0 active sync set-A /dev/sdd1
6 8 17 1 active sync set-B /dev/sdb1
10 8 81 2 active sync set-A /dev/sdf1
7 8 97 3 active sync set-B /dev/sdg1
9 8 1 4 active sync set-A /dev/sda1
8 8 65 5 active sync set-B /dev/sde1
Short of actually comparing the blocks, does anyone know of any tricks to help ascertain which two drives make up each of the three stripes?