Received: from [140.186.70.92] (port=47534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py5t6-0004yi-Lq for qemu-devel@nongnu.org; Fri, 11 Mar 2011 12:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Py5t4-0007ij-JE for qemu-devel@nongnu.org; Fri, 11 Mar 2011 12:12:28 -0500 Received: from web161605.mail.bf1.yahoo.com ([98.139.210.174]:21809) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Py5t4-0007iV-9d for qemu-devel@nongnu.org; Fri, 11 Mar 2011 12:12:26 -0500 Message-ID: <646085.78086.qm@web161605.mail.bf1.yahoo.com> Date: Fri, 11 Mar 2011 09:12:25 -0800 (PST) From: SAURAV LAHIRI Subject: Re: [Qemu-devel] Issue with snapshot outside qcow2 disk - qemu 0.14.0 In-Reply-To: <4D79F063.7040007@redhat.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1243797253-1299863545=:78086" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes Sorensen Cc: Stefan Hajnoczi , qemu-devel@nongnu.org --0-1243797253-1299863545=:78086 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thank you very much Stefan and Jes for brining about clarity to the issue o= f snapshots in qemu.=A0 One last question which we would be interested in i= s when is the back merge of snapshots for running vms expected to be releas= ed. Regards sl --- On Fri, 11/3/11, Jes Sorensen wrote: From: Jes Sorensen Subject: Re: [Qemu-devel] Issue with snapshot outside qcow2 disk - qemu 0.1= 4.0 To: "SAURAV LAHIRI" Cc: "Stefan Hajnoczi" , qemu-devel@nongnu.org Date: Friday, 11 March, 2011, 5:50 On 03/11/11 10:39, SAURAV LAHIRI wrote: > Thank you Stefan, Jes. So it appears that snapshot_blkdev is the way > to go for vm disk backup with running vms. >=20 > In regard to merging changes, assuming that we go snapshot_blkdev > rightaway. Stefan's suggestion: "qemu-img commit" Jes's suggestion: > "qemu-img convert" >=20 > Does qemu-img convert apply to running VM's. In that case it would > appear to be the more practical approach(since vm shutdown would not > be required). >=20 > Also incase If i have interpreted "qemu-img convert" incorrectly and > does require a VM shutdown. Then when is expected time when the "live > merge" will be available. I believe commit only applies to images with internal files. If you use convert then it doesn't modify the actual images, so lets say you have a chain like this: original->snapshotA->snapshotB original and snapshotA are read-only when snapshotB is running. Therefore you should be able to use convert to simply copy snapshotA into a new image file snapshotX and save that for your backup. If you later restore, you have a single image file you can boot from. What you cannot do is to create the new snapshotX file and switch to it as the backing file for snapshotB while you are up and running. Cheers, Jes =0A=0A=0A --0-1243797253-1299863545=:78086 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you very much Stefan and Jes for brinin= g about clarity to the issue of snapshots in qemu.  One last question = which we would be interested in is when is the back merge of snapshots for = running vms expected to be released.

Regards
sl

--- On = Fri, 11/3/11, Jes Sorensen <Jes.Sorensen@redhat.com> wrote= :

From: Jes Sorensen <Jes.Sorensen@redha= t.com>
Subject: Re: [Qemu-devel] Issue with snapshot outside qcow2 di= sk - qemu 0.14.0
To: "SAURAV LAHIRI" <saurav_lahiri@yahoo.com>
= Cc: "Stefan Hajnoczi" <stefanha@gmail.com>, qemu-devel@nongnu.org
= Date: Friday, 11 March, 2011, 5:50

On 03/11= /11 10:39, SAURAV LAHIRI wrote:
> Thank you Stefan, Jes. So it appear= s that snapshot_blkdev is the way
> to go for vm disk backup with running v= ms.
>
> In regard to merging changes, assuming that we go snap= shot_blkdev
> rightaway. Stefan's suggestion: "qemu-img commit" Jes's= suggestion:
> "qemu-img convert"
>
> Does qemu-img conv= ert apply to running VM's. In that case it would
> appear to be the m= ore practical approach(since vm shutdown would not
> be required).>
> Also incase If i have interpreted "qemu-img convert" incorre= ctly and
> does require a VM shutdown. Then when is expected time whe= n the "live
> merge" will be available.

I believe commit only = applies to images with internal files. If you use
convert then it doesn'= t modify the actual images, so lets say you have a
chain like this:
<= br>original->snapshotA->snapshotB

original and snapshotA are r= ead-only when snapshotB is running.
Therefore you should be able to use convert to simply copy snapshotA
into a new image file snapshotX= and save that for your backup. If you
later restore, you have a single = image file you can boot from.

What you cannot do is to create the ne= w snapshotX file and switch to it
as the backing file for snapshotB whil= e you are up and running.

Cheers,
Jes

<= /td>

=0A=0A=0A=0A --0-1243797253-1299863545=:78086--