My current Linux Mint 20.3 is soon running out of support, so I figured it's time to install a fresh Linux Mint 22. Currently I have mdadm running two 4TB drives on RAID1 with LUKS. It's been very many years since I set this thing up (and last time while upgrading to Mint 20, I corrupted my superblock rebuilding after install...), so I figured this time I make sure I got my to-do list right, before I proceed with the operation.
- First unmount RAID directory
sudo umount /storage (my mountpoint for /dev/md0)
- Stop existing RAID Array on source system
sudo mdadm --stop /dev/md0
(Install new Linux Mint)
- Assemble RAID1 back
sudo mdadm --assemble /dev/md0 /dev/sda /dev/sdb
- Unlock existing devices
sudo cryptsetup luksOpen /dev/md1 raidcrypt
- add /etc/fstab mount
/dev/mapper/raidcrypt /storage ext4 defaults 0 2
Am I missing something critical? Should this retrieve my RAID1 setup on a new install? Obviously I will be installing the operating system on a different dedicated SSD drive.
If I understood, I definitely need to avoid 'mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb' which would create a new superblock, correct?