[rhel6-branch] Don't filter partitions on mpath devices in lvm (#885755)

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue May 13 21:19:32 UTC 2014


This is a new version of a patch I had to revert for 6.5, oops.

LVM should know to ignore individual partitions of active multipath
devices, so there's no need to explicitly filter them in anaconda.

Resolves: rhbz#885755
---
 storage/devicetree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 310f955..f8e2012 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1156,7 +1156,7 @@ class DeviceTree(object):
             # When we got here because the disk does not have a disklabel
             # format (ie a biosraid member), or because it is not
             # partitionable we want LVM to ignore this partition too
-            if disk.format.type != "disklabel" or not disk.partitionable:
+            if disk.format.type != "disklabel" or disk.format.type != "multipath_member" or not disk.partitionable:
                 lvm.lvm_cc_addFilterRejectRegexp(name)
             log.debug("ignoring partition %s" % name)
             return
-- 
1.8.3.1



More information about the anaconda-patches mailing list