]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Stop managed arrays more carefully.
authorNeil Brown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:09 +0000 (16:37 +1000)
committerNeil Brown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:09 +0000 (16:37 +1000)
commitdaf7a3ce96e517360b0456c3a9cca0771b94462d
treee1b396121c4b719f912919ada33fa207ec0ae3f3
parent1eb252b8488bbdd62ad602561fe8a90ef9079271
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 <neilb@suse.de>
Manage.c
mdadm.c