magao-x / MagAOX

The MagAO-X Software System
https://magao-x.org/
GNU General Public License v3.0
10 stars 10 forks source link

Installation process of new data array without angering software RAID #20

Closed joseph-long closed 5 months ago

joseph-long commented 5 years ago

We are hoping to swap /data with fresh drives, but /etc/default/grub contains UUIDs for the specific devices in the current RAID1 config:

GRUB_CMDLINE_LINUX="crashkernel=auto rd.md.uuid=566e692c:f3de176a:82ad7951:8d7e2d86 rd.md.uuid=163ffa2c:89de515f:bacaf948:58011b6f rd.md.uuid=46197ed0:22d49a3a:87e3afe6:2cbb576b rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"

Kernel command line docs for md raid explain:

MD RAID

rd.md=0
    disable MD RAID detection 
rd.md.imsm=0
    disable MD RAID for imsm/isw raids, use DM RAID instead 
rd.md.ddf=0
    disable MD RAID for SNIA ddf raids, use DM RAID instead 
rd.md.conf=0
    ignore mdadm.conf included in initramfs 
rd.md.waitclean=1
    wait for any resync, recovery, or reshape activity to finish before continuing 
rd.md.uuid=<md raid uuid>
    only activate the raid sets with the given UUID. This parameter can be specified multiple times. 
joseph-long commented 5 years ago

Experimentation has demonstrated that only activate the raid sets with the given UUID is not implying that all detected arrays would normally be activated (i.e. by omitting the option).