<div dir="ltr"><br>The messages "Found duplicate PVs" disappear when I add this line in lvm.conf:<br><br>      filter = [ "a/sd[a-r]$/" , "r/.*/" ]<br><br>But I don't know  if it is a good solution?<br>
<br>Best<br><br>Pedro<br><br><br><div class="gmail_quote">2008/8/12 Bryn M. Reeves <span dir="ltr"><<a href="mailto:bmr@redhat.com">bmr@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="Ih2E3d"><br>
Bryan Kadzban wrote:<br>
> Bryn M. Reeves wrote:<br>
>>> broken (split) RAID1 mirror?<br>
><br>
> Alternately, software RAID1 -- either a dm-raid type setup (most onboard<br>
> "RAID controllers", and in fact almost every consumer "RAID" device) or<br>
> md?<br>
<br>
</div>That's exactly what I meant by a split/broken RAID1 mirror - either two<br>
disks being presented as SCSI/ATA devices when they contain an array or<br>
an array "controller" (fakeraid) using the wrong drivers. Unlikely to be<br>
MD since LVM2 already performs MD component detection (enabled by<br>
default iirc) and will use the MD device in preference to components.<br>
<div class="Ih2E3d"><br>
> You can control which devices get scanned by editing the "filter" option<br>
> in /etc/lvm/lvm.conf -- you can make it only include the RAID array<br>
> device (/dev/mapper/whatever or /dev/mdX), instead of the member drives<br>
> (/dev/sdXY).<br>
<br>
</div>Shouldn't be needed for MD devices - just make sure you have:<br>
<br>
devices {<br>
[...]<br>
    md_component_detection = 1<br>
}<br>
<br>
Somewhere in your lvm.conf. As you say, this is most common with dmraid<br>
 since the "controller" is just a regular ATA part with some BIOS goop<br>
and a bit of metadata on the disks but you can get the same sort of<br>
behavior with "real" RAID controllers in some cases.<br>
<div class="Ih2E3d"><br>
> (And this is probably just a special case of the "broken (split) RAID1<br>
> mirror" possibility that Bryn was talking about.)<br>
<br>
</div>Yup :)<br>
<br>
Regards,<br>
Bryn.<br>
<div class="Ih2E3d">-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.7 (GNU/Linux)<br>
</div>Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFIoZK36YSQoMYUY94RAid3AKDFmEtVBuIBCKOhNJbsC70oVcRdzgCdFRQs<br>
BjW8XPFFatq0y8GpER6GI+c=<br>
=vplQ<br>
<div><div></div><div class="Wj3C7c">-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
</div></div></blockquote></div><br></div>