I selected the "md0" partition (the root partition created before) and choose "Add GPT Partition", and than I selected format as "Ext4" and mount on "/" I created another "RAID md" volume, but this time with "/home" partition (always active), selecting both "/home" partitions to create a new "md1" partition Using the "Create software RAID (md)" option, I selected the "/" - root - disk one partition, and the "/" partition of disk two, to create a new "md0" volume (always active) I checked both disks to be "added as a boot disk" Then, using the "Custom storage layout" during the Ubuntu Server 20.04 installation: I decided to omit a "/swap" partition because I have 16 GB of RAM installed, and I use SSD drives, and this server will be just a little home NAS, so I don't need high performance. (Entire remaining space) /home partition, named "/home", ext4, flagged as "raid". 10 GB partition, named "/", ext4, flagged as "raid".512 MB partition, named "/bios/efi", fat32, flagged as "boot, esp".Solution 1: Install RAID 1 without encrypt your disksįirst, I have prepared both the hard drives (SSD in my case) using "GParted Live" (I created a bootable USB with the GParted ISO): (Also referenced on: fixed it in this way. At the very bottom, you should now see "Done" enabled so hit it and proceed.All these mdX softRAID partitions will now appear under USED DEVICES and you are ready to proceed with Ubuntu's installation.Select md2 and then "Add GPT Partition", format as EXT4 and mount on /.Select md1 and then "Add GPT Partition", format as SWAP.So select md0 and then "Add GPT Partition", format as EXT4 and mount on /boot. We now have 3 pairs of AVAILABLE DEVICES which will now format as the actual softRAID partitions.Repeat the process for md2 and select the two "partition 4" entries.Repeat the process for md1 and select the two "partition 3" entries.We'll create the first softRAID partition (md0) by selecting the two "partition 2" entries (one from each disk). Now click on "Create software RAID (md)" under AVAILABLE DEVICES.Under each disk on AVAILABLE DEVICES you will now see "partition 4". "Add GPT Partition" on the 1st disk, do not set a size (so it uses all available) and choose to leave it unformatted as with all the other partitions you created so far. Under each disk on AVAILABLE DEVICES you will now see "partition 3". let's say 16G cause we have 16G of actual RAM - but it's really up to you to decide that) and choose to leave it unformatted. "Add GPT Partition" on the 1st disk, give it the same or half the size of your RAM (e.g. Now we'll prepare the swap partitions.Under each disk on AVAILABLE DEVICES you will now see "partition 2". These will be the /boot partitions for the softRAID array. So go ahead and "Add GPT Partition" on the 1st disk, give it a 1G size and choose to leave it unformatted.The trick to setup a softRAID array is to create partitions for /boot, swap and / on each disk, but WITHOUT formatting them (and as such, there won't be a mount point for now). These small partitions will be used by GRUB for booting the server. You should now see two 1.000M bios_grub partitions created under USED DEVICES.Now select the 1st disk to add as "boot" disk (same menu that had REFORMAT in).This will (temporarily) wipe out the partitions. If the disks have existing partitions, click on each disk under AVAILABLE DEVICES and then select REFORMAT.Select "Custom storage layout" when you reach the storage configuration step of the installer.As I stumbled on the same issue and found out that the actual docs haven't yet been updated for the new storage configurator (still true as of March 2021 and now possibly with a bug on the bios_grub configurator of the installer), here's what I did to get a working softRAID 1 setup with 2 disks on the Ubuntu Server edition (for version 20.04 or newer):
0 Comments
Leave a Reply. |