From d1aacae0f71b6eabaedd49df10a4d978afdbfa53 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 21 Feb 2024 11:08:02 -0600 Subject: [PATCH] lvm.conf: update scan_lvs description to better reflect the devices file existence, and to mention layered autoactivation in lvm udev rules. --- lib/config/config_settings.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h index d5ca535fa..3b7ae4ed9 100644 --- a/lib/config/config_settings.h +++ b/lib/config/config_settings.h @@ -394,17 +394,12 @@ cfg(devices_sysfs_scan_CFG, "sysfs_scan", devices_CFG_SECTION, CFG_DEFAULT_COMME "present on the system. sysfs must be part of the kernel and mounted.)\n") cfg(devices_scan_lvs_CFG, "scan_lvs", devices_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, DEFAULT_SCAN_LVS, vsn(2, 2, 182), NULL, 0, NULL, - "Scan LVM LVs for layered PVs, allowing LVs to be used as PVs.\n" - "When 1, LVM will detect PVs layered on LVs, and caution must be\n" - "taken to avoid a host accessing a layered VG that may not belong\n" - "to it, e.g. from a guest image. This generally requires excluding\n" - "the LVs with device filters. Also, when this setting is enabled,\n" - "every LVM command will scan every active LV on the system (unless\n" - "filtered), which can cause performance problems on systems with\n" - "many active LVs. When this setting is 0, LVM will not detect or\n" - "use PVs that exist on LVs, and will not allow a PV to be created on\n" - "an LV. The LVs are ignored using a built in device filter that\n" - "identifies and excludes LVs.\n") + "Allow LVM LVs to be used as PVs. When enabled, LVM commands will\n" + "scan active LVs to look for other PVs. Caution is required to\n" + "avoid using PVs that belong to guest images stored on LVs.\n" + "When enabled, the LVs scanned should be restricted using the\n" + "devices file or the filter. This option does not enable autoactivation\n" + "of layered VGs, which requires editing LVM udev rules (see LVM_PVSCAN_ON_LVS.)\n") cfg(devices_multipath_component_detection_CFG, "multipath_component_detection", devices_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, DEFAULT_MULTIPATH_COMPONENT_DETECTION, vsn(2, 2, 89), NULL, 0, NULL, "Ignore devices that are components of DM multipath devices.\n")