Super User is a question and answer site for computer enthusiasts and power users. 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 would like to know how mdadm identifies physical disks of raid1 .

I think it is managed by uuids not device file like /dev/sdc2 /dev/sdd2.

But I can`t confirm such information of raid1.

share|improve this question

migrated from Feb 8 '12 at 10:50

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

Each Linux RAID volume (RAID-1 or otherwise) contains a superblock which, amongst other things, contains a UUID that is common between all the physical volumes underlying one array, and which is different from the UUID of any other array. For dissymmetric RAID arrangements (i.e. all but RAID-1), the volumes also contain information that tell mdadm which is which. When you tell mdadm to assemble an array, it looks for physical volumes which have the same UUID. You can tell it which physical volumes to look in, otherwise mdadm will scan your system; but the location of the physical volume (e.g. /dev/sdc2 vs /dev/sdd2) is irrelevant, only the UUID.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .