Proxmox5 and LVM issues

adamb

Famous Member
Mar 1, 2012
1,329
77
113
LVM filters during a reboot simply don't work. I am not new to filters and we have been using them with no issues since Proxmox3 and DRBD. Set the filter in /etc/lvm/lvm.conf run update-grub and we should be good to go?

No matter what the system will come up using the underlying block device instead of the multipath device. I know my filters are working correctly because if I disable all the LV's and re-run pvscan everything looks good as its now using my filters. Its almost as if update-grub is not properly pulling over the new /etc/lvm/lvm.conf file.
 
Last edited:
Looks like I might need to update initramfs for reboots to work. I don't remember doing this on pve3/4. Can anyone else chime in?

that is to be expected - the lvm.conf is copied to the initrd after all, and the initial scanning is done early on (since / or /usr or ... might be on LVM). this is similar to how the ZFS cache file needs to be synced to the initrd after changes (if it is used - it is optional after all).