From: Vincent Hanquez Subject: Dynamic block device and resize capabilities in unstable Date: Fri, 1 Apr 2005 19:49:02 +0200 Message-ID: <20050401174902.GA4509@snarc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel List-Id: xen-devel@lists.xenproject.org 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