[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] LVM & volume groups



Thanks for your reply - What I really want to know is that if each virtual machine should be on it's own volume group, or if it's ok if all the domU's share the same volume group?  Or does it even make a difference?

Thanks!

Rich

On Thu, 2006-12-07 at 00:56 +0100, Olivier Le Cam wrote:
Rich Yumul wrote:
> Can anybody tell me if it makes a difference if domU's have separate LVM 
> volume groups? 
> 
> For instance, the Xen User Manual ( 
> http://tx.downloads.xensource.com/downloads/docs/user/#SECTION03330000000000000000) 
> says, when setting up a domU's disks with LVM, to do a
> 
> vgcreate vg /dev/sda10
> 
> Should each domU have it's own volume group, or can all the domU's share 
> the 'vg' volume group?

It's related to LVM, not to Xen. You can create several logical volumes 
(lvcreate) in a volume group. These volumes will be "shown" as normal 
devices in /dev/vg/.

Each DomU can then be attached to one (or several, depending on the 
number of "disks" your DomU is attached to) logical volume of the same 
volume group:

lcslis-dom0:~# lvscan
   ACTIVE            '/dev/vg1/slis-part1' [8,00 GB] inherit
   ACTIVE            '/dev/vg1/slis-part3' [1,00 GB] inherit
   ACTIVE            '/dev/vg1/slis-swap' [512,00 MB] inherit
   ACTIVE            '/dev/vg1/lcs-part1' [8,00 GB] inherit
   ACTIVE            '/dev/vg1/lcs-swap' [512,00 MB] inherit
   ACTIVE            '/dev/vg1/debian-swap' [512,00 MB] inherit
   ACTIVE            '/dev/vg1/slis-part2' [10,25 GB] inherit
   ACTIVE            '/dev/vg1/lcs-part2' [10,25 GB] inherit
   ACTIVE            '/dev/vg1/lcs-part3' [10,25 GB] inherit
   ACTIVE            '/dev/vg1/debian-part1' [10,25 GB] inherit

I have there 3 DomUs running on: slis, lcs and debian.

HTH

______________________________________
Richard Yumul
rmy@xxxxxxxxxxxxx
http://www.sdtechnix.com
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.