[libvirt] A question for external snapshots with flag“VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE”

Martin Kletzander mkletzan at redhat.com
Tue Feb 28 15:11:27 UTC 2017


On Sat, Feb 25, 2017 at 09:41:40AM +0800, WangJie (Captain) wrote:
>Hello, I got a question here. When we create consistent active external
>snapshots with flag “VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE” , the
>qemuDomainSnapshotFSFreeze will be called firstly to freeze all
>filesystems in vm, and then create snapshots. For windows vm, freezing
>filesystems used by vss service. If IO pressure in vm is too big or
>internal error happened in vss , freezing filesytems will failed , and
>qemuDomainSnapshotFSFreeze returns 0 which meaning that no filesystems
>are frozen. In the function qemuDomainSnapshotCreateActiveExternal,
>libvirt creates external snapshots all the same in such a situation
>that qemuDomainSnapshotFSFreeze returns 0, but the created snapshots
>are not consistent snapshots in such a situation . So shouldn't we
>abandon creating snapshots and goto cleanup in the situation that
>qemuDomainSnapshotFSFreeze returns 0?
>

Yeah, there should probably be a check that the number of frozen
filesystems is the same as requested and error out if it's lower.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170228/a0466f0f/attachment-0001.sig>


More information about the libvir-list mailing list