From: Tore Anderson <tore@linpro.no>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Use LVM on /dev/mapper/diskname and iSCSI
Date: Mon, 19 Nov 2007 19:43:59 +0100 [thread overview]
Message-ID: <4741D96F.7080502@linpro.no> (raw)
In-Reply-To: <1195484847.6074.16.camel@sanderbal>
* S. J. van Harmelen
> Thanks for your help!
>
> I executed the pvs command and it did find a few partitions. I use
> iSCSI to share the LUN's to a XenSource server, and XenSource creates
> the PV's and LV's in order to provision VM's. Didn't think of that,
> but that's on the disk of course.
>
> Is there any way to configure snapshots for these already created LVM
> partitions? Or do I have to whipe the disk clean (rather not do
> that, but if I have to it can be done), then create the pv's and lv's
> and then share the lv's true iSCSI?
>
> In that case XenSource will again create pv's and lv's in the shared
> lv. Ain't that a problem?
You really need a filter line in /etc/lvm/lvm.conf, to keep LVM from
claiming 1) individual paths to a dm-multipath controlled LUN, and 2)
LUNs that are PVs used by the LVM implementation in your domUs.
You don't want LVM to be claiming the paths directly, because you'd no
longer have any redundancy - it will override dm-multipath. You also
don't want the LVM implementation in your dom0 to be using the same
block device as LVM in your domU as physical volumes, as LVM is designed
to have exclusive access to its PVs (you might get around this with
CLVM, though).
Do I understand correctly if you have one LUN that contains your domO
(having its file systems in LVs), and several LUNs that contain your
domUs, which again are PVs that are supposed to be used by your domU
kernels?
If so you will want to keep your dom0 from claiming the domU PVs. Use a
filter line that accepts only the multipath'ed volume that contains the
dom0 installation, and drop the rest. For instance:
filter = [ "a|^/dev/mapper/domzero$", "r|.*" ]
...assuming your dom0 data volume is called "domzero" in multipath.conf.
Regards
--
Tore Anderson
next prev parent reply other threads:[~2007-11-19 18:43 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 13:56 Use LVM on /dev/mapper/diskname S. J. van Harmelen
2007-11-19 14:06 ` Tore Anderson
2007-11-19 15:07 ` Use LVM on /dev/mapper/diskname and iSCSI S. J. van Harmelen
2007-11-19 18:43 ` Tore Anderson [this message]
2007-11-19 21:19 ` S. J. van Harmelen
2007-11-20 14:14 ` Chip Coldwell
2007-11-20 14:22 ` S. J. van Harmelen
2007-11-19 18:50 ` malahal
2007-11-19 21:16 ` S. J. van Harmelen
2007-11-19 22:36 ` malahal
2007-11-20 9:38 ` S. J. van Harmelen
2007-11-20 7:36 ` Tore Anderson
2007-11-20 9:36 ` S. J. van Harmelen
2007-11-20 9:49 ` Tore Anderson
2007-11-20 10:10 ` Possible bug in multipathd (getting a segfault) S. J. van Harmelen
2007-11-20 10:21 ` Tore Anderson
2007-11-20 10:34 ` S. J. van Harmelen
2007-11-20 11:15 ` Tore Anderson
2007-11-20 11:25 ` S. J. van Harmelen
2007-11-20 11:28 ` S. J. van Harmelen
2007-11-26 20:40 ` S. J. van Harmelen
2007-11-19 16:57 ` Use LVM on /dev/mapper/diskname and iSCSI S. J. van Harmelen
2007-11-19 17:22 ` Use LVM on /dev/mapper/diskname malahal
2007-11-19 18:13 ` S. J. van Harmelen
2007-11-19 18:16 ` S. J. van Harmelen
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=4741D96F.7080502@linpro.no \
--to=tore@linpro.no \
--cc=dm-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.