[PATCH] Try again to set up LVs when we've just added a new PV to the VG.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If we do find all of the PVs this will cause the LVs to be
activated, which will allow us to probe them.
---
 storage/devicetree.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index e974717..976d5d4 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1174,6 +1174,11 @@ class DeviceTree(object):
                 vg_device = self.getDeviceByName(vg_name)
                 if vg_device:
                     vg_device._addDevice(device)
+                    for lv in vg_device.lvs:
+                        try:
+                            lv.setup()
+                        except DeviceError as e:
+                            log.info("setup of %s failed: %s" % (lv.name, e))
                 else:
                     try:
                         vg_uuid = udev_device_get_vg_uuid(info)
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux