|
|
4b82b4 |
From 7d1ee59fc659467e6860e72322e976ddc5c17db3 Mon Sep 17 00:00:00 2001
|
|
|
4b82b4 |
From: Juan Orti Alcaine <jortialc@redhat.com>
|
|
|
4b82b4 |
Date: Mon, 6 Jun 2022 16:35:51 +0200
|
|
|
4b82b4 |
Subject: [PATCH] [vdsm] Set LVM option use_devicesfile=0
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Since RHV 4.4 SP1, vdsm configures LVM to use devicesfile, causing that
|
|
|
4b82b4 |
the LVM filter configuration used by sos is ignored.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
This change disables the use of the devicesfile, so that the information
|
|
|
4b82b4 |
of the devices used for RHV storage domains can be collected.
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Fixes: RHBZ#2093993
|
|
|
4b82b4 |
|
|
|
4b82b4 |
Signed-off-by: Juan Orti <jortialc@redhat.com>
|
|
|
4b82b4 |
---
|
|
|
4b82b4 |
sos/report/plugins/vdsm.py | 4 +++-
|
|
|
4b82b4 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
4b82b4 |
|
|
|
4b82b4 |
diff --git a/sos/report/plugins/vdsm.py b/sos/report/plugins/vdsm.py
|
|
|
4b82b4 |
index ee5befbb1..146d223c2 100644
|
|
|
4b82b4 |
--- a/sos/report/plugins/vdsm.py
|
|
|
4b82b4 |
+++ b/sos/report/plugins/vdsm.py
|
|
|
4b82b4 |
@@ -29,7 +29,8 @@
|
|
|
4b82b4 |
# use_lvmetad is set to 0 in order not to show cached, old lvm metadata.
|
|
|
4b82b4 |
# use_lvmetad=0
|
|
|
4b82b4 |
#
|
|
|
4b82b4 |
-# preferred_names and filter config values are set to capture Vdsm devices.
|
|
|
4b82b4 |
+# preferred_names, use_devicesfile and filter config values are set to
|
|
|
4b82b4 |
+# capture Vdsm devices.
|
|
|
4b82b4 |
# preferred_names=[ '^/dev/mapper/' ]
|
|
|
4b82b4 |
# filter=[ 'a|^/dev/mapper/.*|', 'r|.*|' ]
|
|
|
4b82b4 |
LVM_CONFIG = """
|
|
|
4b82b4 |
@@ -43,6 +44,7 @@
|
|
|
4b82b4 |
ignore_suspended_devices=1
|
|
|
4b82b4 |
write_cache_state=0
|
|
|
4b82b4 |
disable_after_error_count=3
|
|
|
4b82b4 |
+ use_devicesfile=0
|
|
|
4b82b4 |
filter=["a|^/dev/disk/by-id/dm-uuid-mpath-|", "r|.+|"]
|
|
|
4b82b4 |
}
|
|
|
4b82b4 |
"""
|