[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 6/6] Add function mdadm_no_degraded
- From: Jacek Danecki <Jacek Danecki intel com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH 6/6] Add function mdadm_no_degraded
- Date: Fri, 10 Apr 2009 15:40:47 +0200
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 intel com>
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",
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]