From 7d1ee59fc659467e6860e72322e976ddc5c17db3 Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Mon, 6 Jun 2022 16:35:51 +0200 Subject: [PATCH] [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 --- sos/report/plugins/vdsm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/vdsm.py b/sos/report/plugins/vdsm.py index ee5befbb1..146d223c2 100644 --- a/sos/report/plugins/vdsm.py +++ b/sos/report/plugins/vdsm.py @@ -29,7 +29,8 @@ # 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 @@ 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|.+|"] } """