ref: https://askubuntu.com/questions/1234949/install-ubuntu-20-04-focal-fossa-with-raid-1-on-two-devices
when installing ubuntu server, follow through the prompts until you reach the 'storage configuration' step, then select 'custom storage layout'.
to avoid confusion, we'll call the disks 'disk1' and 'disk2', this does not literally mean that is what they will be labeled on your machine. apply the following steps accordingly to what your first and second disk in the RAID1 array are actually called.
there should be 2x 1mb bios grub partitions. if this does not exist under secondary, you can manually create a 1mb partition so the other partitions align. 2 grub partitions are not necessary.
under each disk on available devices, you will now see 'partition 2', this is for boot.
you will now see 'partition 3'. this is for swap.
you will now see 'partition 4'. this is for root.
there should now be 3 pairs of available devices.
these should now appear under 'used devices'
you can now continue with the ubuntu installation