[linux-lvm] Found duplicate PVs

Bryn M. Reeves bmr at redhat.com
Tue Aug 12 13:40:07 UTC 2008

Hash: SHA1

Bryan Kadzban wrote:
> Bryn M. Reeves wrote:
>>> broken (split) RAID1 mirror?
> Alternately, software RAID1 -- either a dm-raid type setup (most onboard
> "RAID controllers", and in fact almost every consumer "RAID" device) or
> md?

That's exactly what I meant by a split/broken RAID1 mirror - either two
disks being presented as SCSI/ATA devices when they contain an array or
an array "controller" (fakeraid) using the wrong drivers. Unlikely to be
MD since LVM2 already performs MD component detection (enabled by
default iirc) and will use the MD device in preference to components.

> You can control which devices get scanned by editing the "filter" option
> in /etc/lvm/lvm.conf -- you can make it only include the RAID array
> device (/dev/mapper/whatever or /dev/mdX), instead of the member drives
> (/dev/sdXY).

Shouldn't be needed for MD devices - just make sure you have:

devices {
    md_component_detection = 1

Somewhere in your lvm.conf. As you say, this is most common with dmraid
 since the "controller" is just a regular ATA part with some BIOS goop
and a bit of metadata on the disks but you can get the same sort of
behavior with "real" RAID controllers in some cases.

> (And this is probably just a special case of the "broken (split) RAID1
> mirror" possibility that Bryn was talking about.)

Yup :)

Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org


More information about the linux-lvm mailing list