ZFS rpool UEFI /dev/sda2 sync zu /dev/sdb2

crmspezi

Well-Known Member
Sep 5, 2019
384
28
48
44
Germany/Thueringen
Hallo zusammen und frohe Weihnachten euch allen.
Ich benötige Informationen zum Mirror eines rpools, bei Proxmox 6.2 und 6.3.

neuer PVE:
2x Flashspeicher für den rpool mit log2ram, die Installation ist mit nur einem Flashspeicher erledigt worden. Der zweite Flashspeicher kam später hinzu, es wurden die gleichen Partitionsdaten übernommen:

Device Start End Sectors Size Type
/dev/sdb1 34 2047 2014 1007K BIOS boot
/dev/sdb2 2048 1050623 1048576 512M EFI System
/dev/sdb3 1050624 52428800 51378177 24.5G Solaris /usr & Apple ZFS

  1. sda3 und sdb3 ist nun ein ZFS Mirror
  2. sdb2 ist mit vfat von mir formatiert worden und hat per copy den Inhalt von sda2 bekommen.
  3. "grub-install cannot find efi directory" bei sda und sdb, ich musste folgendes ausführen:
    mkdir /mnt/a
    mkdir /mnt/b
    rsync -r /mnt/a/* /mnt/b/
    mount /dev/sdb2 /boot
    grub-install --target=x86_64-efi --efi-directory=/boot/efi
  4. bis hierhin alles ok.
Seitens proxmox ist standardmäßig /boot/efi nicht gemountet, auch in der fstab gibt es wie bei Debian üblich keine Eintrag auf das /boot/efi, das ich mit einem zweiten /boot/efi-alternativ für den Notfall ergänzen könnte. Bei meiner EFI-OpenMediavault habe ich beim Reboot ein Script, das mir von /boot/efi nach /boot/efi-alternativ rsync't.

Der Pve bootet von beiden Speichern, einzeln auch getestet! Nun meine Frage:

Wie regelt Proxmox das, wenn ich schon beider Installation für rpool ein ZFS Mirror anlege. Die EFI Partition muss ja auch auf beiden Sticks synchron sein? Oder wird beim Kernel-Update im Hintergrund in beide EFI Partitionen das gleiche upgedatet?

Viele Grüße und schöne Feiertage
crmspezi
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!