UEFI installation doesn't create RAID1 for ESP partition #91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I just did fresh UEFI installation and found that ESP partition was created with the same UUID twice, once on each device, instead of creating RAID1 like https://docs.hetzner.com/robot/dedicated-server/operating-systems/efi-system-partition/ recommends.
This is fixable manually, but would be great to have installimage do it automatically.
Using RAID1 as outlined in the article is a bit of a hack. It works, but the right way is to actually have separate ESPs on every device. Ubuntu, which you have probably selected, supports this and installimage will install it this way.
Both will need to be updated if GRUB is updated, does it also install some hook that copies files properly from one ESP partition to another? Not sure how that would be done if UUID of both partitions was the same and
/etc/fstabwas mounting partition by UUID. The hack in the article ensures both have up to date config and it was quite an effort to adjust partition table and OS accordingly before the first boot.No, there is no hack that needs to be installed. As mentioned Ubuntu supports multiple ESPs natively. This means when grub is updated it gets installed on all configured ESPs. They get the same id so that at least one of them is always mounted.
Wow, that is a bit surprising and confusing at the same time, I didn't know about it. Thanks for explaining!
But why does the article recommends RAID1 anyway then?
It's still a working solution and for everything but Ubuntu there are no other (easy) options for redundancy available.
Thank you for the clarification on all these issues. In that case what is the recommended action when replacing broken hard drives? Is the command below sufficient, after preparing the new drive with the same partition table?
Maybe the Exchanging hard disks in a Software-RAID article should be updated for UEFI systems.