[linux-lvm] Configure lvm2 with drbd
Bryn M. Reeves
breeves at redhat.com
Tue Apr 24 10:40:13 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Mariano Gonzalvo wrote:
> /dev/md4 is the raid device over was configured drbd0.
> Why /dev/md4 it's taken as PV Name?
LVM2 identifies devices using labels written on the disks. So, if md4 is
the underlying device for your drbd devices, when lvm2 scans /dev
looking for labels it finds the label on md4 first and uses that.
You can control this using lvm2's filtering options.
See the man page for lvm.conf for the full details, but editing
/etc/lvm/lvm.conf and changing the filter line from:
filter = [ "a/.*/" ]
filter = [ "a|/dev/drdb|", "r|/dev/md|", "a|.*|" ]
Should accept all drdb devices as physical volumes, reject any software
raid (md) devices, and accept everything else.
This should work if you only have PVs on drdb or other device types and
not on any plain md devices. If you have a mix of the types you will
need to create a more specific filter line for your system.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the linux-lvm