What is the best/recomended/official way to backup VMs

Jarl Friis jarl at gavia.dk
Thu Aug 13 11:46:16 UTC 2009


James Dinkel <jdinkel at gmail.com> writes:

> 1.  (*) text/plain          ( ) text/html           
>
> On Wed, Aug 12, 2009 at 6:23 AM, Jarl Friis <jarl at gavia.dk> wrote:
>
>>
>> So I am going for a scheduled down time and just
>> virsh shutdown
>> make backup of disk-image
>> virsh start
>>
>
> Even if you are going to shutdown the virtual machines, you can still use
> lvm snapshots to minimize your downtime.  Shutdown all your virtual
> machines, take an lvm snapshot of the volume with the disk images, then
> power back on your virtual machines.  Then you can back up the disk images
> from the lvm snapshot and you don't have to wait for the backup to complete
> before powering your machines back on.

That sound like a reasonable improvement to my approach. I should of
course make sure that "virsh save" and "virsh restore" works for
powered off cirtual machines, but I would guess they do. Thanks a lot.

Jarl






More information about the ubuntu-server mailing list