I'm using mdadm to create a raid1 mirror across two disks. I can create my /dev/md5 array perfectly using the tools, but it does not automatically reload my /dev/md5 when I restart, I need to manually recreate the array.

Am I missing something obvious here?

link|improve this question
feedback

1 Answer

up vote 5 down vote accepted

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.

link|improve this answer
+1 I've had to do this before also. – Coops Apr 29 '10 at 15:41
2  
you should probably append (>>) to mdadm.conf. I think this is also required if you are using whole disks instead of partitions. – hometoast Apr 29 '10 at 16:16
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.