From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz8F4-0001gh-Kg for qemu-devel@nongnu.org; Thu, 01 Sep 2011 10:27:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz8F3-00089g-6C for qemu-devel@nongnu.org; Thu, 01 Sep 2011 10:27:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz8F2-00089O-QK for qemu-devel@nongnu.org; Thu, 01 Sep 2011 10:27:41 -0400 Date: Thu, 1 Sep 2011 15:27:35 +0100 From: "Daniel P. Berrange" Message-ID: <20110901142735.GI14462@redhat.com> References: <20110901132755.GG14462@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110901132755.GG14462@redhat.com> Subject: Re: [Qemu-devel] QEMU online guest disk resize wrt host block devices Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: hch@lst.de On Thu, Sep 01, 2011 at 02:27:55PM +0100, Daniel P. Berrange wrote: > We want to support online resize of guest disks in the libvirt API for > QEMU, and had intended to use the fairly recently added 'block_resize' > command: > > commit db97ee6a976bacbb0d18818e951cfc41b39269a7 > Author: Christoph Hellwig > Date: Mon Jan 24 13:32:41 2011 +0100 > > block: tell drivers about an image resize > > commit 6d4a2b3a47959f02e7f307f50396e70e8464f95e > Author: Christoph Hellwig > Date: Mon Jan 24 13:32:33 2011 +0100 > > block: add block_resize monitor command > > There is unfortunately a problem with the design of this monitor command > because it has tied the task of resizing the host backing file for the > virtual disk, together with the task of notifying the guest device of the > block resize. This means that we can only use 'block_resize' for disks > that are backed by image files (raw, qcow2, etc) that QEMU can actually > resize. One other question too, when creating a qcow2 image via 'qemu-img create' you can specify a 'prealloc' option to require metadata to be allocated at time of creation. Should we have the same control at time of resize too. If the app had originally created the qcow2 image with preallocated metadata, then I'd expect they want to pre-allocate metadata when extending it too, or is there no additional metadata allocation required when extending an image ? Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|