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

[Xen-users] Re: DomU guest - resize disk on LVM?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: DomU guest - resize disk on LVM?
From: Robin Bowes <robin-lists@xxxxxxxxxxxxxx>
Date: Wed, 01 Nov 2006 11:19:28 +0000
Delivery-date: Thu, 02 Nov 2006 13:45:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7F6B06837A5DBD49AC6E1650EFF54906012230DD@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: <7F6B06837A5DBD49AC6E1650EFF54906012230DD@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20061006)
HAWKER, Dan wrote:
>> How do you make the lvs available to the DomUs?
> 
> Just specify them in the appropriate config file as normal.
> 
>> 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 ?
> 
> Eg... In the Xen config file
> 
> disk = [
> 'phy:/dev/vg01/lv_guest1_root,sda1,w','phy:/dev/vg01/lv_guest1_usr,sda2,w','
> phy:/dev/vg01/lv_guest1_var,sda3,w' ]
> 
> And then attach these as required in your guests /etc/fstab as normal. In
> the above case, mapping sda1 to root, sda2 to usr and sda3 to var.

Is it possible to do this at install time?

For example, I currently kickstart install my xen guests as follows:

xenguest-install.py --name=guest1 --file=/dev/vg01/lv_guest1_vm
--ram=384 --location=http://mirrors.kernel.org/fedora/core/5/i386/os/
--extra-args="ip=192.168.23.229 netmask=255.255.255.248
gateway=192.168.23.225 dns=192.168.2.203,192.168.2.204
ks=http://dev.robinbowes.com/kickstart/misc/guest1-fc5.cfg";

The disk layout is defined in the kickstart config.

But I'd need to specify that /dev/vg01/lv_guest1_root = /dev/sda1,
/dev/vg01/lv_guest1_usr = /dev/sda2, etc.

Is this possible with xenguest-install.py or do I need to use a
different install method?

Thanks,

R.


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