Re: [PATCH] Try to activate an existing md array after adding each member.

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

 



Looks good,

Regards,

Hans


David Lehman wrote:
Once the array has been activated the new members should get added
to the active array as we add them to the MDRaidArrayDevice. We
just need to start the array for that to happen.
---
 storage/devicetree.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 850a220..f7582ac 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1181,6 +1181,11 @@ class DeviceTree(object):
                                                  uuid=md_uuid,
                                                  exists=True,
                                                  parents=[device])
+                    try:
+                        md_array.setup()
+                    except (DeviceError, MDRaidError) as e:
+                        log.info("setup of md array %s failed: %s"
+                                    % (md_array.name, e))
                     self._addDevice(md_array)
             elif format.type == "dmraidmember":
                 major = udev_device_get_major(info)

_______________________________________________
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