OpenVZ Local Storage Migration to another System in Cluster : Conf file only migrated

I have spent some time searching online for this answer - but to no avail - so here goes.

I went to transfer container # 106 which was using local storage to another host node.
The configuration file migrated just fine - BUT NOT THE STORAGE

Now - I have storage on 1 system and the configuration file on the other - but not sure how to get them to marry again...


Code:
Feb 04 05:50:12 starting migration of CT 106 to node 'xanadu-three' (192.168.44.233)
Feb 04 05:50:12 container data is on shared storage 'local'
Feb 04 05:50:12 dump 2nd level quota
Feb 04 05:50:12 initialize container on remote node 'xanadu-three'
Feb 04 05:50:12 initializing remote quota
Feb 04 05:50:12 # /usr/bin/ssh -o 'BatchMode=yes' root@192.168.44.233 vzctl quotainit 106
Feb 04 05:50:12 vzquota : (error) quota check : stat /var/lib/vz/private/106: No such file or directory
Feb 04 05:50:12 ERROR: Failed to initialize quota: vzquota init failed [1]
Feb 04 05:50:12 start final cleanup
Feb 04 05:50:12 ERROR: migration finished with problems (duration 00:00:00)
TASK ERROR: migration problem


I am unable to migrate back to the other server as I am given this error:

Code:
Feb 04 05:50:42 ERROR: migration aborted (duration 00:00:00): volume 'local:rootdir/106' does not exist
TASK ERROR: migration aborted


Sadly I cannot get the 106.conf file back on the other system since it thinks its there - I have tried scp and mv commands

Code:
root@xanadu-one:~# mv /106.conf /etc/pve/openvz/106.conf
mv: cannot create regular file `/etc/pve/openvz/106.conf': File exists


Any thoughts on a quick fix.

I have started to rsync the 106 folder to the new node BUT I am not sure if that will work due to permissions perhaps being a bit off...
 
Re: OpenVZ Local Storage Migration to another System in Cluster : Conf file only migr

I have spent some time searching online for this answer - but to no avail - so here goes.

I went to transfer container # 106 which was using local storage to another host node.
The configuration file migrated just fine - BUT NOT THE STORAGE
...

Code:
Feb 04 05:50:12 starting migration of CT 106 to node 'xanadu-three' (192.168.44.233)
Feb 04 05:50:12 container data is on shared storage 'local'
...
Hi,
you defined your local storage as shared, which is isn't!

Udo
 
Re: OpenVZ Local Storage Migration to another System in Cluster : Conf file only migr

Hi,
move the config to the node, where the data is:
Code:
mv /etc/pve/nodes/node-x/openvz/106.conf /etc/pve/nodes/node-y/openvz/
start the CT and remove the shared-flag for the local storage.

Udo
 
Re: OpenVZ Local Storage Migration to another System in Cluster : Conf file only migr

Hi,

... remove the shared-flag for the local storage.

Udo

Thanks for the Awesome and Quick reply... I am looking for where that flag is - as it appears to be non-shared...

Sadly this node keeps on locking up so we do need to migrate from it - but for now getting up and running is the first thing...

Screen Shot 2013-02-04 at 6.37.49 AM.png
 
Re: OpenVZ Local Storage Migration to another System in Cluster : Conf file only migr

Interesting - got an error... ( not a big fan of cpanel systems sometimes)

Code:
Feb 04 06:56:48 removing container files on local node
Feb 04 06:57:10 # rm -rf /var/lib/vz/private/106
Feb  04 06:57:05 rm: cannot remove  `/var/lib/vz/private/106/usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe':  Operation not permitted
Feb 04 06:57:10 ERROR: command 'rm -rf /var/lib/vz/private/106' failed: exit code 1
Feb 04 06:57:10 start final cleanup
Feb 04 06:57:10 ERROR: migration finished with problems (duration 00:16:01)
TASK ERROR: migration problems

I am guessing that does not matter since the container started on the other node... Here is to hoping the other few left there transfer just as easily