[pve-devel] [PATCH lvm v2 1/2] filter zvols and pve vg in lvm.conf
Dominik Csapak
d.csapak at proxmox.com
Wed Aug 24 16:23:51 CEST 2016
the filter syntax is a regex, so use .* instead of *
also filter /dev/mapper/pve, our default volume group
(because of nested lvm)
and use the global_filter setting for this
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
use only global_filter because we do not need both
patchdir/filter_zvols_and_pve_vg_in_lvm.conf.patch | 12 ++++++++++++
patchdir/filter_zvols_in_lvm.conf.patch | 14 --------------
patchdir/series | 2 +-
3 files changed, 13 insertions(+), 15 deletions(-)
create mode 100644 patchdir/filter_zvols_and_pve_vg_in_lvm.conf.patch
delete mode 100644 patchdir/filter_zvols_in_lvm.conf.patch
diff --git a/patchdir/filter_zvols_and_pve_vg_in_lvm.conf.patch b/patchdir/filter_zvols_and_pve_vg_in_lvm.conf.patch
new file mode 100644
index 0000000..d6c2439
--- /dev/null
+++ b/patchdir/filter_zvols_and_pve_vg_in_lvm.conf.patch
@@ -0,0 +1,12 @@
+--- a/conf/example.conf.in
++++ b/conf/example.conf.in
+@@ -118,6 +118,9 @@
+ # 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)
++ global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|" ]
++
+ # By default we accept every block device:
+ # filter = [ "a/.*/" ]
+
diff --git a/patchdir/filter_zvols_in_lvm.conf.patch b/patchdir/filter_zvols_in_lvm.conf.patch
deleted file mode 100644
index d7232fc..0000000
--- a/patchdir/filter_zvols_in_lvm.conf.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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/.*/" ]
-
diff --git a/patchdir/series b/patchdir/series
index 24ec03c..e5cbcdc 100644
--- a/patchdir/series
+++ b/patchdir/series
@@ -15,4 +15,4 @@ jessie-remove-udebs.patch
configure-with-corosync2.patch
fix-changelog.patch
fix-symbols.patch
-filter_zvols_in_lvm.conf.patch
+filter_zvols_and_pve_vg_in_lvm.conf.patch
--
2.1.4
More information about the pve-devel
mailing list