From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Configure lvm2 with drbd
Date: Tue, 24 Apr 2007 11:40:13 +0100 [thread overview]
Message-ID: <462DDE8D.1070601@redhat.com> (raw)
In-Reply-To: <462DDAC5.20100@euddene.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mariano Gonzalvo wrote:
>
> /dev/md4 is the raid device over was configured drbd0.
>
> Why /dev/md4 it's taken as PV Name?
>
Hi Mariano,
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/.*/" ]
to:
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.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGLd6M6YSQoMYUY94RAtI8AKDFS6jYQQ4869RQQKy/qMYZEdjiagCfaKGP
te2AMpkzZ45lDQTMwXmyTgE=
=nRwl
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2007-04-24 10:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-24 10:24 [linux-lvm] Configure lvm2 with drbd Mariano Gonzalvo
2007-04-24 10:31 ` Patrick Caulfield
2007-04-24 10:45 ` Mariano Gonzalvo
2007-04-24 10:40 ` Bryn M. Reeves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=462DDE8D.1070601@redhat.com \
--to=breeves@redhat.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).