mdadm software RAID doesn't load at boot

make sure your partitions are of type fd: Linux raid autodetect. Also, create the /etc/mdadm/mdadm.conf file, the easiest way is with:

mdadm --detail --scan > /etc/mdadm/mdadm.conf

after sucessfully building the array.