Backup and migration

l.mierzwa

Member
Jun 2, 2009
147
0
16
I got 4 machine cluster, on node 4 I created container with VID 137, I've set up daily backup job for this VID, so far everything works. Now I (live) migrated this container to node 2 and now my backup job fails

Code:
INFO: starting new backup job: vzdump --node 4 --snapshot --compress --storage backup 
ERROR: Backup of VM 137 failed - unable to find VM '137'
INFO: Backup job finished with errors

cron job for this backup is on every node but it contains "--node 4" parameter which I guess tells vzdump on which cluster node given VID is running and it wasn't changed after migration.
 
known issue. just click edit the job on the server (open it and click save) to update the cron. backup jobs are defined on the host, so if you migrate any VM you need to adapt the backup. or just configure to backup all VM´s (on all nodes), in this case nothing needs to adapted in the case you migrate VM´s.
 
I did update backup jobs as it was the only solution but it would be nice if it would happen automatically, I got ~60 containers, some with a big disk and most of them are just test machines and I don't care about them that much so I don't want to enable backup for all containers.