[PATCH 6/6] Add function mdadm_no_degraded

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

 



This patch add new function to activate md containers/array.

For isw format if we use incremental adding disk to the container we need to add --no-degraded option to inhibits the startup of array unless alle expected disks are present in array.
commit 7ccf5f7e6f0e8b757fd17804dc30a5a23085e1e8
Author: Jacek Danecki <Jacek.Danecki@xxxxxxxxx>
Date:   Fri Apr 10 13:45:49 2009 -0400

    Add mdadm_no_degraded

diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
index 6cbaa68..d84575c 100644
--- a/storage/devicelibs/mdraid.py
+++ b/storage/devicelibs/mdraid.py
@@ -138,6 +138,20 @@ def mdadd(device):
                                 ["--incremental", 
                                  "--quiet",
                                  "--auto=md",
+                                device],
+                                stderr = "/dev/tty5",
+                                stdout = "/dev/tty5",
+                                searchPath=1)
+
+    if rc:
+        raise MDRaidError("mdadd failed for %s" % device)
+
+def mdadd_no_degraded(device):
+    ### FIXME: this should be merged with mdadd function
+    rc = iutil.execWithRedirect("mdadm",
+                                ["--incremental", 
+                                 "--auto=md",
+                                 "--no-degraded",
                                  device],
                                 stderr = "/dev/tty5",
                                 stdout = "/dev/tty5",
_______________________________________________
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