WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] create LVM-based domU using more than one volume group

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] create LVM-based domU using more than one volume group
From: Adam Gold <adamgold@xxxxxxxxxxx>
Date: Mon, 14 Nov 2011 22:28:51 +0000
Delivery-date: Mon, 14 Nov 2011 14:30:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <COL0-MC4-F13ZwxDnXg00145929@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <COL0-MC4-F13ZwxDnXg00145929@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> Date: Mon, 14 Nov 2011 18:59:24 +0100
> From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
> Subject: Re: [Xen-users] create LVM-based domU using more than one
> volume group
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Message-ID: <p06240879cae7067cedd3@xxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
> Adam Gold wrote:
> >Is it possible to create a guest installation which sources its
> >partitions using more than one volume group. For example, let's
> >saying there are two VGs on dom0, vgxen1 and vgxen2, could I define
> >the guest creation paramters such that root and swap are LVs within
> >vgxen1 and home is an LV within vgxen2?
>
> Xen doesn't care - you just need to specify the right block device
> for each virtual disk.
>
> >Is there an additional flag I can add to xen-create-image maybe?
>
> Ah, now that's a different matter. I don't use tools any more for
> creating images - I just manually create block devices and either
> copy a template blank guest onto them, or us debootstrap to install a
> fresh install (all my hosts and guests are Debian).
>
> Worst case is that you could create the guest using just one (or a
> small number of) devices, then once it's installed you can mount the
> disks in Dom0 and move stuff about - eg make a new filesystem for
> /home, mount it as (say) /mnt2, move everything from /mnt/home/ to
> /mnt2/ (assuming the guest root is mounted at /mnt), and then edit
> the guest fstab.
>
> --
> Simon Hobson
>
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.

Thanks Simon.  I find I, too, am moving towards a more manual approach in guest creation.  I've also been using the 'xm block-attach' command to attach additional block devices post-creation.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users