I tried to install ubuntu server on a software raid (raid6 to be precise) instead of a single (whole) disk.
Since this is new territory I'm not entirely sure if I did things correctly.
Here are the steps I took:
1.) Change the four disks from MBR to GPT (with gdisk).
2.) Created the same two partitions on every drive:
sda1: type 1 (ESP) 512M, sda2: linux 16G
sdb1: type 1 (ESP) 512M, sdb2: linux 16G
sdc1: type 1 (ESP) 512M, sdc2: linux 16G
sde1: type 1 (ESP) 512M, sde2: linux 16G
3.) Disabled CSM in the BIOS (otherwise the installer would not let me choose a boot drive)
4.) Formatted sda1,sdb1,sdc1 and sde1 to vfat using mkfs.vfat /dev/sd{X}{n}
¹
5.) Created the RAID6 with mdadm --create /dev/md10 --level=6 --raid-devices=4 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sde2
and waited for it to completely sync.
6.) Selected RAID6 drive /dev/md10
as root partition (/
with ext4)
7.) Selected each drive (/dev/sda,/dev/sdb,/dev/sdc and /dev/sde) as "Use as Boot Device"
I know I didn't have to install the bootloader (I guess?) on each of the four drives and I'm aware that changes to initramfs will probably only affect the current used boot partition (and not all of them).
I'm also thinking of just using one drive as boot partition to make things a little bit easier.
Did I manage to setup my system in a correct way?
I'd love to hear if my understanding (especially about that boot partition) is correct.
¹ If left alone (with no file system) the ubuntu installer crashes and reports "bad superblock on /dev/sd{X}{n}"