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

[PATCH 1/3] Don't stop mdraid containers or their arrays (#532971)



Since BIOS RAID sets (containers in mdraid terminology) never change
there is no need to stop them and later restart them. Not stopping
(and thus also not starting) them also works around bug 523334, which
is the cause of bug 532971.
---
 storage/devices.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 50ae804..28e031c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2517,6 +2517,12 @@ class MDRaidArrayDevice(StorageDevice):
             self.format.teardown()
             udev_settle(timeout=10)
 
+        # Since BIOS RAID sets (containers in mdraid terminology) never change
+        # there is no need to stop them and later restart them. Not stopping
+        # (and thus also not starting) them also works around bug 523334
+        if self.type == "mdcontainer" or self.devices[0].type == "mdcontainer":
+            return
+
         # We don't really care what the array's state is. If the device
         # file exists, we want to deactivate it. mdraid has too many
         # states.
-- 
1.6.5.2


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