Displaying 2 results from an estimated 2 matches for "c04ee45".
Did you mean:
904ee42
2018 Jan 14
0
[PATCH v2 1/3] appliance: init: Avoid running degraded md devices
...nd : direct backend
------------------------------------------------
master : 835.2ms ±1.1ms : 670.4ms ±0.3ms
master+patch : 837.7ms ±2.4ms : 671.8ms ±0.2ms
---
appliance/init | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/appliance/init b/appliance/init
index c04ee45..6a61a8d 100755
--- a/appliance/init
+++ b/appliance/init
@@ -130,14 +130,16 @@ if test "$guestfs_network" = 1; then
fi
fi
-# Scan for MDs.
-mdadm -As --auto=yes --run
+# Scan for MDs but don't run arrays unless all expected drives are present
+mdadm -As --auto=yes --no-degrad...
2018 Jan 12
5
[PATCH 1/1] appliance: init: Avoid running degraded md devices
...++++++
tests/md/test-md-and-lvm-devices.sh | 138 ++++++++++++++++++++++++++++++++++++
4 files changed, 230 insertions(+), 1 deletion(-)
create mode 100755 tests/md/test-lvm-on-md-device.sh
create mode 100755 tests/md/test-md-and-lvm-devices.sh
diff --git a/appliance/init b/appliance/init
index c04ee45..4284be0 100755
--- a/appliance/init
+++ b/appliance/init
@@ -131,13 +131,17 @@ if test "$guestfs_network" = 1; then
fi
# Scan for MDs.
-mdadm -As --auto=yes --run
+# Inhibits the startup of array unless all expected drives are present.
+mdadm -As --no-degraded
# Scan for LVM.
mod...