-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EFI partition isn't mirrored #41
Comments
Hi Quentin! alez does not currently support mirroring the UEFI partition, so yes, what you say is a potential pitfall. The upcoming release of Proxmox supports this (under Debian 10) so it'd be interesting to see how they've implemented this. @johnramsden has more experience with Linux ZFS on UEFI. Our answer to this question needs to be added to the README until we do add support for this. |
Easiest way would probably be just setting up a systemd service which is triggered upon the kernel changing, the files could then be rsync'd to the other partition. This can be done by using a similar pattern to what is detailed in 'EFI system partition - Using systemd'. Or, a pacman hook might be more suitable since it supports globbing, which I don't believe systemd path monitoring does. If you end up setting this up yourself, and testing it, it could make a good first PR which I'd be happy to review. I might get around to it at some point, but right now I don't have the time to add the feature. |
I'll look into it. I may also do a PR for native encryption for the root partition. Also (out of the topic, sorry) why do you support only mirror and not raidzN? I could look into it perhaps and add the missing dialog menus. |
No reason in particular other than increased complexity. raidz would be a good addition, you could open an issue for that and we'll add it to the list of enhancements. |
@qdm12 Regarding your question in #39 (comment) If you are using BIOS, so Lines 458 to 459 in 05ebf9d
Lines 111 to 123 in 05ebf9d
The Line 637 in 05ebf9d
If you're using UEFI, so Lines 460 to 470 in 05ebf9d
In the Lines 125 to 135 in 05ebf9d
Right now this will be created for each device, but only one will be selected to be used since no mirroring is occurring. Lines 575 to 593 in 05ebf9d
If systemd-boot is used, Lines 644 to 648 in 05ebf9d
For UEFI, EFI entries need to be created, For GRUB, the zpool is actually holding the kernels, and See Line 527 in 05ebf9d
For systemd-boot, the files are actually kept on the ESP, with the kernels kept in Lines 590 to 593 in 05ebf9d
Therefore you will likely want to mount the second ESP add an alternate location and just update it after each kernel update or configuration update. To keep the configuration in sync you probably want to just synchronize the entire ESP after every kernel upgrade, or use a filesystem watcher and synchronize the configuration whenever it changes. Hope that helps. |
Hi John and thanks for the very detailed explanation! I will see what I can do with it. I am testing my current changes in (hyper-v) VMs for now, maybe we can already do a PR for the encryption and raidzN first and do a boot related PR afterwards. Thanks again for the help. |
Hi there,
First of all, thanks for the nice program, it takes out a lot of headaches 👍
I can see my root is mirrored on two of my drives with ZFS, but what about
/mnt/efi
? It does not seem to be mirrorred. So this would mean that removing one of the two drives could make (50% chance) the system unbootable. Is there a way to mirror (or other) the boot partition as well?Thanks!
The text was updated successfully, but these errors were encountered: