All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Dietmar Maurer <dietmar@proxmox.com>
Cc: Javier Guerra <javier@guerrag.com>, kvm@vger.kernel.org
Subject: Re: AW: KVM backup and snapshots
Date: Thu, 07 Aug 2008 11:04:04 -0500	[thread overview]
Message-ID: <489B1CF4.7070903@codemonkey.ws> (raw)
In-Reply-To: <E88155B5BD67CE4D87A3F1F70950B96A2FFB88@berta.maurer-it.com>

Dietmar Maurer wrote:
>> like a 'savevm' without qcow2 requirements?
>>
>> would be great.
>>     
>
> Yes, something like:
>
> # savediff [filname] [maxsize]
>
> After a backup you can revert all changes, so you basically have a
> snapshot.
>   

Actually, I think a simple change to the 'change' monitor command would 
suffice.  If it were changed to allow non-ejectable block devices to be 
changed atomically, perhaps with a force flag, you could do the following:

qemu -hda foo.img

# create temporary qcow2 file that backs to foo.img
qemu-img create -f qcow2 -b foo.img tmp-hda.img

# in the monitor
(qemu) change -f ide0-hd tmp-hda.img
# do whatever you need with foo.img
(qemu) stop
(qemu) commit ide0-hd  # sync tmp-hda.img with foo.img
(qemu) change -f ide0-hd foo.img
(qemu) continue

obviously, if you script it, you'll minimize downtime.  We could get 
smarter and support a "live" commit that allowed a guest to keep running 
too which would make the downtime near-zero.

N.B. your base image can be anything, including an LVM partition.

Regards,

Anthony Liguori

> - Dietmar
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


  reply	other threads:[~2008-08-07 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07 14:23 KVM backup and snapshots Dietmar Maurer
2008-08-07 14:33 ` Javier Guerra
2008-08-07 14:51   ` AW: " Dietmar Maurer
2008-08-07 14:57     ` Javier Guerra
2008-08-07 15:10       ` AW: " Dietmar Maurer
2008-08-07 15:15       ` Soren Hansen
2008-08-07 15:29       ` AW: " Dietmar Maurer
     [not found]         ` <90eb1dc70808070832h35f7691eref332452e029a0f3@mail.gmail.com>
2008-08-07 15:45           ` Dietmar Maurer
2008-08-07 16:04             ` Anthony Liguori [this message]
2008-08-07 16:02           ` Dietmar Maurer
2008-08-07 15:39       ` Daniel P. Berrange

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=489B1CF4.7070903@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=dietmar@proxmox.com \
    --cc=javier@guerrag.com \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.