Problems mirroring boot device

silke

New Member
Apr 15, 2025
21
10
3
Hi,

I started out with a single disk proxmox install using ZFS. Now I want to improve it by adding a second drive and create a mirror of both drives. I followed https://pve.proxmox.com/wiki/ZFS_on_Linux#_zfs_administration "Changing a failed bootable device". Here is what I did exactly:

Bash:
proxmox-boot-tool status # gives "UEFI"
sgdisk /dev/nvme3n1 -R /dev/nvme0n1
sgdisk -G /dev/nvme0n1
zpool attach rpool nvme-eui.00000000000000000026b73839bd5985-part3 /dev/nvme0n1p3
proxmox-boot-tool format /dev/nvme0n1p2
proxmox-boot-tool init /dev/nvme0n1p2

But when I removed the original disk and tried to boot I got a "Secure Boot Violation - Invalid signature detected". Any idea how I can fix this?
 
Yes, the devices were correct (changed by now due to some reordering). Found it by now: I didn't notice that the system booted with grub. I thought that UEFI would always go with systemd-boot. I followed https://pve.proxmox.com/wiki/Host_Bootloader and had a line similar to the one mentioned for systemd-boot but obviously the hint was wrong.

While I am at it I would like to clean the ZFS mirror reference to the device from nvme1n1p3 to the by-id name since it should be more reliable.
Can I just do a "zpool detach rpool nvme1n1p3" followed by a "zpool attach rpool /dev/disk/by-id/<other disk> /dev/disk/by-id/<to-change-disk>"?