Changelog
mdadm (3.2.5-4+mdmon) experimental; urgency=low
* fix `/etc/init.d/mdadm-raid status' inverse logic (Closes: #686100)
* /etc/init.d/mdadm: change RUNDIR to /run instead of /var/run.
Mdadm itself uses /run internally, we properly depend on initscripts
version which creates /run, and the initscript itself is started
after local_fs is processed, so this is merely a no-op, but let's
do it for consistency.
* Fix 'enough' function for RAID10, to prevent starting of a RAID10
array which does not have required minimum of component devices.
(Closes: #691668).
* fix segfaults in Detail() - mdadm --detail may segfault if a drive
has been removed from the array (Closes: #691670)
* super0: do not override uuid with homehost. The bug prevented
re-creating an array with v0.90 superblock with the specified uuid
when homehost is also specified. (Closes: #686703)
* several fixes for mdmon argument processing (Closes: #691671):
- allow --takeover when original was started with --offroot
- fix arg parsing.
- fix arg processing for -a
* Changes based on a patch by Miquel van Smoorenburg (Closes: #684708):
- install mdmon in udeb and initramfs, so imsm arrays can work.
mdadm runs mdmon automatically when needed (currently for imsm
arrays), and mdmon is required to make such arrays read-write
(they're read-only by default) so merely presence of mdmon is
enough to be able to use imsm arrays.
- /etc/init.d/mdadm start: if a mdmon pidfile is found in /run/mdadm,
restart mdmon (--takeover --all)
- /etc/init.d/mdadm stop: link pidfiles of mdmon processes into
/run/sendsigs.omit.d, and make sure that happens before sendsigs runs.
- stop mdadm before sendsigs, so that the above code works
- add script mdadm-waitidle that runs just before reboot/halt.
For each array that is still running, it sets sync_action to idle,
and uses mdadm --wait-clean to wait for all arrays to go idle
(it has a short timeout).
-- Michael Tokarev <email address hidden> Sat, 20 Oct 2012 19:20:12 +0400