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

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



> 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

 


Rackspace

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