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:
parent
d1206cb0ac
commit
3549124437
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user