From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH]: Support dynamic resizing of vbds Date: Sat, 24 Jul 2010 16:43:43 +0300 Message-ID: <20100724134343.GZ17817@reaktio.net> References: <4BA23895020000300008184F@sinclair.provo.novell.com> <4BA294A0.1010900@goop.org> <20100720172810.GN17817@reaktio.net> <4C45DEEF.9040704@goop.org> <20100720182909.GR17817@reaktio.net> <4C45FDDB.8090704@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <4C45FDDB.8090704@goop.org> 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: Ky Srinivasan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Jul 20, 2010 at 12:49:47PM -0700, Jeremy Fitzhardinge wrote: > On 07/20/2010 11:29 AM, Pasi K=E4rkk=E4inen wrote: > > On Tue, Jul 20, 2010 at 10:37:51AM -0700, Jeremy Fitzhardinge wrote: > > =20 > >> On 07/20/2010 10:28 AM, Pasi K=E4rkk=E4inen wrote: > >> =20 > >>> On Thu, Mar 18, 2010 at 02:01:20PM -0700, Jeremy Fitzhardinge wrote= : > >>> =20 > >>> =20 > >>>> On 03/18/2010 01:28 PM, Ky Srinivasan wrote: > >>>> =20 > >>>> =20 > >>>>> The attached patch supports dynamic resizing of vbds. This patch = fixes a bug in the previous version of this patch that was sent out. With= this patch you can perform "online" resizing of file systems that suppo= rt online resizing. > >>>>> =20 > >>>>> =20 > >>>>> =20 > >>>> Please send a delta against the previous patch, since it has alrea= dy =20 > >>>> been applied. > >>>> > >>>> =20 > >>>> =20 > >>> Btw dynamic vbd resize is something we should get into mainline Lin= ux.. > >>> =20 > >>> =20 > >> Good point. I created a branch called "upstream/blkfront" with a > >> candidate set of blkfront changes to send. Could you test it out? > >> > >> =20 > > Sure. I can test it tomorrow. > > =20 >=20 > Thanks. >=20 > > it seems xen/stable-2.6.32.x branch already has these patches=20 > > so dom0 side is easy for the test.. > > > > should I try the blkfront patches against the latest Linus git tree, = or 2.6.34, or ? > > =20 >=20 > That branch, upstream/blkfront, is rebased onto v2.6.34, so you can tes= t > it as-is, or merge it into the current linux-2.6 branch (which is a > clean merge). >=20 Ok, I finally got to it. It seems to work OK for me. I installed Fedora 13 PV guest and=20 updated the kernel to xen.git 'upstream/blkfront' branch (2.6.35-rc4). Then I added 'xvdb' disk to the guest, which was 4 GB initially. I started the guest and verified disk is 4GB in size from /proc/partition= s. And then in dom0: # lvextend -L+1G /dev/vg_f13/resizetest2 Extending logical volume resizetest2 to 5.00 GiB Logical volume resizetest2 successfully resized Nothing in dom0 logs at this point. Nothing in domU logs either. Then I did in the domU: [root@resizetest1 ~]# fdisk -l /dev/xvdb Accessing the device caused in domU dmesg: Setting capacity to 10485760 xvdb: detected capacity change from 4294967296 to 5368709120 xvdb: unknown partition table [root@resizetest1 ~]# cat /proc/partitions | grep xvdb 202 16 5242880 xvdb So resizing seemed to work OK. That also triggered the following in dom0 dmesg: device vif5.0 entered promiscuous mode virbr0: topology change detected, propagating virbr0: port 1(vif5.0) entering forwarding state blkback: ring-ref 8, event-channel 23, protocol 1 (x86_64-abi) blkback: ring-ref 9, event-channel 24, protocol 1 (x86_64-abi) vif5.0: no IPv6 routers present VBD Resize: new size 10485760 -- Pasi