aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Orti Alcaine <jortialc@redhat.com>2022-06-06 16:35:51 +0200
committerJake Hunsaker <jhunsake@redhat.com>2022-06-07 14:44:34 -0400
commit7d1ee59fc659467e6860e72322e976ddc5c17db3 (patch)
tree308c5c01f3c68db8c1423332595ff76b6df76aec
parentfb72347a3f32f36d68f4a815fe31add87e016f11 (diff)
downloadsos-7d1ee59fc659467e6860e72322e976ddc5c17db3.tar.gz
[vdsm] Set LVM option use_devicesfile=0
Since RHV 4.4 SP1, vdsm configures LVM to use devicesfile, causing that the LVM filter configuration used by sos is ignored. This change disables the use of the devicesfile, so that the information of the devices used for RHV storage domains can be collected. Fixes: RHBZ#2093993 Signed-off-by: Juan Orti <jortialc@redhat.com>
-rw-r--r--sos/report/plugins/vdsm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/vdsm.py b/sos/report/plugins/vdsm.py
index ee5befbb..146d223c 100644
--- a/sos/report/plugins/vdsm.py
+++ b/sos/report/plugins/vdsm.py
@@ -29,7 +29,8 @@ import re
# use_lvmetad is set to 0 in order not to show cached, old lvm metadata.
# use_lvmetad=0
#
-# preferred_names and filter config values are set to capture Vdsm devices.
+# preferred_names, use_devicesfile and filter config values are set to
+# capture Vdsm devices.
# preferred_names=[ '^/dev/mapper/' ]
# filter=[ 'a|^/dev/mapper/.*|', 'r|.*|' ]
LVM_CONFIG = """
@@ -43,6 +44,7 @@ devices {
ignore_suspended_devices=1
write_cache_state=0
disable_after_error_count=3
+ use_devicesfile=0
filter=["a|^/dev/disk/by-id/dm-uuid-mpath-|", "r|.+|"]
}
"""