diff options
author | David Teigland <teigland@redhat.com> | 2022-07-25 13:50:43 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-02 12:20:07 -0500 |
commit | 377ed7d9bac948e1be97e78aa9f9e525e9af470d (patch) | |
tree | f9e3c65a68567c870121b97d689add5387128d4d /lib/cache | |
parent | 73b9a2805ca2f2c70f6f631b405f8fea3f72f23b (diff) | |
download | lvm2-2.03.14-6.el8.tar.gz |
apply multipath_component_detection=0 to duplicate PV handlinglvm2-2.03.14-6.el8rhel-8.7.0
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.)
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/lvmcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |