When you migrate vm from one node to another, and it fail(any reason),
Proxmox delete local copy of vm on local node.

Logic of migrate must be like this.
1 - Copy CT to another node
2 - sync CT
3 - suspend, dump
4 - copy on another node
5 - restore, unsuspend.

If one of this actions fail, it MUST be restored on current node.
Now we can see something like this:

Nov 01 13:32:55 container is running - using online migration
Nov 01 13:32:56 starting rsync phase 1
-----------
Nov 01 13:34:18 start live migration - suspending container
Nov 01 13:34:18 dump container state
Nov 01 13:34:18 copy dump file to target node
Nov 01 13:34:20 starting rsync (2nd pass)
Nov 01 13:34:20 dump 2nd level quota
Nov 01 13:34:20 copy 2nd level quota to target node
Nov 01 13:34:22 initialize container on remote node 'node2'
Nov 01 13:34:22 initializing remote quota
Nov 01 13:34:22 turn on remote quota
Nov 01 13:34:22 load 2nd level quota
Nov 01 13:34:22 starting container on remote node 'node2'
Nov 01 13:34:22 restore container state
Nov 01 13:34:23 Restoring container ...
Nov 01 13:34:23 Starting container ...
Nov 01 13:34:23 Container is mounted
Nov 01 13:34:23 undump...
Nov 01 13:34:23 Setting CPU units: 1000
Nov 01 13:34:23 Setting CPUs: 1
Nov 01 13:34:23 Setting devices
Nov 01 13:34:23 Error: undump failed: Cannot allocate memory
Nov 01 13:34:23 Restoring failed:
Nov 01 13:34:23 Error: do_rst_vma: sc_m(un)lock failed
Nov 01 13:34:23 Error: do_rst_mm: failed to restore vma: -12
Nov 01 13:34:23 Error: do_rst_mm 62421312
Nov 01 13:34:23 Error: rst_mm: -12
Nov 01 13:34:23 Error: make_baby: -12
Nov 01 13:34:23 Error: rst_clone_children
Nov 01 13:34:23 Container is unmounted
Nov 01 13:34:23 ERROR: online migrate failure - Failed to restore
container: Container start failed
Nov 01 13:34:23 *removing container files on local node*
Nov 01 13:34:25 start final cleanup
Nov 01 13:34:26 ERROR: migration finished with problems (duration 00:01:31)
TASK ERROR: migration problems

It's a bug or a feature?
_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to