From 3c5c63b75dfc2e67d6f473e12b7b9f100d557023 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 9 Jul 2009 19:38:13 +0200 Subject: 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. --- storage/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit