From: Neil Brown Date: Fri, 18 Jul 2008 06:37:09 +0000 (+1000) Subject: Stop managed arrays more carefully. X-Git-Tag: mdadm-3.0-devel1~103 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=daf7a3ce96e517360b0456c3a9cca0771b94462d;hp=daf7a3ce96e517360b0456c3a9cca0771b94462d Stop managed arrays more carefully. If an array is being managed by mdmon, then just write "inactive" to stop it, and let mdmon do the final "clear". This makes sure mdmon has a chance to read the final state and update the metadata properly. After writing "inactive" with use "ping_monitor" to synchronise with mdadm, then STOP the array just in case it is still running, else we will get into an infinite loop in "mdadm -Ss". Signed-off-by: Neil Brown ---