The following should be done to migrate OpenVZ 6 container between OpenVZ 6 nodes using vzdump:
- Connect to the source server over SSH.
Create an archive of the container:
# vzdump --compress --dumpdir /home/ VMID
VMID of VPS can be found in SolusVM > Virtual Servers.
Transfer the file to the target server, for example:
# scp -C /home/vzdump-VMID.tgz root@targetserverip:/home/
Restore the archive:
# vzdump --restore /home/vzdump-VMID.tgz VMID
Stop VPS on the source server:
# vzctl stop VMID
and start it on the target server to verify that the container is operational:
# vzctl start VMID
- Connect to Master node over SSH.
Update Master node database with the new location of VPS
# /scripts/vm-migrate ID NEWNODEID
where ID - ID of the migrated VPS, can be seen in column ID in SolusVM > Virtual Servers; NEWNODEID - ID of the target node, can be seen in SolusVM > Nodes.
For example:# /scripts/vm-migrate 20 5
After the migrated container was tested - remove VPS on the source server:
# vzctl destroy VMID