Replies: 2 comments 3 replies
-
I use an mdraid mirror with version 1.0 metadata. The version is important. Newer mdraid versions add metadata at the front of the block devices, so they won't be recognized as normal filesystems by your firmware. Versions 1.0 and below store metadata at the end; each block device on a mirror will look like an independent, valid filesystem to the firmware. Some people worry about this configuration because your firmware may write to the filesystem it uses and cause inconsistencies. I think this concern is overblown because we're talking about an EFI system partition. First, resilvering a 500-MB partition should they become inconsistent is a trivial operation. Second, the EFI partition is effectively disposable anyway. If there are problems that prevent boot, the worst possible outcome is that you'll need to dump a ZBM EFI executable to a USB drive for recovery. If you don't like the mdraid approach, we have a contrib script to sync multiple ESPs. Adapt this to your needs and you're all set. |
Beta Was this translation helpful? Give feedback.
-
Perfect, thank you. What do you see as the advantage of the mdraid approach over the contrib script given the risk you mentioned about firmware overwrites? Would it be that the fstab entry for /boot/efi will work seamlessly in the event of a drive failure because it will reference the MD array as a whole (e.g. md0) rather than a specific ESP? [edit: I can see Lennart Poettering has recently created a blog post on this topic (see "Addendum: You got RAID"): His recommendation appears to be to use the userland tooling "contrib scipt" approach. There is also a systemd github issue here: [edit2: I can see the ZBM team has already commented on Poettering's post on the following HackerNews thread: |
Beta Was this translation helpful? Give feedback.
-
What is the correct approach to configure the multiple EFI system partitions (ESP) for a zfsbootmenu installation on a multi disk mirror pool? For example, at the moment I mount a single ESP partition from one of the disks to /boot/efi and generate-zbm creates and saves the necessary EFI boot files in the relevant ImageDir. However, this is not a resilient approach in the event that the disk fails. I would like the loss of a single drive to not affect the ability of the mirror pool system to boot.
How should the relevant files also be copied / mirrored / sync'd to the other ESP partitions? Will I have to create a post generate-zbm script to mount and sync the files to the other ESPs? Would such a script be best placed in the PostHooksDir? Or is there a better approach?
Related ubuntu zfsbootmenu install script issue here:
Sithuk/ubuntu-server-zfsbootmenu#12
Beta Was this translation helpful? Give feedback.
All reactions