From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Xen guest disk online resize, xenstore/blkback/blkfront questions Date: Tue, 12 Jan 2010 17:16:09 +0200 Message-ID: <20100112151609.GK25902@reaktio.net> References: <20100106202631.GK25902@reaktio.net> <1262810665.28737.102.camel@localhost.localdomain> <20100106215735.GM25902@reaktio.net> <1262937259.26546.8300.camel@agari.van.xensource.com> 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: <1262937259.26546.8300.camel@agari.van.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Ian Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, Jan 07, 2010 at 11:54:19PM -0800, Daniel Stodden wrote: > On Wed, 2010-01-06 at 16:57 -0500, Pasi K=E4rkk=E4inen wrote: >=20 > > > > Any problems getting the new size/sectors on-the-fly in the ker= nel?=20 > > >=20 > > > You might need to close and reopen the block device?=20 > > >=20 > > > Idle speculation: perhaps instead of an explicit "resize" field in > > > xenstore you could just have the backend continue watching the > > > 'physical-device' node even after everything is connected the first= time > > > and if it is rewritten (including to the same value) reopening the > > > physical device and setting things up again (picking up a size chan= ge as > > > a side effect). > > >=20 > >=20 > > Good idea. I'll experiment with this. >=20 > The XCP kernel has support for transparent pause/unpause. Which takes o= f > the queue flush in order to get the bdev closed. >=20 > Below is that patch which enables switching the physical node, > safety-checking if the VBD is paused etc. Matters not so much for > snapshotting, rather for cross-vg stuff. >=20 > It happens to work otherwise as IanC suggested. >=20 > It may be more than you're up to in order to get a resize done, e.g. > depends on whether you want to piggyback close/open into pause/unpause > or not (as a rule of thumb, it's safe to say that pause applications > want a close anyway :]).=20 >=20 > Didn't check for bitrot, sorry in advance. > Interesting. I'll take a look at this aswell. Thanks! > HTH. Let me know if you're missing something or how it's going. >=20 Yep. I'll get back to you.=20 -- Pasi