[linux-lvm] Found duplicate PVs

Pedro Gonzalez Zamora pedroche5 at gmail.com
Tue Aug 12 14:10:22 UTC 2008


The messages "Found duplicate PVs" disappear when I add this line in
lvm.conf:

      filter = [ "a/sd[a-r]$/" , "r/.*/" ]

But I don't know  if it is a good solution?

Best

Pedro


2008/8/12 Bryn M. Reeves <bmr at redhat.com>

> -----BEGIN PGP SIGNED MESSAGE-----
> 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 :)
>
> Regards,
> Bryn.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFIoZK36YSQoMYUY94RAid3AKDFmEtVBuIBCKOhNJbsC70oVcRdzgCdFRQs
> BjW8XPFFatq0y8GpER6GI+c=
> =vplQ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20080812/62d313a7/attachment.htm>


More information about the linux-lvm mailing list