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

B #5922: Migrate also vm.xml and ds.xml (#2244)

(cherry picked from commit 78bae2762c1ecb40c99c385527300801649700b4)
This commit is contained in:
Jan Orel 2022-07-22 09:37:16 +02:00 committed by Ruben S. Montero
parent 47cb7b891e
commit ee88c0ffcb
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -180,6 +180,11 @@ else
fi
done
# copy vm.xml and ds.xml from the $VM_DIR
if ls $VM_DIR/*.xml > /dev/null; then
multiline_exec_and_log "tar -cSf - $VM_DIR/*.xml | $SSH $DEST_HOST 'tar xSf - -C / '" \
"Failed to copy xml files to $DEST_HOST"
fi
# freeze/suspend domain and rsync raw disks again
if [ -n "$RAW_DISKS" ]; then
@ -287,4 +292,3 @@ fi
if [ "x$CLEANUP_MEMORY_ON_STOP" = "xyes" ]; then
(sudo -l | grep -q sysctl) && sudo -n sysctl vm.drop_caches=3 vm.compact_memory=1 &>/dev/null &
fi