Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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