`pve-efiboot-tool format` fails with "contains a filesystem ('zfs_member')"

burning daylight

Renowned Member
Dec 18, 2014
17
0
66
I'm trying to replace a ZFS-mirrored boot disk follow the guide from the manual. Previously, I installed proxmox 6.1 from the iso using the ZFS-mirror option. The first part seems to work:
Code:
new=ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519
:~# sgdisk /dev/disk/by-id/$healthy -R /dev/disk/by-id/$new
The operation has completed successfully.
:~# sgdisk -G /dev/disk/by-id/${new}
The operation has completed successfully.
:~# fdisk -l /dev/disk/by-id/${new}
Disk /dev/disk/by-id/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519: 15 GiB, 16106127360 bytes, 31457280 sectors
Disk model: VBOX HARDDISK  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E63FAB73-CC25-4DD7-9717-E57C396790F2

Device                                                        Start      End  Sectors  Size Type
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519-part1      34     2047     2014 1007K BIOS boot
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519-part2    2048  1050623  1048576  512M EFI System
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519-part3 1050624 29360094 28309471 13.5G Solaris /usr & Apple ZFS
Up until the `pve-efiboot-tool format` part. When I do that, I get this error messsage:
:~# pve-efiboot-tool format /dev/disk/by-id/${new}-part2
UUID="473D-05F5" SIZE="536870912" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="sda" MOUNTPOINT=""
E: '/dev/disk/by-id/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519-part2' contains a filesystem ('vfat') - exiting (use --force to override)
I also tried using `--force`, but I get this:
:~# pve-efiboot-tool format /dev/disk/by-id/${new}-part2 --force
UUID="473D-05F5" SIZE="536870912" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="sda" MOUNTPOINT=""
cat: /sys/block/sda/ata-VBOX_HARDDISK_VB8cadd7f4-8b75e519-part2/partition: No such file or directory
Did something change in Proxmox 6.1 or am I doing something wrong?
 
Last edited:
OK, I think, I found a solution. I must use /dev/sdXN instead of /dev/disk/by-id/...-partN with pve-efiboot-tool. I can still use /dev/disk/by-id with zpool.