Whenever we need to upgrade the pve-kernel in our PVE 4.4 HA cluster, we find grub updating to be very slow (seem to be looking for other boot images on all known devices). In fact so slow that the HA SW watchdog sometimes fires a NMI, depending on at what stage this happens, it sometimes renders a host unbootable. We find no issue if we disable all the many VM' LVMs by exporting our VGs created across 5 iSCSI PVs, but this renders all other hypervisor hosts to seem the shared iSCSI VGs as exported, hindering live migration as long as the node under upgrade has been rebooted again, reimporting the VGs.
Feeling this isn't the right way to thus temporary 'release' LVMs + PVs to speed grub updating. Appreciate suggestion as howto do this better/best?
This is what we do currently:
Feeling this isn't the right way to thus temporary 'release' LVMs + PVs to speed grub updating. Appreciate suggestion as howto do this better/best?
This is what we do currently:
# Let's get all non-essentiel disk device out of the way...
# LVMs
vgexport -a
# NFS mounts
umount /mnt/pve/backupA
umount /mnt/pve/backupB
sleep 2
# clean up
dmsetup remove_all
iscsiadm -m session -u
# now run update/upgrade(s)
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade