summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-07-09 19:38:13 +0200
committerHans de Goede <hdegoede@redhat.com>2009-07-15 19:34:43 +0200
commit3c5c63b75dfc2e67d6f473e12b7b9f100d557023 (patch)
treeb96ad57f72a63ec8df3f864b383873442ee9c577
parent4054aeedcb3485a16cd83d3753e2b3fe62e850c8 (diff)
downloadanaconda-3c5c63b75dfc2e67d6f473e12b7b9f100d557023.tar.gz
anaconda-3c5c63b75dfc2e67d6f473e12b7b9f100d557023.tar.xz
anaconda-3c5c63b75dfc2e67d6f473e12b7b9f100d557023.zip
Call mdadm -I with --no-degraded for all disks but the last
We do not want to bring arrays up (and esp not use, so not scan them) in degraded mode, so add --no-degraded to the mdadm invocation. Note we do not add --no-degraded to the mdadm invocation for the last disk of the set, because doing so assembles the array in an inactive (and thus unusable) state.
-rw-r--r--storage/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py
index d8b437800..02c694581 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2443,7 +2443,7 @@ class MDRaidArrayDevice(StorageDevice):
device.setup()
udev_settle(timeout=10)
try:
- mdraid.mdadd(device.path)
+ mdraid.mdadd(device.path, len(self.devices) < self.memberDevices)
except MDRaidError as e:
log.warning("failed to add member %s to md array %s: %s"
% (device.path, self.path, e))