[SOLVED] Making zfs root mirror bootable (uefi)

piod

New Member
Oct 20, 2019
2
0
1
39
Hi,

I attached a disk for the root file system to have a mirrored zfs pool. Resilvering was no problem, but how can I make the second disk bootable?
I am new to UEFI and do not know any of the relevant commands.

The original device:
Code:
Device           Start        End   Sectors   Size Type
/dev/nvme1n1p1      34       2047      2014  1007K BIOS boot
/dev/nvme1n1p2    2048    1050623   1048576   512M EFI System
/dev/nvme1n1p3 1050624 1000215182 999164559 476.4G Solaris /usr & Apple ZFS

The new device:
Code:
Device              Start        End    Sectors  Size Type
/dev/nvme0n1p1 2048 1000198143 1000196096 477G Solaris /usr & Apple ZFS
/dev/nvme0n1p9 1000198144 1000214527      16384    8M Solaris reserved 1

Am I right, clearing the second device, making a partition for EFI and one for ZFS, resilvering the ZFS and marking bootable?
But I'm sorry I can't find out how tho do is.
 
Depending on how and when the system was setup it could be as easy as: `pve-efiboot-tool init /dev/nvme0n1p2` - this is if the system is booted with systemd-boot (i.e. got setup with PVE 6.0) - see the reference documenation: https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysboot

I hope this helps!
 
Thanks for the hint. This was the missing command I was looking for.
Now everything is working!
 
Glad that worked out :)

please mark the thread as 'SOLVED' - this helps other users in a similar situation

Thanks!
 

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!