OpenVZ migration failed

bhennigar

Member
Mar 20, 2012
62
0
6
Haliafax, NS Canada
I have a 2 node cluster both using local storage.
I attempted to migrate a stopped OpenVZ (VM ID 101) from node 2 to node 1 and it said it was successful.
It shows up in the list for node 1 however it does not start because it can't find the files. If I look in /var/lib/vz/private on node 1 and the directory for 101 is not there. If i look in /var/lib/vz/private on node 2, the directory for 101 is there.

When I tried to manually copy the /etc/vz/conf/101.conf file back to node 2, it said the file already exists. Looking on node 2, the file does not exist.

At this point I don't care which node it ends up on, I just want to know how to get it working again.

Thanks!
 
To move the openvz config file use the following command:

# mv /etc/pve/nodes/<oldnode>/openvz/<vmid>.conf /etc/pve/nodes/<newnode>/openvz

Note: /etc/pve/ is a distributed cluster file system, so you need quorum to do that.