1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

feature #4064: support quiesce for disk snapshots

(cherry picked from commit 1245c82c1fe24f6c0817a5ca33c7073c0bf80635)
This commit is contained in:
Anton Todorov 2015-11-13 15:44:51 +01:00 committed by Javi Fontan
parent d1206cb0ac
commit 3549124437

View File

@ -132,6 +132,10 @@ touch $SNAP_PATH
FILENAME="/tmp/snapshot-$VMID-$DISK_ID-$SNAP_ID"
echo "$DOC" > \$FILENAME
if virsh -c $LIBVIRT_URI domfsfreeze $DEPLOY_ID ; then
trap "virsh -c $LIBVIRT_URI domfsthaw $DEPLOY_ID" EXIT TERM INT HUP
fi
virsh -c qemu:///system snapshot-create $DEPLOY_ID --disk-only --atomic \
--xmlfile \$FILENAME