Score:1

Add RAID 1 pair to running system 21.04 with UEFI boot

us flag

I find many answers to this question for Ubuntu 12 and 14, but with EFI partitions things have changed a bit. Actually using those guides I do have an older system running RAID1 but I have run into trouble, well speed bumps.

The older RAID system had my backup and nextcloud data, which I have moved to the new system, recreated raid and copied.

This is what I have running right now:

Device         Start        End    Sectors  Size Type
/dev/sda1       2048    1050623    1048576  512M EFI System
/dev/sda2    1050624  959449087  958398464  457G Linux RAID
/dev/sda3  959449088 7814035455 6854586368  3.2T Linux RAID


Device         Start        End    Sectors  Size Type
/dev/sdb1       2048    1050623    1048576  512M EFI System
/dev/sdb2    1050624  959449087  958398464  457G Linux RAID
/dev/sdb3  959449088 7814035455 6854586368  3.2T Linux RAID

Device       Start       End   Sectors   Size Type
/dev/sdc1     2048   1050623   1048576   512M EFI System
/dev/sdc2  1050624 976771071 975720448 465.3G Linux filesystem

The system currently boots from /dev/sdc

I have tried a few things with a Live CD to copy sdc1 and sdc2 to sda and sdb and make them bootable.

I found this post quiet interesting Install Ubuntu 20.04 desktop with RAID 1 and LVM on machine with UEFI BIOS

I think it has many of the details I have been missing.

Specifically step 4.1 chroot to the raid file system I have mdadm installed and configured so all that is left is

Update the module list the kernel should load at boot.

echo raid1 >> /etc/modules
Update the boot ramdisk

update-initramfs -u
Finally, exit from chroot

and then continue with steps 5 onward.

I honestly think the key point I was missing was adding raid1 to /etc/modules In the older docs (Ubuntu 12 etc) I think it was handled in the grub files

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.