[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 4/5] Add 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: Re: [PATCH 4/5] Add mdadm_no_degraded
- Date: Fri, 12 Jun 2009 14:33:23 +0200
Dan Williams wrote:
Jacek Danecki wrote:
This patch adds new function used by activating md array for isw format.
+def mdadd_no_degraded(device):
+ ### FIXME: this should be merged with mdadd function
+ rc = iutil.execWithRedirect("mdadm",
+ ["--incremental",
+ "--auto=md",
The "auto" option is deprecated since all arrays are now partitionable.
Rewritten patch.
commit 427db25f6d57d72544b5e44d7d60fd0de4832857
Author: Jacek Danecki <Jacek Danecki intel com>
Date: Fri Jun 12 14:05:29 2009 -0400
Add function mdadm_no_degraded
diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
index 56fd626..6944a30 100644
--- a/storage/devicelibs/mdraid.py
+++ b/storage/devicelibs/mdraid.py
@@ -153,6 +153,19 @@ def mdadd(device):
rc = iutil.execWithRedirect("mdadm",
["--incremental",
"--quiet",
+ 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",
+ "--no-degraded",
device],
stderr = "/dev/tty5",
stdout = "/dev/tty5",
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]