All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] creating pv's on LVM's for virtual guests
@ 2011-05-09 20:38 Steve Shorter
  2011-05-09 21:40 ` allan
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Shorter @ 2011-05-09 20:38 UTC (permalink / raw)
  To: linux-lvm

Howdy!

	I am setting up virtual guests to have a LVM created
from the host. It would be good to use LVM's in the
guest also.. for easy volume expansion etc...

ie. I am creating pv's/vg's/lvms on top of LVM's. It *seems* to
work but some of the userland tools need the option -ff

	Does anybody see any issues doing this?

	thanx - steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] creating pv's on LVM's for virtual guests
  2011-05-09 20:38 [linux-lvm] creating pv's on LVM's for virtual guests Steve Shorter
@ 2011-05-09 21:40 ` allan
  2011-05-10 18:36   ` Steve Shorter
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: allan @ 2011-05-09 21:40 UTC (permalink / raw)
  To: LVM general discussion and development

Hi Steve,

I've had mixed results doing that very thing. Two servers perform very differently.
One mach, an HP DL380G6 w/ dual quad core Zeon and 6 146G disks installed with CentOS 5.5 stock xen, lvm, etc. performs 
very well. Another machine intended as a low class server, a desktop quad core AMD, 4 SATA disks installed with stock 
CentOS 5.5 same as first mach, has issues with disk perfomance on every DomU - writes are 1/10 the rate of Dom0 -- I'm 
still troubleshooting it.
I see no problem with using LVM on Dom0, carving it up and offering to DomU virtuals and the virtuals using LVM for 
storage. One thing to avoid: do not duplicate an LVM names within the entire machine. i.e. installer, when told to use 
LVM, will create a vg of a specific name. If this name is not overridden, and you create multiple DomUs with same 
process the VG name will be duplicated (as well as the LV names). Avoid name duplication.
I hope this helps.

Allan

Steve Shorter wrote:
> Howdy!
> 
> 	I am setting up virtual guests to have a LVM created
> from the host. It would be good to use LVM's in the
> guest also.. for easy volume expansion etc...
> 
> ie. I am creating pv's/vg's/lvms on top of LVM's. It *seems* to
> work but some of the userland tools need the option -ff
> 
> 	Does anybody see any issues doing this?
> 
> 	thanx - steve
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] creating pv's on LVM's for virtual guests
  2011-05-09 21:40 ` allan
@ 2011-05-10 18:36   ` Steve Shorter
  2011-05-11 21:35   ` Brem Belguebli
  2011-05-12  3:53   ` Christopher Cox
  2 siblings, 0 replies; 5+ messages in thread
From: Steve Shorter @ 2011-05-10 18:36 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, May 09, 2011 at 03:40:08PM -0600, allan wrote:
> Hi Steve,
>
> I've had mixed results doing that very thing. Two servers perform very differently.
> One mach, an HP DL380G6 w/ dual quad core Zeon and 6 146G disks installed 
> with CentOS 5.5 stock xen, lvm, etc. performs very well. Another machine 
> intended as a low class server, a desktop quad core AMD, 4 SATA disks 
> installed with stock CentOS 5.5 same as first mach, has issues with disk 
> perfomance on every DomU - writes are 1/10 the rate of Dom0 -- I'm still 
> troubleshooting it.
> I see no problem with using LVM on Dom0, carving it up and offering to 
> DomU virtuals and the virtuals using LVM for storage. One thing to avoid: 
> do not duplicate an LVM names within the entire machine. i.e. installer, 
> when told to use LVM, will create a vg of a specific name. If this name 
> is not overridden, and you create multiple DomUs with same process the VG 
> name will be duplicated (as well as the LV names). Avoid name 
> duplication.
> I hope this helps.
>
> Allan


	This is what I do on the host


lvcreate --name ${DOMAIN} --size ${VSIZE}G ${HOST} || exit 2

pvcreate -y -ff /dev/${HOST}/${DOMAIN} || exit 3

vgcreate -y -ff -s32m ${DOMAIN} /dev/${HOST}/${DOMAIN} || exit 4

lvcreate --name data --size ${DISKSIZE} ${DOMAIN} || exit 5

lvcreate --name swap -l 100%FREE ${DOMAIN} || exit 6

mkfs.ext3 /dev/${DOMAIN}/data || exit 7

mkswap /dev/${DOMAIN}/swap || exit 8

	I pass /dev/${HOST}/${DOMAIN} to the quest, and it sees 
a VG ${DOMAIN} with LV's named "data" and "swap" and they are
immediately usable as swap/ext3

	Seems to work. Haven't tested for performance. Your performance issue
above seems to be hardware related??

	Any concerns?


	-steve


>
> Steve Shorter wrote:
>> Howdy!
>>
>> 	I am setting up virtual guests to have a LVM created
>> from the host. It would be good to use LVM's in the
>> guest also.. for easy volume expansion etc...
>>
>> ie. I am creating pv's/vg's/lvms on top of LVM's. It *seems* to
>> work but some of the userland tools need the option -ff
>>
>> 	Does anybody see any issues doing this?
>>
>> 	thanx - steve
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] creating pv's on LVM's for virtual guests
  2011-05-09 21:40 ` allan
  2011-05-10 18:36   ` Steve Shorter
@ 2011-05-11 21:35   ` Brem Belguebli
  2011-05-12  3:53   ` Christopher Cox
  2 siblings, 0 replies; 5+ messages in thread
From: Brem Belguebli @ 2011-05-11 21:35 UTC (permalink / raw)
  To: allane, LVM general discussion and development

On Mon, 2011-05-09 at 15:40 -0600, allan wrote:
> Hi Steve,
> 
> I've had mixed results doing that very thing. Two servers perform very differently.
> One mach, an HP DL380G6 w/ dual quad core Zeon and 6 146G disks installed with CentOS 5.5 stock xen, lvm, etc. performs 
> very well. 
It may be more related to the write cache ratio of your smartarray on
the DL38O, no ?
> Another machine intended as a low class server, a desktop quad core AMD, 4 SATA disks installed with stock 
> CentOS 5.5 same as first mach, has issues with disk perfomance on every DomU - writes are 1/10 the rate of Dom0 -- I'm 
> still troubleshooting it.
> I see no problem with using LVM on Dom0, carving it up and offering to DomU virtuals and the virtuals using LVM for 
> storage. One thing to avoid: do not duplicate an LVM names within the entire machine. i.e. installer, when told to use 
> LVM, will create a vg of a specific name. If this name is not overridden, and you create multiple DomUs with same 
> process the VG name will be duplicated (as well as the LV names). Avoid name duplication.
> I hope this helps.
All the VM's I've been using (ESX, KVM, Xen, and also HyperV) are built
on LVM and no particular issue nor performance problem 
> 
> Allan
> 
> Steve Shorter wrote:
> > Howdy!
> > 
> > 	I am setting up virtual guests to have a LVM created
> > from the host. It would be good to use LVM's in the
> > guest also.. for easy volume expansion etc...
> > 
> > ie. I am creating pv's/vg's/lvms on top of LVM's. It *seems* to
> > work but some of the userland tools need the option -ff
> > 
> > 	Does anybody see any issues doing this?
> > 
> > 	thanx - steve
> > 
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> > 
> > 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] creating pv's on LVM's for virtual guests
  2011-05-09 21:40 ` allan
  2011-05-10 18:36   ` Steve Shorter
  2011-05-11 21:35   ` Brem Belguebli
@ 2011-05-12  3:53   ` Christopher Cox
  2 siblings, 0 replies; 5+ messages in thread
From: Christopher Cox @ 2011-05-12  3:53 UTC (permalink / raw)
  To: LVM general discussion and development


[-- Attachment #1.1: Type: text/plain, Size: 2657 bytes --]


My personal experience in doing this worked... until I need to manipulate
some things... then the nested LVM data really made life miserable with the
device mapper, etc... long story short... we decided NOT to create the
nested scenario.  Sure... it's not as nice and flexible, but seem to be a
whole lot safer.

For now, we are using LVM on the hypervisor host and using disks as normal,
partitionable spaces (old style) on the VMs.  I would think the opposite
would also work reasonably well... but again, we felt it was safer doing it
the way we're doing it.

Somebody else feel free to chime in....




From:	allan <allane@spinn.net>
To:	LVM general discussion and development <linux-lvm@redhat.com>
Date:	05/09/2011 04:42 PM
Subject:	Re: [linux-lvm] creating pv's on LVM's for virtual guests
Sent by:	linux-lvm-bounces@redhat.com



Hi Steve,

I've had mixed results doing that very thing. Two servers perform very
differently.
One mach, an HP DL380G6 w/ dual quad core Zeon and 6 146G disks installed
with CentOS 5.5 stock xen, lvm, etc. performs
very well. Another machine intended as a low class server, a desktop quad
core AMD, 4 SATA disks installed with stock
CentOS 5.5 same as first mach, has issues with disk perfomance on every
DomU - writes are 1/10 the rate of Dom0 -- I'm
still troubleshooting it.
I see no problem with using LVM on Dom0, carving it up and offering to DomU
virtuals and the virtuals using LVM for
storage. One thing to avoid: do not duplicate an LVM names within the
entire machine. i.e. installer, when told to use
LVM, will create a vg of a specific name. If this name is not overridden,
and you create multiple DomUs with same
process the VG name will be duplicated (as well as the LV names). Avoid
name duplication.
I hope this helps.

Allan

Steve Shorter wrote:
> Howdy!
>
> 		 I am setting up virtual guests to have a LVM created
> from the host. It would be good to use LVM's in the
> guest also.. for easy volume expansion etc...
>
> ie. I am creating pv's/vg's/lvms on top of LVM's. It *seems* to
> work but some of the userland tools need the option -ff
>
> 		 Does anybody see any issues doing this?
>
> 		 thanx - steve
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[-- Attachment #1.2: Type: text/html, Size: 4058 bytes --]

[-- Attachment #2: graycol.gif --]
[-- Type: image/gif, Size: 105 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-12  3:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 20:38 [linux-lvm] creating pv's on LVM's for virtual guests Steve Shorter
2011-05-09 21:40 ` allan
2011-05-10 18:36   ` Steve Shorter
2011-05-11 21:35   ` Brem Belguebli
2011-05-12  3:53   ` Christopher Cox

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.