Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 6 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
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


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.