You are not logged in.

#1 2022-04-06 01:29:23

v2vm
Member
Registered: 2018-03-03
Posts: 19

How to let grub install to all esp partitions for a zfs mirror root?

Hi,

Here's my partition scheme (with GPT + UEFI):

/dev/nvme0n1p1  EFI/esp Partition, also mounted as /boot
/dev/nvme0n1p2  mirrored ZFS vdev (for /)

/dev/nvme1n1p1  EFI/esp Partition
/dev/nvme1n1p2  mirrored ZFS vdev (for /)

How do I synchronize the esp partitions (including or as well as /boot), such that grub, initramfs, kernels are installed/updated on both disks?

Or, should I perhaps create another partition ---- nvme0n1p3 and nvme1n1p3, as a grub-compatible zfs mirror, mounted as /boot,
and just manually install 2 minimum esp partitions?

Thanks!

Last edited by v2vm (2022-04-07 04:31:19)

Offline

#2 2022-04-06 09:47:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: How to let grub install to all esp partitions for a zfs mirror root?

I'd do the latter, otherwise you have to manually sync the ESPs one way or the other. If you just rely on GRUBs ability to load the kernels off of a ZFS you just need to setup GRUB once and be done with it (... or twice one for each ESP if you want to make a distinction here).

Offline

Board footer

Powered by FluxBB