Re: [libvirt] libvirt external disk-only snapshot will pause the VM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/06/2014 11:17 AM, Yuanzhen Gu wrote:

>> Guest freeze/thaw (virDomainFSFreeze) only works on a live guest.  So
>> what you will have to do is:
>>
>> virDomainFSFreeze(vm1, ...)
>> virDomainFSFreeze(vm2, ...)
>> virDomainSuspend(vm1)
>> virDomainSuspend(vm2)
>> virDomainSnapshotCreateXML(vm1, ...)
>> virDomainSnapshotCreateXML(vm2, ...)
>> virDomainResume(vm1)
>> virDomainResume(vm2)
>> virDomainFSThaw(vm1, ...)
>> virDOmainFSThaw(vm2, ...)
>>
> 
>     I see, thanks.
> 
>>
>> However, I honestly don't know why you think you need disk snapshots
>> from the same point in time across multiple VMs, though.
> 
> 
>    you suggested that external disk-only snapshot, libvirt will freeze/thaw
> before/after taking snapshot

For a single guest, yes, libvirt can handle both the freeze/thaw and any
necessary pause/resume of the guest automatically.  But as soon as you
are coordinating multiple guests, it is up to you do to the
coordination.  Libvirt handles the case of taking a snapshot when the
guest is already frozen and paused, but the burden of doing the three
steps in parallel across VMs is now up to you instead of all three steps
in a single API call for one VM.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux