User Tools

Site Tools


quickreference:mdadm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

quickreference:mdadm [2018/10/27 23:16] – external edit 127.0.0.1quickreference:mdadm [2020/10/13 19:56] (current) rodolico
Line 209: Line 209:
 </code> </code>
 This stops the array as /dev/md127 and then reassembles it as /dev/md0. The reassembly looks for devices which have an existing minor number of 127, not 0 (-m127), and then updates the minors in the superblocks to the new number. I included the original members (sdb, sdc and sdd) as /dev/sd[bcd] This stops the array as /dev/md127 and then reassembles it as /dev/md0. The reassembly looks for devices which have an existing minor number of 127, not 0 (-m127), and then updates the minors in the superblocks to the new number. I included the original members (sdb, sdc and sdd) as /dev/sd[bcd]
 +
 +Note: If you have LVM2 running on top of your RAID set, you must do the following for each LV listed.
 +<code bash>
 +for lv in `ls /dev/vgname/`
 +do
 +   lvchange -an $lv
 +done
 +vgchange -an vgname
 +</code>
 +change vgname to the actual name of you volume group. You must do this before you can stop the md
  
 ==== Converting from one RAID level to another ===== ==== Converting from one RAID level to another =====
quickreference/mdadm.1540700161.txt.gz · Last modified: 2018/10/27 23:16 by 127.0.0.1