From 377ed7d9bac948e1be97e78aa9f9e525e9af470d Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mon, 25 Jul 2022 13:50:43 -0500 Subject: apply multipath_component_detection=0 to duplicate PV handling multipath_component_detection=0 has always applied to the filter-based component detection. Also apply this setting to the duplicate-PV handling which also eliminates multipath components (based on duplicate PVs having the same wwid.) --- lib/cache/lvmcache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/cache') diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index 61a2fee6d..04e9f0605 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -640,6 +640,9 @@ static int _all_multipath_components(struct cmd_context *cmd, struct lvmcache_in *dev_mpath = NULL; + if (!find_config_tree_bool(cmd, devices_multipath_component_detection_CFG, NULL)) + return 0; + /* This function only makes sense with more than one dev. */ if ((info && dm_list_empty(altdevs)) || (!info && (dm_list_size(altdevs) == 1))) { log_debug("Skip multipath component checks with single device for PVID %s", pvid); -- cgit v1.2.1