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: Robin Bowes <robin-lists@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Re: DomU guest - resize disk on LVM?
From: Steve Kemp <steve@xxxxxxxxxxxx>
Date: Tue, 31 Oct 2006 20:11:06 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 02 Nov 2006 13:58:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <ei8a98$mv7$1@xxxxxxxxxxxxx>
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> <ei8a98$mv7$1@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Oct 31, 2006 at 08:04:53PM +0000, Robin Bowes wrote:

> That's a damn good scheme.

  [Supported by xen-tools if you're using Debian.]

> How do you make the lvs available to the DomUs?
> 
> For example, suppose I have:
> 
> /dev/vg01/lv_guest1_root
> /dev/vg01/lv_guest1_usr
> /dev/vg01/lv_guest1_var
> 
> How do I make these available to the DomU guest1 ?

  Just define them appropriately in the configuration file for Xen.
 Something like this:

 disk    = [ 'phy:vg01/lv_guest1_root,sda1,w',
             'phy:vg01/lv_guest1_usr,sda2,w',
             'phy:vg01/lv_guest1_var,sda3,w',
            ... ]

  Then inside the /etc/fstab of the domU you'd have:

  /dev/sda1 /    ...
  /dev/sda2 /usr ...
  /dev/sda3 /var ...

Steve
-- 
Debian GNU/Linux System Administration
http://www.debian-administration.org/

Attachment: signature.asc
Description: Digital signature

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