From 07113beea3c9ef6405fb66b4ae710553f59a45ca Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 11 Nov 2011 15:11:08 +0000 Subject: Do not scan device if it is part of active multipath. Add filter which tries to check if scanned device is part of active multipath. Firstly, only SCSI major number devices are handled in filter. Then it checks if device has exactly one holder (in sysfs) and if it is device-mapper device and DM-UUID is prefixed by "MPATH-". If so, this device is filtered out. The whole filter can be switched off by setting mpath_component_detection in lvm.conf. https://bugzilla.redhat.com/show_bug.cgi?id=597010 Signed-off-by: Milan Broz --- doc/example.conf.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/example.conf.in') diff --git a/doc/example.conf.in b/doc/example.conf.in index ed15db6c..2dd18089 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -103,6 +103,11 @@ devices { # 1 enables; 0 disables. sysfs_scan = 1 + # By default, LVM2 will ignore devices used as component paths + # of device-mapper multipath devices. + # 1 enables; 0 disables. + multipath_component_detection = 1 + # By default, LVM2 will ignore devices used as components of # software RAID (md) devices by looking for md superblocks. # 1 enables; 0 disables. -- cgit