From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56568 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxcEo-0004Ev-M5 for qemu-devel@nongnu.org; Thu, 10 Mar 2011 04:32:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxcEn-0008BX-Cz for qemu-devel@nongnu.org; Thu, 10 Mar 2011 04:32:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:18273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxcEn-0008BM-4g for qemu-devel@nongnu.org; Thu, 10 Mar 2011 04:32:53 -0500 Message-ID: <4D789AB4.4010202@redhat.com> Date: Thu, 10 Mar 2011 10:32:36 +0100 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] Issue with snapshot outside qcow2 disk - qemu 0.14.0 References: <9678.79494.qm@web161620.mail.bf1.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: SAURAV LAHIRI , qemu-devel@nongnu.org On 03/10/11 10:27, Stefan Hajnoczi wrote: >> Is Scenario 2 safe where in the copying the snapshot outside the original qcow2 is being executed with the VM running. This is because if this is safe then this could be an approach as it would not require a long downtime for the VM. > > There is no guarantee that qemu-img will work on an image file that is > open by a running VM. I think the guarantee here is that you're guaranteed it will go horribly wrong if you try to do so..... > I have CCed Jes who has been working on a live snapshot mechanism. He > recently added the snapshot_blkdev monitor command that takes a > snapshot of a block device while the VM is running. A new image file > is created based off the original image file (which will no longer be > modified), all new disk writes go to the new image file. It is safe > to perform read-only access to the original image file. There > currently is no support to merge the snapshot changes back into the > original image while the VM is running, but I think that is the next > planned step. Yes, keep in mind that the live snapshot is only for external snapshot files, it doesn't deal with internal snapshots. Cheers, Jes