Help with Boot/ZFS Issue

tokenwizard

New Member
Jul 4, 2024
8
1
3
I have a server running Proxmox 8 which was running 7 and I have had functioning great for over a year.

Over that time, I have gone through the process of upgrading several of the disks from 4TB to 8TB ones.
Each time, I replicated the partition table of the old disk onto the new one using sgdisk and then expanded the third partition to use in the ZFS pool.
I also used proxmox-boot-tool to update the bootloader on the new disk.

After each disk replacement, the system could be rebooted and would always boot fine.

Today, I updated the system, including installing kernels 8.8.8-2 and 8.8.8-4 and now my system will not boot at all.

BIOS is set to GRUB boot mode as it always has been (and worked fine all this time).

So far, what I have tried...
1) boot into UEFI mode, chroot into the proxmox installation, and:
Code:
proxmox-boot-tool format <ESP partition 2>
for each of the 5 disks included int he ZFS pool
Code:
proxmox-boot-tool init <ESP partition 2>
for each of the 5 disks

2) boot into GRUB mode and do the same steps above.

I have tried to format/init the first partition on each disk while booted into GRUB mode, but it complains that the partition is too small.

I don't understand why I suddenly can't boot. It seems like I'm missing something silly, but I'm not sure what else to try. I can import my zpool and access it in the chroot and
Code:
zpool status
shows no errors.

"Normal" boot with the BIOS set to GRUB mode, gets stuck here, before presenting the GRUB Boot Menu:
1722187949055.png

And if I boot to the UEFI Boot Options, all the options for the system are greyed out except the Network ones:
1722188189209.png

If I switch the BIOS to UEFI Boot Mode, and let it try to boot normally, It fails here:
1722189044185.png
 
Last edited:
  • Like
Reactions: luison
Additional Details:

Booted into UEFI Boot Mode and chroot'd into the proxmox install, bootctl shows boot partitions on each of the 5 disks:
1722189379918.png

efibootmgr shows several entries:
1722189452874.png

proxmox-boot-tool status/refresh:
1722189511958.png
 
For more info, here is the partition layout of all 5 disks included in the zfs pool. They all have this same partition scheme (sda, sdb, sdc, sde, sdf). Each one has an EFI/ESP partition #2.
1722257514482.png

Within the CHROOT environment, you can see that the EFI partition is populated:

1722257632559.png
1722257663610.png
1722257689373.png
1722257722650.png
1722257749169.png
1722257773116.png


Apologies for all the screenshots. I'm working in an iDRAC console and can't copy/paste the console output.
 
Ok, I think I am getting closer now.
I ran through the steps here: https://pve.proxmox.com/wiki/ZFS:_Switch_Legacy-Boot_to_Proxmox_Boot_Tool

And switched by BIOS back to GRUB/BIOS mode. Now the system does boot up but hits initramfs. I'm thinking the ZFS root is not getting set or maybe not getting mounted early enough for the boot process?

UPDATE: after a
Code:
(initramfs) zpool import -f
(initramfs) exit
I am back in business and running kernel 6.8.8-4!
 
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!