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

[Xen-devel] Dynamic block device and resize capabilities in unstable



        Hi,

I just add new features to 2.6 unstable code:

* Dynamic add/remove block devices

you can now add and remove a block device dynamicly in 2.6 without restarting
your domain (2.4 has already this capability).

You need to use the following subcommand to manipulate the feature:
        - xm vbd-create DOMAIN DEVICE_SRC DEVICE_DEST MODE
        - xm vbd-destroy DOMAIN DEVINDEX
        - xm vbd-list DOMAIN

you can export whatever block device (full disk, partition) you want in dom0
it can be export as a full disk or a partition in the domain.

ex: create a new disk hdc in domU that has a backing store on sda6
xm vbd-create domU phy:sda6 hdc w

* Resize Capability

when you resize a block device at the source (ex: lvm resize in dom0),
you have to propagate the capacity change to the domain that use the device.
just use the following subcommand:

xm vbd-refresh DOMAIN DEVINDEX

Then your block device in the domain will be adjusted to the new size.
Online resizing (resize a mounted partition) should work.

-- 
Vincent Hanquez

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


 


Rackspace

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