PVE 8.4 to 9.1 lvm.conf change with ZFS

Nov 2, 2019
23
9
43
The wiki page for lvm.conf is a little misleading, as it mentions I should choose the maintainers version ("Y") if I didn't make any edits. However, it should call out that doing so is OK for ZFS systems, even though the diff might be alarming, as it shows that this section is being removed:

Code:
devices {
     # added by pve-manager to avoid scanning ZFS zvols and Ceph rbds
     global_filter=["r|/dev/zd.*|","r|/dev/rbd.*|"]
}

I accepted the changes (Y) and confirmed after rebooting that those lines were re-added to the file
 
I can confirm this. Even though the new lvm.conf removes the global_filter it is added just a few steps later.
This is from the upgrade logs (apt dist-upgrade)

Code:
Setting up pve-manager (9.2.26) ...
  Configuration node devices/global_filter not found
Backing up lvm.conf before setting pve-manager specific settings..
'/etc/lvm/lvm.conf' -> '/etc/lvm/lvm.conf.bak' (backup: '/etc/lvm/lvm.conf.bak~')
Setting 'global_filter' in /etc/lvm/lvm.conf to prevent zvols and rbds from being scanned:
 => global_filter=["r|/dev/zd.*|","r|/dev/rbd.*|","r|/dev/nbd.*|"]
  LVM configuration valid.