Another better solution is to edit the /etc/mdadm/mdadm.conf file and add your ARRAY variables
root@serv02:~# cat /etc/mdadm/mdadm.conf | grep ARRAY
ARRAY /dev/md1 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md2 devices=/dev/sda2,/dev/sdb2
Then just rebuild the initramfs of the kernel you want to run, the easiest is to reinstall linux-image using apt(itude).
This solved the problem on our machine.
But it still doesn't explain why the array is not autodetected...
Another better solution is to edit the /etc/mdadm/ mdadm.conf file and add your ARRAY variables mdadm.conf | grep ARRAY /dev/sda1, /dev/sdb1 /dev/sda2, /dev/sdb2
root@serv02:~# cat /etc/mdadm/
ARRAY /dev/md1 devices=
ARRAY /dev/md2 devices=
Then just rebuild the initramfs of the kernel you want to run, the easiest is to reinstall linux-image using apt(itude).
This solved the problem on our machine.
But it still doesn't explain why the array is not autodetected...