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

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

This commit is contained in:
Jan Orel 2022-07-22 09:37:16 +02:00 committed by GitHub
parent 24112c3338
commit 78bae2762c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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