mdadm - sort drive order

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


I have a raid 6 array where the drive order is driving me crazy:

Personalities : [raid6] [raid5] [raid4] [raid1]
md0 : active raid1 sdf1[2](S) sde1[1] sdd1[0] sdc1[3](S) sdb1[4](S) 
       1052160 blocks [2/2] [UU]

md1 : active raid6 sdf2[5](S) sde2[4] sdd2[3] sdc2[2] sdb2[1] sda2[0]
       3156480 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

md2 : active raid6 sdf3[5](S) sde3[4] sdd3[3] sdc3[2] sdb3[1] sda3[0]
       921608448 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

md3 : active raid6 sdf5[5](S) sde5[4] sdd5[3] sdc5[2] sdb5[0] sda5[1]
       614389248 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

md5 : active raid6 sdf7[5](S) sde7[4] sdd7[3] sdc7[2] sdb7[0] sda7[1]
       307194624 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

md6 : active raid6 sdf8[5](S) sde8[4] sdd8[3] sdc8[2] sdb8[0] sda8[1]
       466382592 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

md4 : active raid6 sdf6[5](S) sde6[4] sdd6[3] sdc6[2] sdb6[0] sda6[1]
       614389248 blocks level 6, 256k chunk, algorithm 2 [5/5] [UUUUU]

unused devices: <none>

Obviously, md0 is raid 1 with multiple failover devices, md1-6 are the 
raid 6 in question.  Note how md1-2 designate sdb2-3[1] and sda2-3[0] 
while md3-6 designate sdb*[0] and sda*[1].  While I presume I can 
fail/remove/add the partitions in question by hand to get them in order 
(IE: sda*[0] and sdb*[1]), syncing several TB of data is a long process. 
  Is there an easier way to change this order or am I being overly 
concerned with a trivial matter?  If needed, mdadm.conf was created by 
anaconda as seen here:

# mdadm.conf written out by anaconda
DEVICE partitions
ARRAY /dev/md4 level=raid6 num-devices=6 
ARRAY /dev/md6 level=raid6 num-devices=6 
ARRAY /dev/md5 level=raid6 num-devices=6 
ARRAY /dev/md3 level=raid6 num-devices=6 
ARRAY /dev/md2 level=raid6 num-devices=6 
ARRAY /dev/md0 level=raid1 num-devices=6 
ARRAY /dev/md1 level=raid6 num-devices=6 

I presume I can just hit mdadm.conf and specify the arrays like:

ARRAY /dev/md2 level=raid6 num-devices=6 spares=1 

but does mdadm respect the order in which devices are listed?  I am also 
not certain if I should list the spare in that array.  Thanks for any 

users mailing list
[email protected]
To unsubscribe or change subscription options:

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux