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] Re: DomU guest - resize disk on LVM?

To: "HAWKER, Dan" <dan.hawker@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Re: DomU guest - resize disk on LVM?
From: Thomas Harold <tgh@xxxxxxxxxxxx>
Date: Fri, 03 Nov 2006 08:35:57 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 03 Nov 2006 05:36:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7F6B06837A5DBD49AC6E1650EFF54906012230D9@xxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <7F6B06837A5DBD49AC6E1650EFF54906012230D9@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
HAWKER, Dan wrote:

Are all these layers *really* required??? Seems messy to have LVM ontop of
LVM (even if the OS doesn't realise this is the case).
ATM for my Xen boxes I use LVM in the Dom0 and use this to create my DomU
drives. For instance I have Dom0 and DomU VGs in my Dom0. I then create the
usual set of LVs for each Dom0/U and make them accessible to the DomU in the
usual way (as sda1,sda2, etc, etc).

VG-Dom0
 - LVRoot
 - LVSwap
 - LVwhatever
VG-DomU
 - LVDomU1-root
 - LVDomU1-swap
 - LVDomU1-whatever
 - LVDomU2-root
 - LVDomU2-swap
 - LVDomU2-whatever

That's how we've settled on doing things as well. Our hypervisor servers typically only have a single volume group (called 'vg' for simplicity) with LV names like:

domu-svn
domu-svnsvn
domu-svnbkp
domu-jabber
domu-fw1

Where domu-svn, domu-svnsvn, domu-svnbkp map to sda1, sda2, sda3 inside the subversion DomU. If the DomU needs a swap area or other scratch space, we export those as sdbN inside the DomU.

One nice thing about doing everything in Dom0 is that you can do LVM snapshots and quick images of entire systems. Or resizing the file system, being able to take a DomU down and check the file systems or even mount the DomU's troubled file systems in Dom0 and do maintenance.

There could be less wasted space by managing everything in Dom0.

I would imagine it also keeps LVM from being confused when it encounters an LVM inside another LVM. Without having to resort to LVM filtering tricks.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users