summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 5270d2218..8e551a888 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -191,7 +191,10 @@ sub detect_during_install {
}
detect_during_install_once(@parts);
detect_during_install_once(@parts) if active_mds(); #- try again to detect RAID 10
+ stop_inactive_mds();
+}
+sub stop_inactive_mds() {
foreach (inactive_mds()) {
log::l("$_ is an inactive md, we stop it to ensure it doesn't busy devices");
run_program::run('mdadm', '--stop', devices::make($_));