Ubuntu – Booting Off Second Drive in Software RAID on EFI

raidsoftware-raidUbuntuubuntu-12.04uefi

I'm up and running on Ubuntu server with software raid 1 with 2 500GB drives and I'm just trying to test things out.

If I unplug the second drive I'm able to boot in degraded mode but if I unplug the first drive the system is unbootable.

When I went through the install I placed an EFI partition on each drive but it seems like only one was written.

So, I'm looking for a way to make the second drive bootable in the event of a failure.
I'm not finding much in the way of software raid with EFI.

Also, it doesn't look like this mobo has a BIOS mode so I can't fall back to that.

Best Answer

I'm not surprised that the installer only put GRUB on one drive's EFI partition. You'll need to copy the files to the other drives' EFI partitions yourself. You'll probably also want to use efibootmgr to create boot menu entries for those other copies of GRUB, so that you'll have them as options to boot from. (Each entry refers to a specific partition on a specific drive; I don't think you can have one that searches multiple drives)

You could put an EFI partition on a flash drive, install GRUB on that, create a boot entry for it, and leave it permanently plugged into the machine. That way you don't depend on either drive for your bootloader.

Even if you just have GRUB on the first disk, you could put the EFI Shell on a flash drive, boot from that, and use it to invoke GRUB from either disk's EFI partition. So even if you don't do anything special now, you'll be able to get the machine booted with some manual intervention if that first disk fails.