]> git.proxmox.com Git - lvm.git/commitdiff
Insert a scan filter that zfs zvols will not be scanned.
authorWolfgang Link <w.link@proxmox.com>
Fri, 13 Nov 2015 09:27:42 +0000 (10:27 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Nov 2015 10:02:16 +0000 (11:02 +0100)
This can make problems with zvol snapshots that have lvm pools on it.

patchdir/filter_zvols_in_lvm.conf.patch [new file with mode: 0644]
patchdir/series

diff --git a/patchdir/filter_zvols_in_lvm.conf.patch b/patchdir/filter_zvols_in_lvm.conf.patch
new file mode 100644 (file)
index 0000000..d7232fc
--- /dev/null
@@ -0,0 +1,14 @@
+Index: new/conf/example.conf.in
+===================================================================
+--- new.orig/conf/example.conf.in
++++ new/conf/example.conf.in
+@@ -118,6 +118,9 @@ devices {
+     # If lvmetad is used, then see "A note about device filtering while
+     # lvmetad is used" comment that is attached to global/use_lvmetad setting.
++    # Do not scan ZFS zvols (to avoid problems on ZFS zvols snapshots)
++    filter = [ "r|/dev/zd*|" ]
++
+     # By default we accept every block device:
+     # filter = [ "a/.*/" ]
index a532d193423a9baa751c135e68f72be400498191..24ec03c8db4ac73901a41291aa446f8686de657c 100644 (file)
@@ -15,3 +15,4 @@ jessie-remove-udebs.patch
 configure-with-corosync2.patch
 fix-changelog.patch
 fix-symbols.patch
+filter_zvols_in_lvm.conf.patch