Installation on MDADM RAID1
Preparation
WARNING: All data on the disks will be erased.
Prepare a PC with two disks of the same size.
Boot the machine in LiveCD or LiveUSB mode.
Connect to the machine via SSH.
RAID 1 Assembly
Run the following command in the console to display disk names:
fdisk -lThe disk names will be displayed. In this example, the disk names are:
/dev/sda
/dev/sdbClear the superblocks on the disks:
bashCopy codemdadm --zero-superblock --force /dev/sd{b,a}Clean the old metadata:
bashCopy codewipefs --all --force /dev/sd{b,a}Create the RAID1 array:
bashCopy codemdadm --create --metadata=0.90 --verbose /dev/md0 -l 1 -n 2 /dev/sd{b,a}When prompted with "Continue creating array?", confirm by entering "y".
You can now proceed with the installation as per the installation guide. When selecting the disk during installation, choose
md0.
Grub
TODO: You may need to modify the grub.cfg file. Otherwise, there is no guarantee that the system will boot if one of the disks fails.
Last updated
Was this helpful?

