From: "Ky Srinivasan" Subject: Re: [PATCH]: Support dynamic resizing of vbds Date: Tue, 20 Jul 2010 12:43:52 -0600 Message-ID: <4C459A080200003000089AE4@sinclair.provo.novell.com> References: <4B96456B0200003000080E91@sinclair.provo.novell.com> <201003121141.47651.joost@antarean.org> <20100314140647.GJ1878@reaktio.net> <4B9EA105020000300008155E@sinclair.provo.novell.com> <20100720182733.GQ17817@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100720182733.GQ17817@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: =?UTF-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= Cc: "J. Roeleveld" , Andrew Lyon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 7/20/2010 at 2:27 PM, in message <20100720182733.GQ17817@reaktio.= net>, Pasi K=C3=A4rkk=C3=A4inen wrote:=20 > On Mon, Mar 15, 2010 at 09:05:09PM -0600, Ky Srinivasan wrote: >> >> > >> >>=20 >> >> I tested the patch on xen-sources-2.6.31-r12 and it appears to work= perfectly: >> >>=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 lo= g=20 > entries=20 >> > in the dom0, >> > and the device name in domU! >>=20 >> Agreed. Will send out the patch soon. >>=20 >=20 > Hey, >=20 > Did you send this patch? I'm just wondering if I missed it.. >=20 > -- Pasi If I recall correctly I think I sent the patches out. K. Y >=20 >> > =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 bl= ock >> >> device, although some errors were logged in domU the operation seem= ed >> >> 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 us= ing >> >> 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 >>=20