[pve-devel] [PATCH lvm 1/2] filter zvols and pve vg in lvm.conf

Dietmar Maurer dietmar at proxmox.com
Tue Aug 23 09:05:36 CEST 2016


Why do we need filter and global_filter?


> ++    # Do not scan ZFS zvols (to avoid problems on ZFS zvols snapshots)
> ++    filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|" ]
> ++
> +     # By default we accept every block device:
> +     # filter = [ "a/.*/" ]
> + 
> +@@ -139,7 +142,7 @@
> +     # global_filter. The syntax is the same as for normal "filter"
> +     # above. Devices that fail the global_filter are not even opened by LVM.
> + 
> +-    # global_filter = []
> ++    global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|" ]




More information about the pve-devel mailing list