-   Linux - Newbie (
-   -   Reassembling a raid device (

geek.ksa 10-31-2009 05:18 AM

Reassembling a raid device

I have a question that has been puzzling me since last night. I had a raid device /dev/md0 configured with raid 1 ( two devices). I stopped the array (mdadm -S /dev/md0).. If you look at /proc/mdstat, the device is not active, nothing in there.

So, To assemble the array, I did:


mdadm -A /dev/md0 /dev/hda6 /dev/hda7
The raid device is now assembled and active.

The question is: how could linux have known about what the raid level is and other raid configuration given that I had no raid configuration file?

I was thinking that such data is stored on the disks somewhere! or something like that.

Could someone help figure this out?

bertl 10-31-2009 05:08 PM

This information is kept in a small block of meta information at the start of members of a raid set. Read about it in the good old software raid howto:

.. and there's an entry here:


geek.ksa 11-01-2009 03:21 AM

Thanks alot Bert. It all boils down to "persistent blocks" on raid members!

All times are GMT -5. The time now is 09:54 PM.