Ubuntu Software RAID1 (UEFI)
Depending on the operating system, creating the software RAID1 is as easy as a few extra steps during the installation process.
Below are a few screenshots of the process to create a software RAID1 with QuantaStor on Ubuntu Bionic. The process is almost identical with QuantaStor on Ubuntu Xenial.
If you are familiar with creating partitions and would like to see the partition table summary, please see the below image. You may also finish the installation as normal and skip ahead to step 40. If you are not familiar with the partitions, follow the instructions below.
There should be four partitions per device, 1MB for the biosgrub (for UEFI and legacy boot), 512MB for the EFI boot, and two RAID partitions, sized accordingly, which will be eventually be put in a RAID to be used for the root filesystem and swap. Software RAID1 is expected to be used on each of the two RAID partitions per device.
Instructions
- Step 1 - When you are prompted to install QuantaStor on a disk like below, press the ‘ESC’ key
- Step 2 - Select the ‘Partition disks’ option and press the ‘Enter’ key
- Step 3 - You’ll be presented with your disks, depending on whether there is existing data on them, you may need to wipe the partition table. Select your first RAID device, and press the ‘Enter’ key
- Step 4 - Select ‘<Yes>’ and press the ‘Enter’ key
- Step 5 - Do the same for the other RAID device you intend to use. You should now be presented with your RAID devices, and they should have “FREE SPACE” beside them. Select the area below the device, where you will see the “FREE SPACE” and press ‘Enter’
- Step 6 - Press the ‘Enter’ key to select ‘Create a new partition’
- Step 7 - For the first partition; which will be for biosboot and for UEFI plus legacy boot. It’s not required, but we recommend creating it anyway. Enter 1MB for the partition size and press ‘Enter’ to confirm
- Step 8 - Press the ‘Enter’ key to select ‘Beginning’
- Step 9 - Use ‘Reserved BIOS boot area’ and press the ‘Enter’ key on ‘Done setting up the partition’ to confirm
- Step 10 - Select the available space on the device, and press the ‘Enter’ key
- Step 11 - Press the ‘Enter’ key to create a new partition
- Step 12 - For the second partition; which will be for the UEFI boot, we recommend using 512MB. Enter the value in the field and press the ‘Enter’ key
- Step 13 - Press the ‘Enter’ key to select ‘Beginning’
- Step 14 - Use ‘EFI System Partition’ and press the ‘Enter’ key on ‘Done setting up the partition’ to confirm
- Step 15 - Select the available space on the device, and press the ‘Enter’ key
- Step 16 - Press the ‘Enter’ key to create a new partition
- Step 17 - For the third partition, which will be used as one of the two RAID volumes being created, using at least 80% of the device is a good general rule. Enter “80%” and press the ‘Enter’ key to confirm
- Step 18 - Press the ‘Enter’ key to select ‘Beginning’
- Step 19 - Use ‘physical volume for RAID’ and press the ‘Enter’ key on ‘Done setting up the partition’ to confirm
- Step 20 - Select the remaining space on the device, and press the ‘Enter’ key
- Step 21 - Press the ‘Enter’ key to create a new partition
- Step 22 - For the fourth and final partition, press the ‘Enter’ key to confirm and use the remaining space on the device
- Step 23 - Use ‘physical volume for RAID’ and press the ‘Enter’ key on ‘Done setting up the partition’ to confirm
- Step 24 - Repeat the earlier steps and create the partitions on the other device. Select ‘Configure software RAID’ and press the ‘Enter’ key. If prompted to write changes, select ‘<Yes> and press ‘Enter’ to confirm
- Step 25 - Press the ‘Enter’ key to create the first RAID volume
- Step 26 - Select ‘RAID1’ and press the ‘Enter’ key to confirm
- Step 27 - Check that the number of active devices is set to ‘2’ and press the ‘Enter’ key to confirm
- Step 28 - Press the ‘Enter’ key to confirm 0 spare devices, unless spare devices are configured, then change the value accordingly
- Step 29 - Select the third partitions created on each device. Press the ‘Enter’ key to confirm
- Step 30 - Press the ‘Enter’ key to create the second RAID volume
- Step 31 - Check that the number of active devices is set to ‘2’ and press the ‘Enter’ key to confirm
- Step 32 - Press the ‘Enter’ key to confirm 0 spare devices, unless spare devices are configured, then change the value accordingly
- Step 33 - Select the fourth partitions created on each device and press the ‘Enter’ key to confirm
- Step 34 - Select ‘Finish’ and press ‘Enter’ to confirm
- Step 35 - Select the empty space of the first RAID volume partition and press the ‘Enter’ key
- Step 36 - Modify the parameters for the partition to ‘Ext4 journaling file system’ and ‘/’ like the below. Select ‘Done setting up the partition’ and press the ‘Enter’ key to confirm
- Step 37 - Select the empty space of the second RAID volume partition and press the ‘Enter’ key
- Step 38 - Modify the parameters for the partition to swap area’ like the below. Select ‘Done setting up the partition’ and press the ‘Enter’ key to confirm
- Step 39 - Select ‘Finish partitioning and write changes to disk’ and press the ‘Enter’ key to confirm. The system should now start to install
- Step 40 - Log into the system, elevate to root and check the current efibootmgr details with ‘efibootmgr -v’. Make a note of the file name for the ubuntu boot entry. For example “\EFI\ubuntu\shimx64.efi”. You should see something like the below
- Step 41 - Use ‘dd if=/dev/sda2 of=/dev/sdb2’ to copy the second partition data from the first device to the second device. If your two devices are not sda or sdb, change these accordingly. You should see something like the below
- Step 42 - Using the file name for the ubuntu boot entry from step 37, use ‘efibootmgr -c -d /dev/sdb -p 1 -L "ubuntu2" -l “\EFI\ubuntu\shimx64.efi”’. You should see something like the below
- Step 43 - Check the RAID status for your partitions before rebooting the system with ‘cat /proc/mdstat’ if everything is healthy, you should see something like the below