Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] RAID UUID values - I'm confused
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 215
Location: UK

PostPosted: Sun Dec 24, 2017 11:44 pm    Post subject: [SOLVED] RAID UUID values - I'm confused Reply with quote

I decided to try and add all my RAID arrays to mdadm.conf. On boot up, the auto detect of each raid array takes around 5 seconds. As will become clear, that takes a long time on my machine. Some Google searching suggests that adding an mdadm.conf to the initramfs would speed up assembly, so I thought I'd give it a try.

(I have put the output from "cat /proc/mdstat" at the end of this post because its a bit long.)

So, I did this:
Code:
ian2 ~ # mdadm --examine --scan
ARRAY /dev/md/128  metadata=1.2 UUID=b564d87e:2222c69d:c65d2f0e:b144c4f4 name=ian2:128
ARRAY /dev/md/2  metadata=1.2 UUID=7990857c:0d82ed9d:212b23f6:9752c146 name=ian2:2
ARRAY /dev/md/3  metadata=1.2 UUID=1ddb6efa:2ca7765b:74cd47cd:7fd08a90 name=ian2:3
ARRAY /dev/md/4  metadata=1.2 UUID=c964218b:f9a6dd0a:3f318120:d2175269 name=ian2:4
ARRAY /dev/md/5  metadata=1.2 UUID=733bddc1:bb0920f4:6bc6b5b2:a5577f69 name=ian2:5
ARRAY /dev/md/6  metadata=1.2 UUID=7b73b00c:865d6212:c9950081:2108bf70 name=ian2:6
ARRAY /dev/md/7  metadata=1.2 UUID=1dfa875f:85180a95:94368564:2a52085a name=ian2:7
ARRAY /dev/md/8  metadata=1.2 UUID=a8a347e9:4cf97698:46b86224:183509d4 name=ian2:8
ARRAY /dev/md/128  metadata=1.2 UUID=3b948124:a4a505c1:1e796666:7f2e8b86 name=ian2:128
ARRAY /dev/md/129  metadata=1.2 UUID=b1c6528f:5aa1f507:f3fc3018:210763e1 name=ian2:129
ARRAY /dev/md/130  metadata=1.2 UUID=e057febc:bb809af4:67c880a3:8cef4487 name=ian2:130
ARRAY /dev/md/131  metadata=1.2 UUID=2f11fa81:cedbfa5e:bc3264b9:753966b8 name=ian2:131
ARRAY /dev/md/132  metadata=1.2 UUID=03d0a149:5bd13ed5:dc3a7dfd:87a4feb4 name=ian2:132
ARRAY /dev/md/133  metadata=1.2 UUID=86a57cf1:fa89ef7b:33bcb6a4:17b96b50 name=ian2:133
ARRAY /dev/md/134  metadata=1.2 UUID=fa0f9f68:479b88bd:0b9a7364:607240d4 name=ian2:134
ARRAY /dev/md/135  metadata=1.2 UUID=42d1b079:f8a5ab57:b3793250:62ab2f54 name=ian2:135
ARRAY /dev/md95 UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7
ARRAY /dev/md/5  metadata=1.2 UUID=4257a17d:49453f6b:b49bb039:621bb5ea name=ian2:5
ARRAY /dev/md/6  metadata=1.2 UUID=4e0ad9ae:73505493:3443d8cd:b372cea1 name=ian2:6
ARRAY /dev/md/7  metadata=1.2 UUID=14ca5b75:4df073b3:571593d5:19841fc4 name=ian2:7
ARRAY /dev/md/8  metadata=1.2 UUID=cbfc6b70:ee8e5a63:6fabb693:2a347d24 name=ian2:8
ARRAY /dev/md/9  metadata=1.2 UUID=ea2f44f0:bb11901b:67ea5462:a96de17a name=ian2:9
ARRAY /dev/md/10  metadata=1.2 UUID=f49d3272:19133dd3:df7a1544:ed34dea4 name=ian2:10
ARRAY /dev/md/11  metadata=1.2 UUID=bb2d7eaa:b2e6036a:fb0b45a1:2f33552a name=ian2:11
ARRAY /dev/md/12  metadata=1.2 UUID=dcd353cb:bb079b99:6b408f88:1b9a8075 name=ian2:12
ARRAY /dev/md/13  metadata=1.2 UUID=1f1cffe4:057a65cf:6873a674:821b3200 name=ian2:13
ARRAY /dev/md/14  metadata=1.2 UUID=fc294435:2c459490:cb203a42:66b81e2a name=ian2:14
ARRAY /dev/md/15  metadata=1.2 UUID=09c3a073:8cb62ae3:5257bca2:31152207 name=ian2:15
ARRAY /dev/md/16  metadata=1.2 UUID=de73032a:33b51a4b:5021a4e4:7d49eaf1 name=ian2:16
ARRAY /dev/md/128  metadata=1.2 UUID=699a2575:61fbbc90:55c2df58:d371bf00 name=ian2:128
ARRAY /dev/md/129  metadata=1.2 UUID=234f820f:b29f08eb:38c67cb5:69e6d938 name=ian2:129
ARRAY /dev/md/130  metadata=1.2 UUID=b0ef7942:47d6e5bf:a913027b:bcea2d84 name=ian2:130
ARRAY /dev/md/131  metadata=1.2 UUID=7725e8ae:a7f0140b:14e5320c:c22995e2 name=ian2:131
ian2 ~ #


This puzzled me, since the RAID arrays are known as /dev/md* in /proc/mdstat. so I thus did this:
Code:
ian2 ~ # blkid /dev/md* 
/dev/md100: UUID="FmfGNa-nIpP-VmJ0-VkWG-PdmE-X19f-FAxYsb" TYPE="LVM2_member"
/dev/md101: UUID="yzoJk6-NPiV-TblO-kYp3-Oaog-PpQD-AsOpGn" TYPE="LVM2_member"
/dev/md102: UUID="Ch6tbR-AfwI-XKaG-Rvzy-nrpR-kSat-QGGIVs" TYPE="LVM2_member"
/dev/md103: UUID="xKjF7r-8T6g-HL9t-DSKY-jwgA-DLhx-iKwsk5" TYPE="LVM2_member"
/dev/md104: UUID="lhRan7-HFlS-VrZA-wIR7-LX3p-Hylr-EM0BEH" TYPE="LVM2_member"
/dev/md105: UUID="RCpdNF-WZZI-5C7g-DfE8-tber-PM96-RwUteL" TYPE="LVM2_member"
/dev/md106: UUID="o0Ia09-uW24-os8n-EB2L-eoFt-Uk7u-sjGvia" TYPE="LVM2_member"
/dev/md107: UUID="wRqSd4-6p1b-q00d-59EL-voAI-SKfy-7LfjLS" TYPE="LVM2_member"
/dev/md108: UUID="K6hNxY-pYmC-ZlRb-Pu7t-pbCY-Dxu3-NHN1F5" TYPE="LVM2_member"
/dev/md109: UUID="FuxC35-S0MD-cP6K-nIem-L0Lq-CTY6-VLQAeo" TYPE="LVM2_member"
/dev/md110: UUID="KZlnny-rQKO-WK1m-OXua-wEdW-hQeq-n75Acc" TYPE="LVM2_member"
/dev/md111: UUID="dL5WgX-V1ck-eQdC-VIDz-WD7D-QAKZ-6ofvMt" TYPE="LVM2_member"
/dev/md112: UUID="2ZOyjT-3FvW-kkaX-xujK-9Bjw-WjzW-oeoQhz" TYPE="LVM2_member"
/dev/md113: UUID="uO1q3t-M0Hy-Jg9X-09YG-4aa4-3hvD-VZidUD" TYPE="LVM2_member"
/dev/md114: UUID="blqbSa-lSV4-UCNa-KwXQ-DiHw-1g0j-smW5Kd" TYPE="LVM2_member"
/dev/md115: UUID="X1ypsm-7rGM-y0xl-03Zy-jrMI-Uam2-Auy40N" TYPE="LVM2_member"
/dev/md116: UUID="bTzd3e-n53j-ENv7-bLkG-mLJs-dCoy-0bbIig" TYPE="LVM2_member"
/dev/md117: UUID="143Kua-gWKD-hqRM-7JMV-PePW-R2YM-EiWyCv" TYPE="LVM2_member"
/dev/md118: UUID="ItjuWt-Ijoa-MFLt-NfhM-ii1E-kqOE-0LNy52" TYPE="LVM2_member"
/dev/md119: UUID="22ZkMO-M8On-0mT1-H4OK-L7t9-s9Ms-5vkRlj" TYPE="LVM2_member"
/dev/md120: UUID="kssfJc-zX25-LLFC-nFhJ-UykH-eTd4-eChs6P" TYPE="LVM2_member"
/dev/md121: UUID="7WJuo2-OzCf-wH5v-V7wy-X80i-EHTK-aPt2Kr" TYPE="LVM2_member"
/dev/md122: UUID="gJ83ff-WqIY-UxHZ-ZpRt-dGKZ-SwNa-CWTWOx" TYPE="LVM2_member"
/dev/md123: UUID="1xcUUk-zyLS-rILd-2g7Z-ouHO-Abod-X9wdbc" TYPE="LVM2_member"
/dev/md124: UUID="pnZjdi-m7A5-fcjU-52pl-1CW8-yW62-tflkF0" TYPE="LVM2_member"
/dev/md125: UUID="peVr3e-bwCy-pueC-P3Pv-G51p-l2yt-xHX3Ah" TYPE="LVM2_member"
/dev/md126: UUID="XWS4Sb-j0np-tl8c-wSJx-8yHP-slsr-fRX4gt" TYPE="LVM2_member"
/dev/md127: UUID="BMVckR-SHeD-iq9s-46QX-0Nv7-nHo7-OokFVD" TYPE="LVM2_member"
/dev/md95: UUID="1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92" SEC_TYPE="ext2" TYPE="ext3"
/dev/md96: UUID="jpPBpz-3POG-S9Ul-Pq8f-cVL6-lH1z-2cyyW6" TYPE="LVM2_member"
/dev/md97: UUID="5NmeZs-OhA4-CbbG-jkPL-Plga-9ys1-F1i2Rq" TYPE="LVM2_member"
/dev/md98: UUID="61lQqh-9ut5-KvMH-SV3q-3ao2-ZqPd-8dOvmy" TYPE="LVM2_member"
/dev/md99: UUID="XnACXU-zyKb-7a08-t7iu-Dy3Z-6rTR-kGkEce" TYPE="LVM2_member"
ian2 ~ #
..and this:
Code:
ian2 ~ # blkid /dev/md/*
/dev/md/95_0: UUID="1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92" SEC_TYPE="ext2" TYPE="ext3"
/dev/md/ian2:10: UUID="143Kua-gWKD-hqRM-7JMV-PePW-R2YM-EiWyCv" TYPE="LVM2_member"
/dev/md/ian2:11: UUID="ItjuWt-Ijoa-MFLt-NfhM-ii1E-kqOE-0LNy52" TYPE="LVM2_member"
/dev/md/ian2:12: UUID="22ZkMO-M8On-0mT1-H4OK-L7t9-s9Ms-5vkRlj" TYPE="LVM2_member"
/dev/md/ian2:128: UUID="pnZjdi-m7A5-fcjU-52pl-1CW8-yW62-tflkF0" TYPE="LVM2_member"
/dev/md/ian2:128_0: UUID="lhRan7-HFlS-VrZA-wIR7-LX3p-Hylr-EM0BEH" TYPE="LVM2_member"
/dev/md/ian2:128_1: UUID="jpPBpz-3POG-S9Ul-Pq8f-cVL6-lH1z-2cyyW6" TYPE="LVM2_member"
/dev/md/ian2:129: UUID="peVr3e-bwCy-pueC-P3Pv-G51p-l2yt-xHX3Ah" TYPE="LVM2_member"
/dev/md/ian2:129_0: UUID="RCpdNF-WZZI-5C7g-DfE8-tber-PM96-RwUteL" TYPE="LVM2_member"
/dev/md/ian2:13: UUID="kssfJc-zX25-LLFC-nFhJ-UykH-eTd4-eChs6P" TYPE="LVM2_member"
/dev/md/ian2:130: UUID="XWS4Sb-j0np-tl8c-wSJx-8yHP-slsr-fRX4gt" TYPE="LVM2_member"
/dev/md/ian2:130_0: UUID="o0Ia09-uW24-os8n-EB2L-eoFt-Uk7u-sjGvia" TYPE="LVM2_member"
/dev/md/ian2:131: UUID="BMVckR-SHeD-iq9s-46QX-0Nv7-nHo7-OokFVD" TYPE="LVM2_member"
/dev/md/ian2:131_0: UUID="wRqSd4-6p1b-q00d-59EL-voAI-SKfy-7LfjLS" TYPE="LVM2_member"
/dev/md/ian2:132: UUID="K6hNxY-pYmC-ZlRb-Pu7t-pbCY-Dxu3-NHN1F5" TYPE="LVM2_member"
/dev/md/ian2:133: UUID="FuxC35-S0MD-cP6K-nIem-L0Lq-CTY6-VLQAeo" TYPE="LVM2_member"
/dev/md/ian2:134: UUID="KZlnny-rQKO-WK1m-OXua-wEdW-hQeq-n75Acc" TYPE="LVM2_member"
/dev/md/ian2:135: UUID="dL5WgX-V1ck-eQdC-VIDz-WD7D-QAKZ-6ofvMt" TYPE="LVM2_member"
/dev/md/ian2:14: UUID="7WJuo2-OzCf-wH5v-V7wy-X80i-EHTK-aPt2Kr" TYPE="LVM2_member"
/dev/md/ian2:15: UUID="gJ83ff-WqIY-UxHZ-ZpRt-dGKZ-SwNa-CWTWOx" TYPE="LVM2_member"
/dev/md/ian2:16: UUID="1xcUUk-zyLS-rILd-2g7Z-ouHO-Abod-X9wdbc" TYPE="LVM2_member"
/dev/md/ian2:2: UUID="5NmeZs-OhA4-CbbG-jkPL-Plga-9ys1-F1i2Rq" TYPE="LVM2_member"
/dev/md/ian2:3: UUID="61lQqh-9ut5-KvMH-SV3q-3ao2-ZqPd-8dOvmy" TYPE="LVM2_member"
/dev/md/ian2:4: UUID="XnACXU-zyKb-7a08-t7iu-Dy3Z-6rTR-kGkEce" TYPE="LVM2_member"
/dev/md/ian2:5: UUID="2ZOyjT-3FvW-kkaX-xujK-9Bjw-WjzW-oeoQhz" TYPE="LVM2_member"
/dev/md/ian2:5_0: UUID="FmfGNa-nIpP-VmJ0-VkWG-PdmE-X19f-FAxYsb" TYPE="LVM2_member"
/dev/md/ian2:6: UUID="uO1q3t-M0Hy-Jg9X-09YG-4aa4-3hvD-VZidUD" TYPE="LVM2_member"
/dev/md/ian2:6_0: UUID="yzoJk6-NPiV-TblO-kYp3-Oaog-PpQD-AsOpGn" TYPE="LVM2_member"
/dev/md/ian2:7: UUID="blqbSa-lSV4-UCNa-KwXQ-DiHw-1g0j-smW5Kd" TYPE="LVM2_member"
/dev/md/ian2:7_0: UUID="Ch6tbR-AfwI-XKaG-Rvzy-nrpR-kSat-QGGIVs" TYPE="LVM2_member"
/dev/md/ian2:8: UUID="X1ypsm-7rGM-y0xl-03Zy-jrMI-Uam2-Auy40N" TYPE="LVM2_member"
/dev/md/ian2:8_0: UUID="xKjF7r-8T6g-HL9t-DSKY-jwgA-DLhx-iKwsk5" TYPE="LVM2_member"
/dev/md/ian2:9: UUID="bTzd3e-n53j-ENv7-bLkG-mLJs-dCoy-0bbIig" TYPE="LVM2_member"
ian2 ~ #


All the arrays seem to have an identity crisis, for example:
Code:
ARRAY /dev/md95 UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7
/dev/md95: UUID="1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92" SEC_TYPE="ext2" TYPE="ext3"
/dev/md/95_0: UUID="1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92" SEC_TYPE="ext2" TYPE="ext3"


The output from "mdadm --examine --scan" shows UUIDs that are completely different to blkid

Now, /dev/md95 is my /boot partition. I know that if I try and identify it as UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7 in /etc/fstab, it will not mount. It has to be identified as UUID=1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92 for a mount command to work. For clarity, my /etc/fstab line that works looks like this:
Code:
UUID=1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92   /boot ext2   noauto,noatime   1 2


At this point I realise that I do not know what I am doing :-(. I would really appreciate some help/pointers/advice about what to put into mdadm.conf to try and speed up the initial array assembly. As an example, for my /boot array, should I put this:
Code:
ARRAY /dev/md95 UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7

or
Code:
ARRAY /dev/md95 UUID=1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92

or
Code:
ARRAY dev/md/95_0 UUID=1a0f0e84-09c0-47ce-bdcb-24cbf6c12c92

or something else?

Thanks, and sorry to bring my confusion here.
Ian

As promised, here is
Code:
ian2 ~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md95 : active raid1 sdc1[0] sda1[3] sdd1[2] sdb1[1]
      6101952 blocks [4/4] [UUUU]
     
md96 : active raid1 sda3[0] sdb3[1]
      57393152 blocks super 1.2 [2/2] [UU]
     
md97 : active raid1 sda5[2] sdb5[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md98 : active raid1 sda6[2] sdb6[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md99 : active raid1 sda7[2] sdb7[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md100 : active raid1 sda8[2] sdb8[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md101 : active raid1 sda9[2] sdb9[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md102 : active raid1 sda10[2] sdb10[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md103 : active raid1 sda11[2] sdb11[3]
      47171511 blocks super 1.2 [2/2] [UU]
     
md104 : active raid1 sda12[0] sdb12[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 1/2 pages [4KB], 65536KB chunk

md105 : active raid1 sda13[0] sdb13[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md106 : active raid1 sda14[0] sdb14[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md107 : active raid1 sda15[0] sdb15[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md108 : active raid1 sda16[0] sdb16[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md109 : active raid1 sda17[0] sdb17[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md110 : active raid1 sda18[0] sdb18[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md111 : active raid1 sda19[0] sdb19[2]
      174748672 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md112 : active raid1 sdd5[3] sdc5[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md113 : active raid1 sdd6[3] sdc6[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md114 : active raid1 sdd7[3] sdc7[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md115 : active raid1 sdd8[3] sdc8[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md116 : active raid1 sdd9[3] sdc9[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md117 : active raid1 sdd10[3] sdc10[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md118 : active raid1 sdd11[3] sdc11[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md119 : active raid1 sdd12[3] sdc12[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md120 : active raid1 sdd13[3] sdc13[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md121 : active raid1 sdd14[3] sdc14[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md122 : active raid1 sdd15[3] sdc15[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md123 : active raid1 sdd16[3] sdc16[2]
      47709840 blocks super 1.2 [2/2] [UU]
     
md124 : active raid1 sdc17[0] sdd17[2]
      265545728 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md125 : active raid1 sdc18[0] sdd18[2]
      262966272 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md126 : active raid1 sdc19[0] sdd19[2]
      250735616 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md127 : active raid1 sdc20[0] sdd20[2]
      196975616 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

unused devices: <none>
ian2 ~ #


Last edited by ipic on Mon Dec 25, 2017 1:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Sun Dec 24, 2017 11:55 pm    Post subject: Reply with quote

There are many different types of UUIDs. In GPT partitions, every partition has a PARTUUID. In LVM, the physical volume, volume group, logical volume each has their own UUIDs. In mdadm RAID, each array has an array UUID, and each array member has a device UUID. In cryptsetup/LUKS each container has an UUID. And whatever storage layers involved in your case, once you put a filesystem on top, of course that filesystem will have its own filesystem UUID.

Your blkid commands are not listing array uuids, but LVM uuids and filesystem UUIDs (where there is a filesystem instead of lvm2 member).

In mdadm.conf you only want array UUIDs. Basically what your --examine --scan gave you, although that is usually too verbose and you want to reduce it to only the md<number> and uuid.

Code:

MAILADDR your@address

ARRAY /dev/md1 UUID=12345…
ARRAY /dev/md2 UUID=23456…

Back to top
View user's profile Send private message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 215
Location: UK

PostPosted: Mon Dec 25, 2017 1:28 pm    Post subject: Reply with quote

Thanks you very much! I was very nervous about changing array names in mdadm.conf, worried that I may screw up the boot process, so your advice was very valuable to me.

Summary:
I edited /etc/mdadm.conf to include an ARRAY line for each array, with device and UUID. I chose device names to match the way I have the disks set-up, and that worked (more details below). The main win is that my boot sequence now flies through the array assembly - it takes a few seconds in total. That makes my boot up time bearable again.

Details:
I added the following to /etc/mdadm.conf
Code:
# /dev/md1 is the 4-way boot array
ARRAY /dev/md1 UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7
# Convention for other names /dev/md<pair><partition>, where <pair> is 1 for /dev/sda-b
#     and 2 for /dev/sdc-d - <partition> is the disk partition number, as two digit number
#
# /dev/sda - /dev/sdb arrays
ARRAY /dev/md103 UUID=b564d87e:2222c69d:c65d2f0e:b144c4f4
ARRAY /dev/md105 UUID=7990857c:0d82ed9d:212b23f6:9752c146
ARRAY /dev/md106 UUID=1ddb6efa:2ca7765b:74cd47cd:7fd08a90
ARRAY /dev/md107 UUID=c964218b:f9a6dd0a:3f318120:d2175269
ARRAY /dev/md108 UUID=733bddc1:bb0920f4:6bc6b5b2:a5577f69
ARRAY /dev/md109 UUID=7b73b00c:865d6212:c9950081:2108bf70
ARRAY /dev/md110 UUID=1dfa875f:85180a95:94368564:2a52085a
ARRAY /dev/md111 UUID=a8a347e9:4cf97698:46b86224:183509d4
ARRAY /dev/md112 UUID=3b948124:a4a505c1:1e796666:7f2e8b86
ARRAY /dev/md113 UUID=b1c6528f:5aa1f507:f3fc3018:210763e1
ARRAY /dev/md114 UUID=e057febc:bb809af4:67c880a3:8cef4487
ARRAY /dev/md115 UUID=2f11fa81:cedbfa5e:bc3264b9:753966b8
ARRAY /dev/md116 UUID=03d0a149:5bd13ed5:dc3a7dfd:87a4feb4
ARRAY /dev/md117 UUID=86a57cf1:fa89ef7b:33bcb6a4:17b96b50
ARRAY /dev/md118 UUID=fa0f9f68:479b88bd:0b9a7364:607240d4
ARRAY /dev/md119 UUID=42d1b079:f8a5ab57:b3793250:62ab2f54
#
# /dev/sdc - /dev/sdd arrays
ARRAY /dev/md205 UUID=4257a17d:49453f6b:b49bb039:621bb5ea
ARRAY /dev/md206 UUID=4e0ad9ae:73505493:3443d8cd:b372cea1
ARRAY /dev/md207 UUID=14ca5b75:4df073b3:571593d5:19841fc4
ARRAY /dev/md208 UUID=cbfc6b70:ee8e5a63:6fabb693:2a347d24
ARRAY /dev/md209 UUID=ea2f44f0:bb11901b:67ea5462:a96de17a
ARRAY /dev/md210 UUID=f49d3272:19133dd3:df7a1544:ed34dea4
ARRAY /dev/md211 UUID=bb2d7eaa:b2e6036a:fb0b45a1:2f33552a
ARRAY /dev/md212 UUID=dcd353cb:bb079b99:6b408f88:1b9a8075
ARRAY /dev/md213 UUID=1f1cffe4:057a65cf:6873a674:821b3200
ARRAY /dev/md214 UUID=fc294435:2c459490:cb203a42:66b81e2a
ARRAY /dev/md215 UUID=09c3a073:8cb62ae3:5257bca2:31152207
ARRAY /dev/md216 UUID=de73032a:33b51a4b:5021a4e4:7d49eaf1
ARRAY /dev/md217 UUID=699a2575:61fbbc90:55c2df58:d371bf00
ARRAY /dev/md218 UUID=234f820f:b29f08eb:38c67cb5:69e6d938
ARRAY /dev/md219 UUID=b0ef7942:47d6e5bf:a913027b:bcea2d84
ARRAY /dev/md220 UUID=7725e8ae:a7f0140b:14e5320c:c22995e2
#


I then rebuilt the initramfs, updated grub and rebooted.

The building off all the arrays took a second or so, and LVM was not worried at all that all the devices for physical volumes had changed names.

The arrays now have names that help me with maintenance tasks:
Code:
ian2 ~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md220 : active raid1 sdc20[0] sdd20[2]
      196975616 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md219 : active raid1 sdc19[0] sdd19[2]
      250735616 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md218 : active raid1 sdc18[0] sdd18[2]
      262966272 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md217 : active raid1 sdc17[0] sdd17[2]
      265545728 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md216 : active raid1 sdd16[3] sdc16[2]
      47709840 blocks super 1.2 [2/2] [UU]
     
md215 : active raid1 sdd15[3] sdc15[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md214 : active raid1 sdd14[3] sdc14[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md213 : active raid1 sdd13[3] sdc13[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md212 : active raid1 sdd12[3] sdc12[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md211 : active raid1 sdd11[3] sdc11[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md210 : active raid1 sdd10[3] sdc10[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md209 : active raid1 sdd9[3] sdc9[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md208 : active raid1 sdd8[3] sdc8[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md207 : active raid1 sdd7[3] sdc7[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md206 : active raid1 sdd6[3] sdc6[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md205 : active raid1 sdd5[3] sdc5[2]
      83884984 blocks super 1.2 [2/2] [UU]
     
md119 : active raid1 sda19[0] sdb19[2]
      174748672 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md118 : active raid1 sda18[0] sdb18[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md117 : active raid1 sda17[0] sdb17[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md116 : active raid1 sda16[0] sdb16[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md115 : active raid1 sda15[0] sdb15[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md114 : active raid1 sda14[0] sdb14[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md113 : active raid1 sda13[0] sdb13[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 1/2 pages [4KB], 65536KB chunk

md112 : active raid1 sda12[0] sdb12[2]
      184188928 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md111 : active raid1 sda11[2] sdb11[3]
      47171511 blocks super 1.2 [2/2] [UU]
     
md110 : active raid1 sda10[2] sdb10[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md109 : active raid1 sda9[2] sdb9[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md108 : active raid1 sda8[2] sdb8[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md107 : active raid1 sda7[2] sdb7[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md106 : active raid1 sda6[2] sdb6[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md105 : active raid1 sda5[2] sdb5[3]
      62913464 blocks super 1.2 [2/2] [UU]
     
md103 : active raid1 sda3[0] sdb3[1]
      57393152 blocks super 1.2 [2/2] [UU]
     
md1 : active raid1 sdc1[0] sda1[3] sdd1[2] sdb1[1]
      6101952 blocks [4/4] [UUUU]
     
unused devices: <none>
ian2 ~ #


Interestingly, the examine scan still shows the same as before:
Code:
ian2 ~ # mdadm --examine --scan
ARRAY /dev/md/128  metadata=1.2 UUID=b564d87e:2222c69d:c65d2f0e:b144c4f4 name=ian2:128
ARRAY /dev/md/2  metadata=1.2 UUID=7990857c:0d82ed9d:212b23f6:9752c146 name=ian2:2
ARRAY /dev/md/3  metadata=1.2 UUID=1ddb6efa:2ca7765b:74cd47cd:7fd08a90 name=ian2:3
ARRAY /dev/md/4  metadata=1.2 UUID=c964218b:f9a6dd0a:3f318120:d2175269 name=ian2:4
ARRAY /dev/md/5  metadata=1.2 UUID=733bddc1:bb0920f4:6bc6b5b2:a5577f69 name=ian2:5
ARRAY /dev/md/6  metadata=1.2 UUID=7b73b00c:865d6212:c9950081:2108bf70 name=ian2:6
ARRAY /dev/md/7  metadata=1.2 UUID=1dfa875f:85180a95:94368564:2a52085a name=ian2:7
ARRAY /dev/md/8  metadata=1.2 UUID=a8a347e9:4cf97698:46b86224:183509d4 name=ian2:8
ARRAY /dev/md/128  metadata=1.2 UUID=3b948124:a4a505c1:1e796666:7f2e8b86 name=ian2:128
ARRAY /dev/md/129  metadata=1.2 UUID=b1c6528f:5aa1f507:f3fc3018:210763e1 name=ian2:129
ARRAY /dev/md/130  metadata=1.2 UUID=e057febc:bb809af4:67c880a3:8cef4487 name=ian2:130
ARRAY /dev/md/131  metadata=1.2 UUID=2f11fa81:cedbfa5e:bc3264b9:753966b8 name=ian2:131
ARRAY /dev/md/132  metadata=1.2 UUID=03d0a149:5bd13ed5:dc3a7dfd:87a4feb4 name=ian2:132
ARRAY /dev/md/133  metadata=1.2 UUID=86a57cf1:fa89ef7b:33bcb6a4:17b96b50 name=ian2:133
ARRAY /dev/md/134  metadata=1.2 UUID=fa0f9f68:479b88bd:0b9a7364:607240d4 name=ian2:134
ARRAY /dev/md/135  metadata=1.2 UUID=42d1b079:f8a5ab57:b3793250:62ab2f54 name=ian2:135
ARRAY /dev/md1 UUID=bc860a4a:ae7fc481:4f6c8a54:b8f64bb7
ARRAY /dev/md/5  metadata=1.2 UUID=4257a17d:49453f6b:b49bb039:621bb5ea name=ian2:5
ARRAY /dev/md/6  metadata=1.2 UUID=4e0ad9ae:73505493:3443d8cd:b372cea1 name=ian2:6
ARRAY /dev/md/7  metadata=1.2 UUID=14ca5b75:4df073b3:571593d5:19841fc4 name=ian2:7
ARRAY /dev/md/8  metadata=1.2 UUID=cbfc6b70:ee8e5a63:6fabb693:2a347d24 name=ian2:8
ARRAY /dev/md/9  metadata=1.2 UUID=ea2f44f0:bb11901b:67ea5462:a96de17a name=ian2:9
ARRAY /dev/md/10  metadata=1.2 UUID=f49d3272:19133dd3:df7a1544:ed34dea4 name=ian2:10
ARRAY /dev/md/11  metadata=1.2 UUID=bb2d7eaa:b2e6036a:fb0b45a1:2f33552a name=ian2:11
ARRAY /dev/md/12  metadata=1.2 UUID=dcd353cb:bb079b99:6b408f88:1b9a8075 name=ian2:12
ARRAY /dev/md/13  metadata=1.2 UUID=1f1cffe4:057a65cf:6873a674:821b3200 name=ian2:13
ARRAY /dev/md/14  metadata=1.2 UUID=fc294435:2c459490:cb203a42:66b81e2a name=ian2:14
ARRAY /dev/md/15  metadata=1.2 UUID=09c3a073:8cb62ae3:5257bca2:31152207 name=ian2:15
ARRAY /dev/md/16  metadata=1.2 UUID=de73032a:33b51a4b:5021a4e4:7d49eaf1 name=ian2:16
ARRAY /dev/md/128  metadata=1.2 UUID=699a2575:61fbbc90:55c2df58:d371bf00 name=ian2:128
ARRAY /dev/md/129  metadata=1.2 UUID=234f820f:b29f08eb:38c67cb5:69e6d938 name=ian2:129
ARRAY /dev/md/130  metadata=1.2 UUID=b0ef7942:47d6e5bf:a913027b:bcea2d84 name=ian2:130
ARRAY /dev/md/131  metadata=1.2 UUID=7725e8ae:a7f0140b:14e5320c:c22995e2 name=ian2:131
ian2 ~ #


...even though there are no devices at all in /dev/md/*
Code:
ian2 ~ # ls -lh /dev/md/*
ls: cannot access '/dev/md/*': No such file or directory
ian2 ~ # blkid /dev/md/*
ian2 ~ #



Hopefully this information will help someone in the future, and many thanks again for the help given here.
I've changed the title to [Solved].
Regards
Ian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum