raid is activated auto-read-only until first write. So a rebuild is only
started when writing something to the RAID. With this patch it enters
read/write mode directly. Thanks to Caspar Smit.
$cmd .= " $d";
}
local $out = &backquote_logged("$cmd 2>&1 </dev/null");
+
+ # After creating a RAID set mode to read/write.
+ local $cmd = "mdadm --readwrite $_[0]->{'value'}";
+ local $out = &backquote_logged("$cmd 2>&1 </dev/null");
+
return $? ? &text('emdadmcreate', "<pre>$out</pre>") : undef;
}
}