From: "Ky Srinivasan" Subject: Re: [PATCH]: Support dynamic resizing of vbds Date: Thu, 11 Mar 2010 19:52:02 -0700 Message-ID: <4B9949E202000030000811DC@sinclair.provo.novell.com> References: <4B96456B0200003000080E91@sinclair.provo.novell.com> <20100309201529.GH1878@reaktio.net> <4B964DA50200003000080E95@sinclair.provo.novell.com> <20100309203557.GJ1878@reaktio.net> <4B964F8B0200003000080EA0@sinclair.provo.novell.com> <20100311201514.GZ1878@reaktio.net> <4B996436.1000600@goop.org> <4B9905CD0200003000081156@sinclair.provo.novell.com> <4B997922.1080407@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4B997922.1080407@goop.org> 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: Jeremy Fitzhardinge Cc: James Harper , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 3/11/2010 at 6:13 PM, in message <4B997922.1080407@goop.org>, Jer= emy Fitzhardinge wrote:=20 > On 03/11/2010 02:01 PM, Ky Srinivasan wrote: >> >> =20 >>>>> On 3/11/2010 at 4:44 PM, in message<4B996436.1000600@goop.org>, Je= remy >>>>> =20 >> Fitzhardinge wrote: >> =20 >>> On 03/11/2010 12:15 PM, Pasi K=C3=A4rkk=C3=A4inen wrote: >>> =20 >>>> On Tue, Mar 09, 2010 at 01:39:23PM -0700, Ky Srinivasan wrote: >>>> >>>> =20 >>>>> >>>>> =20 >>>>>>>> On 3/9/2010 at 3:35 PM, in message<20100309203557.GJ1878@reakti= o.net>, Pasi >>>>>>>> >>>>>>>> =20 >>>>> K=C3=A4rkk=C3=A4inen wrote: >>>>> >>>>> =20 >>>>>> On Tue, Mar 09, 2010 at 01:31:17PM -0700, Ky Srinivasan wrote: >>>>>> >>>>>> =20 >>>>>>> >>>>>>> =20 >>>>>>>>>> On 3/9/2010 at 3:15 PM, in message<20100309201529.GH1878@reak= tio.net>, Pasi >>>>>>>>>> >>>>>>>>>> =20 >>>>>>> K=C3=A4rkk=C3=A4inen wrote: >>>>>>> >>>>>>> =20 >>>>>>>> On Tue, Mar 09, 2010 at 12:56:11PM -0700, Ky Srinivasan wrote: >>>>>>>> >>>>>>>> =20 >>>>>>>>> The attached patch supports dynamic resizing of vbds. >>>>>>>>> >>>>>>>>> >>>>>>>>> =20 >>>>>>>> Nice! Did you also implement the xm/xend side of resizing? >>>>>>>> >>>>>>>> =20 >>>>>>> My goal was to not have the end-user do anything other than what >>>>>>> was minimally required to resizing the device on the host side. >>>>>>> Once the device is resized on the host side, this capacity change >>>>>>> is propagated to the guest without having to invoke any xm comman= d. >>>>>>> >>>>>>> >>>>>>> =20 >>>>>> Oh, even better! >>>>>> What version of the kernel did you test with? 2.6.27? >>>>>> >>>>>> =20 >>>>> I tested this on 2.6.32. The patches should apply to earlier kernel= s without >>>>> =20 >>> too much trouble. >>> =20 >>>>> >>>>> =20 >>>> Great! >>>> >>>> Jeremy: Hopefully you can add this patch to your tree. >>>> >>>> =20 >>> It applied fairly cleanly, but I haven't tested it yet. Ky, by 2.6.3= 2 I >>> assume I mean your one, not pvops? (Because your patch is touching >>> blkfront in the wrong place.) >>> =20 >> Yes. This patch was against our sles11 sp1. >> =20 >=20 > What happens if the frontend doesn't support the resize, and the device= =20 > shrinks? Will the backend just raise IO errors for out of range reques= ts? Clearly, resizing is an operation that ought to be done with great care a= nd co-ordination between the administrators of the guest and the host. If= the device on the host side is shrunk without co-ordinating with the gue= st, seeing I/O errors will be the least of our problems! =20 The situation you describe can occur today without this patch - consider = the case where an LVM based device is resized on the host side (device is= shrunk as in your example). We will be generating I/O errors for out of = range request on the backend in this scenario. Assuming all the co-ordina= tion is done, this patch automates propagating the capacity change withou= t having to detach and attach the storage from the guest. Regards, K. Y=20 >=20 > J >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel