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/
Home Products Support Community News


Re: [Xen-devel][PATCH]: Support dynamic resizing of vbds

To: "J. Roeleveld" <joost@xxxxxxxxxxxx>
Subject: Re: [Xen-devel][PATCH]: Support dynamic resizing of vbds
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Sun, 14 Mar 2010 13:49:38 +0000
Cc: ksrinivasan@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 14 Mar 2010 06:50:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=15/fS0v8J3IItXONITDgya3MhBS/12qBvpCooVx/R50=; b=Mkcx7r6H+tO3VCe0t2QhpdXbqEyK1TegchYUXdGC2960oYCG7lw+i9rX65tNANqdu9 va/A1ykdNjxyzK5lMoTEpnC2Ilsr8Pz66BNn0sOTfCBnAf/UYanyszLbtHBCrFGkKarM fBsnJY1kJ5hkFDSb2IQoBz/ngyTivXYLs2eqY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DXhMNUXYcfM9tg2ZjfyRAU4BKjX3jFwqh87RO5675/X/gSrxBr1TrG8JqxALjb7vfB NFIdMtakocZRHziteFvVuNmThwXfUEcO4JpFZzR+uVBHM99GNEUxVUZCVIUZogA/wQdc OSHgKxQ2Oq5MD0JEYXaQW4iTY/j/NL5gediNc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201003121141.47651.joost@xxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B96456B0200003000080E91@xxxxxxxxxxxxxxxxxxxxxxxxx> <201003121141.47651.joost@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Mar 12, 2010 at 10:41 AM, J. Roeleveld <joost@xxxxxxxxxxxx> wrote:
> On Tuesday 09 March 2010 20:56:11 Ky Srinivasan wrote:
>> The attached patch supports dynamic resizing of vbds.
>> Signed-off-by: K. Y. Srinivasan <ksrinivasan@xxxxxxxxxx>
> Thank you for this.
> The patch applied succesfully against the gentoo-xen kernel (2.6.29-xen-r4)
> I will test the patch on my system during the next week and provide feedback.
> --
> Joost Roeleveld
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

I tested the patch on xen-sources-2.6.31-r12 and it appears to work perfectly:

dom0: VBD Resize: new size 172032
domU: Setting capacity to 172032

I extended the filesystem and filled up the available space, then
extended again:

dom0: VBD Resize: new size 376832
domU: Setting capacity to 376832

fsck, badblocks, and testing a tarball I had filled the filesystem
with revealed no problems, so I decided to try reducing the
filesystem, first using resize2fs, then reducing the size of the block
device, although some errors were logged in domU the operation seemed
to work ok:

dom0: VBD Resize: new size 114688
domU: Setting capacity to 114688
domU: end_request: I/O error, dev sdb1, sector 212984
domU: Buffer I/O error on device sdb1, logical block 26623

I did notice that it seemed to be necessary to "poke" the device using
cfdisk /dev/sdb1 before domU would notice the new size, but on the
whole everything works nicely and this is a very useful new feature!


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>