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-devel

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

To: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Dynamic block device and resize capabilities in unstable
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxx>
Date: Fri, 1 Apr 2005 19:49:02 +0200
Delivery-date: Fri, 01 Apr 2005 17:49:03 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
        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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Dynamic block device and resize capabilities in unstable, Vincent Hanquez <=