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:
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?
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:
Thanks alot Bert. It all boils down to "persistent blocks" on raid members!
|All times are GMT -5. The time now is 05:20 AM.|