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

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



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


 


Rackspace

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