1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

B #2646 Touch DST before blockcopy (#2701)

This commit is contained in:
Jan Orel 2018-12-13 17:17:37 +01:00 committed by Ruben S. Montero
parent 6d177bafd8
commit df1bb63566

View File

@ -95,6 +95,7 @@ fi
# domfsfreeze or suspend the domain before.
if [ "${LCM_STATE}" = '26' ] && [ "${SNAP_ID}" = '-1' ]; then
CPDS_CMD_EXPORT=$(cat <<EOF
touch ${DST_PATH}
if ! virsh -c ${LIBVIRT_URI} blockcopy ${DEPLOY_ID} ${DISK_TARGET} ${DST_PATH} --wait --finish; then
if virsh -c ${LIBVIRT_URI} domfsfreeze ${DEPLOY_ID}; then
trap "virsh -c ${LIBVIRT_URI} domfsthaw ${DEPLOY_ID}" EXIT TERM INT HUP