Comment 23 for bug 1466150

Revision history for this message
Ben Stanley (benstanley) wrote : Re: [Bug 1466150] Re: grub-install breaks when ESP is on raid

> I have EFI partitions on both disks but it is not possible to RAID1 these
> as they are FAT32.

Actually it is possible to RAID1 FAT32. The problem is that the default
RAID format places a header at the front of the partition, which stuffs up
the boot loader. But if you use the 0.9.0 format with mdadm, header is
placed at the end of the partition instead. This allows the boot loader to
function as normal while the partition is RAID1. Just don't expect Windows
to respect the RAID1.

However even using this trick my system won't grub-install to a RAID1
partition. Reports problems with EFI.

Sorry I'm not next to my system as I write this so details are from memory
instead of tested on the system.

On 1 July 2019 7:59:39 am Jack Ostroff <email address hidden> wrote:

> I'm having the same problem with a new Gentoo install, but with a twist.
> I am using lvm2 with a vg of two whole disk pvs and raid1 lvs for /,
> /boot, and /boot/efi. Since I'm not using mdadm, the script in comment
> #18 doesn't work for me, and I'm not able to modify it for my case,
> although I try a bit more.
>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1466150
>
>
> Title:
> grub-install breaks when ESP is on raid
>
>
> Status in grub-installer package in Ubuntu:
> Triaged
>
>
> Bug description:
> I run a server with mirrored (RAID1) disks using grub-efi.
>
>
> Root and /boot and /boot/grub are on mirrored partitions.
>
>
> I have EFI partitions on both disks but it is not possible to RAID1
> these as they are FAT32. On an EFI system grub-install will only
> install to one of the EFI partitions and so after running install-grub
> you have to remember to copy the EFI file across.
>
>
> Could grub configuration and grub-install be amended to automatically
> install to multiple disks?
>
>
> Searching around there seem to be many people asking this question
> without any elegant solution.
>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1466150/+subscriptions