From: "Ky Srinivasan" Subject: Re: [PATCH]: Support dynamic resizing of vbds Date: Mon, 15 Mar 2010 21:05:09 -0600 Message-ID: <4B9EA105020000300008155E@sinclair.provo.novell.com> References: <4B96456B0200003000080E91@sinclair.provo.novell.com> <201003121141.47651.joost@antarean.org> <20100314140647.GJ1878@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100314140647.GJ1878@reaktio.net> 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: Andrew Lyon , =?UTF-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= Cc: "J. Roeleveld" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 3/14/2010 at 10:06 AM, in message <20100314140647.GJ1878@reaktio.n= et>, Pasi K=C3=A4rkk=C3=A4inen wrote:=20 > On Sun, Mar 14, 2010 at 01:49:38PM +0000, Andrew Lyon wrote: >> On Fri, Mar 12, 2010 at 10:41 AM, J. Roeleveld wr= ote: >> > 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 >> >> >> > >> > 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=20 > feedback. >> > >> > -- >> > Joost Roeleveld >> > >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >> > >>=20 >> I tested the patch on xen-sources-2.6.31-r12 and it appears to work pe= rfectly: >>=20 >> dom0: VBD Resize: new size 172032 >> domU: Setting capacity to 172032 >> >=20 > Btw it would be good to add the vbd-device and domU name to these log e= ntries=20 > in the dom0, > and the device name in domU! Agreed. Will send out the patch soon. K. Y > =20 >> I extended the filesystem and filled up the available space, then >> extended again: >>=20 >> dom0: VBD Resize: new size 376832 >> domU: Setting capacity to 376832 >>=20 >> 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: >>=20 >> 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 >>=20 >> 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! >>=20 >=20 > Good to hear it works! >=20 > -- Pasi