From: Avi Kivity <avi@redhat.com>
To: Steve Lorimer <slorimer@kmbc.edu>
Cc: kvm@vger.kernel.org
Subject: Re: How to do an automated backup?
Date: Thu, 06 Nov 2008 17:48:30 +0200 [thread overview]
Message-ID: <491311CE.7060904@redhat.com> (raw)
In-Reply-To: <490F51CD.8050505@kmbc.edu>
Steve Lorimer wrote:
> Ok, should be a simple question here: How to backup a KVM host image.
>
> My first plan - failure:
> 1) Suspend / hibernate (using virsh ... save) image to disk
> 2) Backup vm disk image & suspend file
> 3) Backup .xml
> 4) Restore suspended image
> This would accomplish a backup that could be reactivated very quickly
> as bootup would not even be required.
> However, in testing it failed. Of two VM's tried, one worked, but the
> other one never came back up. The network interface never reenabled
> and this system itself sat maxing out it's cpu core until manually
> terminated.
>
That's a bug. If you can reproduce this on the latest kvm, and provide
instructions for us on how to reproduce this, we will try to fix it.
> My second plan:
> 1) Use virsh to shutdown the VM
> 2) Backup vm file & xml
> 3) Start vm (regular bootup)
> This takes longer, but can be tolerated in order to get a backup.
> However, this fails also:
> virsh -c qemu:///system shutdown kvmtest
> The command fails to send any kind of shutdown request to the VM
> guest. As a result, the only thing that works is to kill it (the
> virsh command for that does work). However, this is not acceptable
> for a backup.
>
> Nothing out of the ordinary in my system setup:
> VM Server: Ubuntu Server
> Guest OS's: Also Ubuntu
>
> Any thoughts, advice?
If your backing store supports snapshots (btrfs, lvm) you could create a
snapshot while the guest is running, and backup the snapshot.
The integrity of the backup depends on whether the guest is able to
recover from restarts.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2008-11-06 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 19:32 How to do an automated backup? Steve Lorimer
2008-11-03 19:43 ` Javier Guerra
2008-11-04 8:15 ` Chris Lalancette
2008-11-04 8:27 ` Martin Maurer
2008-11-06 15:48 ` Avi Kivity [this message]
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=491311CE.7060904@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=slorimer@kmbc.edu \
/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