OpenVZ Forum


Home » General » Support » Can't vzmigrate to new container id
Can't vzmigrate to new container id [message #49015] Wed, 20 February 2013 15:50 Go to next message
Metalmurphy is currently offline  Metalmurphy
Messages: 4
Registered: February 2013
Junior Member
I was under the impression that you migrate to a new containerID simply by using the paramenter <oldid>:<newid> on vzmigrate, however the command doesn't recognize the parameter like that.

I'm running on a CentOS 6 machine with 2.6.32-042stab074.4 kernel.

I don't know what version of vzctl I'm running because I'm don't know how to check, if anyone can tell me how too I'd appreceate it.
Re: Can't vzmigrate to new container id [message #49021 is a reply to message #49015] Sat, 23 February 2013 21:13 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
To find out more about vzctl and vzmigrate, simply try (two separate commands):

man vzmigrate
man vzctl
Re: Can't vzmigrate to new container id [message #49023 is a reply to message #49015] Mon, 25 February 2013 12:31 Go to previous messageGo to next message
Metalmurphy is currently offline  Metalmurphy
Messages: 4
Registered: February 2013
Junior Member
Hi Ales,

neither of the manuals mention their versions, nor does the vzmigrate manual mention migrating to a different container ID. Yet I've seen references of this in many places using a format like this:
server@linux[~]#vzmigrate -r no 192.168.0.1 110:120


Is this option only available in a special version of vzmigrate? Where can I get it?
Re: Can't vzmigrate to new container id [message #49025 is a reply to message #49015] Mon, 25 February 2013 14:10 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
The manuals do not contain the version itself, but they do tell you which command switch to use to display the version Smile

vzctl --version


On CentOS you can display the installed packages by using yum or rpm, for example:

yum info vzctl
rpm -q vzctl


The vzmigrate script is also a part of the vzctl package and doesn't seem to have a separate version. Perhaps this caused some confusion...

I'm afraid I don't use vzmigrate in the way you do, so I can't help you with the migrate command itself. Someone else will hopefully be able to...
Re: Can't vzmigrate to new container id [message #49026 is a reply to message #49015] Mon, 25 February 2013 14:37 Go to previous message
Metalmurphy is currently offline  Metalmurphy
Messages: 4
Registered: February 2013
Junior Member
Oh, that would explain why I couldn't get any info on vzmigrate on yum.


It seems I do have the latest version, however I don't understand why the <old ctid>:<new ctid> format isn't available. Maybe the references that I saw to this were from a previous version and it has since been removed.

I'll have to look around to another efficient way of migrating under different CTID then.

Thanks for the help.
Previous Topic: ping receives no packets, but tcpdump can see them coming in
Next Topic: Sources for precreated templates ?
Goto Forum:
  


Current Time: Tue Feb 11 09:40:27 GMT 2025

Total time taken to generate the page: 0.06261 seconds