1

Controlling mdadm faulty disk rebuild order in RAID 10 array

view story
linux-howto

http://serverfault.com – I have a Linux mdadm RAID 10 array comprising of 6 (SATA) disks configured with n2 copies. While pulling out one disk, another one in another mirror pair failed. Leaving me with: $ cat /proc/mdstat md2 : active raid10 sdb1[1] sdd1[5] sdc1[3] sdf1[2] 2929412352 blocks 64K chunks 2 near-copies [6/4] [_UUU_U] I wanted to replace the 5th disk and rebuilt the partition table with: sfdisk -d /dev/sdf | sfdisk /dev/sde However, when I add the new disk with mdadm -a /dev/md1 /dev/sde1, mdadm starts to rebuild RaidDevice 0 $ mdadm -D /dev/md2 ... Number Major Minor RaidDevice State 6 (HowTos)