Comment 2 for bug 803737

Revision history for this message
Andrey (aol-nnov) wrote :

i ended up with the following solution:

as i have the only one array and it is not used for system boot, i've added AUTO -all to the /etc/mdadm/mdadm.conf

and created the file /etc/init/mounted-root.conf
mgr@nas:~$ cat /etc/init/mounted-root.conf

description "assemble MD with external bitmap"

start on mounted MOUNTPOINT=/
env MOUNTPOINT=/

task

script
 mdadm --stop /dev/md0
 mdadm --assemble --scan
end script

after that array assembles correctly with external bitmap on boot.

i'm not sure about the correctness of the solution, so, please comment!