Installation on MDADM RAID1

Preparation

WARNING: All data on the disks will be erased.

  1. Prepare a PC with two disks of the same size.

  2. Boot the machine in LiveCD or LiveUSB mode.

  3. Connect to the machine via SSH.

RAID 1 Assembly

  1. Run the following command in the console to display disk names:

fdisk -l
  1. The disk names will be displayed. In this example, the disk names are:

/dev/sda
/dev/sdb
  1. Clear the superblocks on the disks:

bashCopy codemdadm --zero-superblock --force /dev/sd{b,a}
  1. Clean the old metadata:

bashCopy codewipefs --all --force /dev/sd{b,a}
  1. Create the RAID1 array:

bashCopy codemdadm --create --metadata=0.90 --verbose /dev/md0 -l 1 -n 2 /dev/sd{b,a}
  1. When prompted with "Continue creating array?", confirm by entering "y".

  2. 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