qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Mancini <lmancini@develer.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Online image backup
Date: Mon, 10 Dec 2007 11:45:39 +0100	[thread overview]
Message-ID: <475D18D3.7060109@develer.com> (raw)
In-Reply-To: <8a6cde920712051325n193c5166m60e1c3135f1e23a1@mail.gmail.com>

Ricardo Almeida wrote:

>> Fabrice, that's just part of the problem.  A full automated remote
>> backup service for qemu VMs should work like this:
>>
>>   1. send a "savevm state" command to qemu;
>>   2. wait for savevm completion;
> 
> 2.1 Switch to snapshot mode

How do you switch to snapshot mode *while* the VM is running, i.e. 
without stopping and restarting qemu?  The only way I know to enter that 
mode is using the -snapshot switch at invocation time and I don't think 
it can be done online.


>>   3. perform an *online* copy (cp, rsync, whatever) of the .qcow2 image,
>> while it's still running in qemu;
> 
> 3.1 Pause VM
> 3.2 Apply snapshot changes to local and remote copy (remote must be
> running something that can apply the update)
> 3.3 Back to normal mode

If executing step 2.1 is actually possible, you can skip step 3.1 and 
3.2 because the remote copy is already consistent with the state the VM 
went throught at the time of execution of step 2.1 .  If it was 
possible, it would be just fine for automated daily backups.

-- 
Lorenzo Mancini

  reply	other threads:[~2007-12-10 10:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-05 14:12 [Qemu-devel] Online image backup Lorenzo Mancini
2007-12-05 21:25 ` Ricardo Almeida
2007-12-10 10:45   ` Lorenzo Mancini [this message]
2007-12-10 17:41     ` Ricardo Almeida
  -- strict thread matches above, loose matches on Subject: below --
2007-11-20 11:23 Matteo Bertini
2007-11-20 23:02 ` Fabrice Bellard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=475D18D3.7060109@develer.com \
    --to=lmancini@develer.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).