Proxmox7 Upgrade Grub-pc hangs trying to install

adamb

Famous Member
Mar 1, 2012
1,329
77
113
Just finished upgrading a 6 node cluster to Proxmox7. This cluster is on the enterprise repo's.

On 4 of the 6 nodes the grub-pc package will not install, I have let it sit trying to install on all 4 servers for well over 30 minutes.

Doesn't matter if I am using "apt-get dist-upgrade" or "dpkg --configure -a"

iF grub-pc 2.04-20 amd64 GRand Unified Bootloader, version 2 (PC/BIOS version)

I have rebooted multiple times, but it doesn't seem to matter.

I have probably done close to 100 Proxmox6 -> Proxmox7 upgrades and this is the first time I have hit this one.

Appreciate the input!
 
Doing a quick strace its almost as if grub is looking at every block device on the system. I have thousands of disks in LVM.

read(8, "METAGET grub-pc/disk_description"..., 8192) = 45
write(7, "0 /dev/dm-1127 (107374 MB; Cloud"..., 60) = 60
read(8, "SUBST grub-pc/disk_description D"..., 8192) = 51
write(7, "0\n", 2) = 2
read(8, "SUBST grub-pc/disk_description S"..., 8192) = 43
write(7, "0\n", 2) = 2
read(8, "SUBST grub-pc/disk_description M"..., 8192) = 69
write(7, "0\n", 2) = 2
read(8, "METAGET grub-pc/disk_description"..., 8192) = 45
write(7, "0 /dev/dm-1128 (171798 MB; Cloud"..., 60) = 60
read(8, "SUBST grub-pc/disk_description D"..., 8192) = 51

Anyway to prevent this?
 
Just tested another 6 node cluster that is identical in hardware and configuration, but does not have LV's present. No issues going from Proxmox6 -> Proxmox7.

I am not sure how to get around this other than having to log out of iscsi to get rid of all the LV's, or simply try and let grub-pc run for hours and maybe it will complete.
 
Maybe adding GRUB_DISABLE_OS_PROBER=true to your /etc/default/grub, will prevent it from scanning everything for all possible bootable disks. I thought this was the default for Proxmox (and it is present in the current version). Otherwise, doing chmod a-x /etc/grub.d/30_os-prober to disable the probing might help.
 
Maybe adding GRUB_DISABLE_OS_PROBER=true to your /etc/default/grub, will prevent it from scanning everything for all possible bootable disks. I thought this was the default for Proxmox (and it is present in the current version). Otherwise, doing chmod a-x /etc/grub.d/30_os-prober to disable the probing might help.
Appreciate the input.

Looks like GRUB_DISABLE_OS_PROBER=true is set on all of the nodes. I also gave the chmod a shot, but the below process its still scanning all lv's.

/bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 2.02+dfsg1-18-pve1