OpenVZ Forum


Home » General » Support » vzmigrate and NEW VEID
vzmigrate and NEW VEID [message #52553] Mon, 12 September 2016 09:32 Go to next message
huglester is currently offline  huglester
Messages: 5
Registered: September 2016
Location: Lithuania
Junior Member
Hello,

we are migrating from OpenVZ 6 to OpenVZ 7

But we see, that vzmigrate command does not provide functionality to change the VEID.

Are there any workarounds?

Thank you
Re: vzmigrate and NEW VEID [message #52554 is a reply to message #52553] Mon, 12 September 2016 09:57 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
For example migrate with the original VEID to OpenVZ 7 and change the ID on the destination node using vzmlocal.



If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: vzmigrate and NEW VEID [message #52555 is a reply to message #52554] Mon, 12 September 2016 10:09 Go to previous messageGo to next message
huglester is currently offline  huglester
Messages: 5
Registered: September 2016
Location: Lithuania
Junior Member
Hello,
thank you for the IDEA!

Since my Container ID's are in use on the destination node, I will probably free them up on the OpenVZ 7 using vzmlocal.
and then migrate from when VEIDs are not in use anymore.

I will try later and report but the results. thank you
Re: vzmigrate and NEW VEID [message #52556 is a reply to message #52554] Mon, 12 September 2016 11:02 Go to previous messageGo to next message
huglester is currently offline  huglester
Messages: 5
Registered: September 2016
Location: Lithuania
Junior Member
So I tried to free UP the VEID 105 on the destination node.

I run:
vzmigrate --ssh='-p2222' --remove-area no --dry-run 46.1.2.3 105
And get this:

Locked CT 105
Checking migration of CT 105 to 46.1.2.3
Error: OpenVZ is not running on the target machine
Error: Can't continue migration

I am migrating from OpenVZ 6 to 7, there should be no issues with that?
I don't run any firewalls on destination node.

I have also copied the public key to the destination node..
If I do:
ssh -p2222 root@46.1.2.3 - I get access to the root shell without a password.

Any ideas on this?




Re: vzmigrate and NEW VEID [message #52557 is a reply to message #52553] Mon, 12 September 2016 15:34 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I don't believe you can use vzmigrate to migrate from OpenVZ Legacy to OpenVZ 7. You need to use ovztransfer which you can find in the OpenVZ Legacy GIT repo here:

https://src.openvz.org/projects/OVZL/repos/ovztransfer/brows e/ovztransfer.sh



--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: vzmigrate and NEW VEID [message #52558 is a reply to message #52557] Mon, 12 September 2016 17:18 Go to previous messageGo to next message
huglester is currently offline  huglester
Messages: 5
Registered: September 2016
Location: Lithuania
Junior Member
Hello,

thank you for a suggestion, yesterday I was searching for like 2 hours and did not find anything similar...

So I just tried transfering two containers, and got similar error on both transfers:

# bash ovztransfer.sh DESTINATION_IP 103:108
Checking target host parameters...
Migration of Container 103 started
Container 103: Shutting down all possible services...
vzquota : (error) Quota accounting is off
Container 103: Copying data...
ovztransfer.sh: line 30: 392458 Terminated vzctl exec $veid "mount -o bind / $tmpdir; tail -f /dev/null > $tmpdir/tmp/lock" > /dev/null 2>&1
392372: Failed to copy Container config file
Migraton of Container 103 failed with error 1
All done
Stopping all migration processes...


Container 103: Copying data... - this process is copying files, and it ok, some problem is with this mount thing :/

Thank you
Re: vzmigrate and NEW VEID [message #52559 is a reply to message #52558] Mon, 12 September 2016 17:51 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
You might verify that your container doesn't conflict with the known issues from the release notes:
https://docs.openvz.org/openvz_readme.webhelp/_known_issues_ and_restrictions.html


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: vzmigrate and NEW VEID [message #52560 is a reply to message #52559] Mon, 12 September 2016 18:29 Go to previous message
huglester is currently offline  huglester
Messages: 5
Registered: September 2016
Location: Lithuania
Junior Member
Hello

I saw that later, down the line the is an SCP command, but since I used -p2222 in the SSH_OPTS, in SCP there should be -P2222.. so I just changed new node ssh port to 22 temporary...
now I see similar error: 405554 Terminated vzctl exec $veid "mount -o bind / $tmpdir; tail -f /dev/null > $tmpdir/tmp/lock" > /dev/null 2

but transfer does not stop and it finishes and containers work after starting them!

thank you
Previous Topic: SIOCGIFFLAGS: No such device
Next Topic: [OVZ-7] Unable to select HD device where ovz-7 should be installed to (Virtualbox)
Goto Forum:
  


Current Time: Fri Apr 19 01:05:23 GMT 2024

Total time taken to generate the page: 0.01686 seconds