OpenVZ Forum - RDF feed
type: channel
items: vzmigrate and NEW VEID
items: Re: vzmigrate and NEW VEID

vzmigrate and NEW VEID
type: item
description: 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
creator: huglester
date: 2016-09-12T09:32:29-00:00

Re: vzmigrate and NEW VEID
type: item
description: For example migrate with the original VEID to OpenVZ 7 and change the ID on the destination node using vzmlocal.
creator: khorenko
date: 2016-09-12T09:57:47-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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
creator: huglester
date: 2016-09-12T10:09:38-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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?
creator: huglester
date: 2016-09-12T11:02:21-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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
creator: dowdle
date: 2016-09-12T15:34:52-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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
creator: huglester
date: 2016-09-12T17:18:21-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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
creator: dowdle
date: 2016-09-12T17:51:27-00:00

Re: vzmigrate and NEW VEID
type: item
description: 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
creator: huglester
date: 2016-09-12T18:29:32-00:00