[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: questions about LVM on RAID1 array

Dave Harrison <David.Harrison@sensorynetworks.com> wrote:

> I've been setting up LVM on top of a RAID1 array.
> So I mkraid to create /dev/md0, and then I pvcreate, vgcreate and
> lvcreate using /dev/md0 as the physical device to stack on top of.
> Having done all that, I then create an ext2 fs on the lv I've created.
> All seems to work fine ... however ... pvdisplay shows me something I
> really didn't expect ...

> It shows me that the physical volume undelying my lv is /dev/hdd (one of
> the two disks that form /dev/md0).  Now the question becomes, is it just
> a strange accident that it knows this, or is it simply drilling through
> the raid and seeing the disks instead of the RAID1 device /dev/md0 ?

The parameter "md_component_detection" in
/etc/lvm/lvm.conf is set to "0" in Debian - but
should be "1" in order to not detect the parts of a
software RAID but the md-Devices. 

There is no safe distance.

Reply to: