Thread (1 message) 1 message, 1 author, 2006-07-03

Re: How does md determine which partitions to use in RAID1 when DEVICE partitions is specified

From: Neil Brown <hidden>
Date: 2006-07-03 22:40:03

On Monday July 3, bkbonner@gmail.com wrote:
I have Fedora Core 5 installed with mirroring on the Boot partition
and root partition.  I created a Logical Volume Group on the mirrored
root partition.

How does md figure out which partitions are actually specified.  It
says it stores the uuid in the superblock, but I can't seem to figure
out where this is, or how to get it.  is it in the partition, or
volume.
The superblock is near the end of whatever you told md to use for the
array.
 From your 'mdadm --detail' output, I see that means /dev/sda1
/dev/sdb1 /dev/sda2 etc.  The superblock for each partition is near
the end of each partition.
The reason I'm asking this, I'd like to add two USB 2.0 drives that
are mirrored, and I would specify the device name (/dev/sdd, /dev/sde)
for the ARRAY, but I found that the allocation of these device names
is dependent upon when the drive is inserted into the USB.
You don't need to care about the device name.  Just add the uuid
information to mdadm.conf.  Providing the devices are plugged in,
mdadm will find them.
I'm going to ask if there is a way to "lock" the volume names for
devices (I'm thinking by UUID) for USB devices in partitions.
'udev' might have functionality to do this.  But you don't really need
it with mdadm.

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help