OpenVZ Forum


Home » General » Support » Compatibility OpenVZ 6 and 7 (migration - vzdump/vzmigrate)
Compatibility OpenVZ 6 and 7 [message #52898] Mon, 24 July 2017 13:18 Go to next message
slrslr is currently offline  slrslr
Messages: 12
Registered: April 2014
Junior Member
Hello,

my config: CentOS 6.6 64bit 2.6.32-042stab093.5 , simfs VPS's and i want to move to the server with CentOS 7.x 3.x OpenVZ kernel. (this may work, but i ended up on the server:
Operating System: OpenVZ release 7.0.4
CPE OS Name: cpe:/o:virtuozzoproject:vz:7
Kernel: Linux 3.10.0-514.16.1.vz7.30.15
)

And duriong vzmigrate the error is:
Quote:
bash: /etc/init.d/vz: No such file or directory
Error: OpenVZ is not running on the target machine
Error: Can't continue migration


How can i work around this please?

There is a script that can migrate the container one at a time: https://openvz.org/Upgrade_script_from_OpenVZ_to_Virtuozzo_7

i was unable to migrate, because it is incompatible. no vzdump at openvz7, vzmigrate says "consider switching to pmigrate utility" which is not present and unsure where to get it. openvz6 vzmigrate does not talk to openvz7. So no vzdump, no vzmigrate (per my knowledge). Script mentioned in previous paragraph probably works, but every other migration failed with errors "Failed to copy data ... terminated" and also it complained about vzquota. 19GB VPS transfer took whole day. 1.4GB VPS 1 hour+. Is there anyone please who knows safe, no error way to migrate with minimum downtime?

Thank You

[Updated on: Fri, 28 July 2017 22:22]

Report message to a moderator

Re: Compatibility OpenVZ 6 and 7 [message #52938 is a reply to message #52898] Sun, 03 September 2017 01:56 Go to previous messageGo to next message
mangust is currently offline  mangust
Messages: 39
Registered: April 2008
Location: USA
Member
Just copy files (with permissions) tar, scp, untar:
/vz/private/<VEID>
/etc/vz/conf/<VEID>.conf

create /vz/root/<VEID> on the destination

Migrated Smile
Re: Compatibility OpenVZ 6 and 7 [message #52946 is a reply to message #52938] Sun, 03 September 2017 08:34 Go to previous messageGo to next message
goeldi
Messages: 92
Registered: June 2006
Member
mangust wrote on Sat, 02 September 2017 21:56
Just copy files (with permissions) tar, scp, untar:
/vz/private/<VEID>
/etc/vz/conf/<VEID>.conf

create /vz/root/<VEID> on the destination

Migrated Smile


No, this is wrong. You described a migration between two OpenVZ 6 Nodes.

From 6 to 7 you have to use ovztransfer. This works only in the direction 6 to 7.

Here you can find the script: ovztransfer

[Updated on: Sun, 03 September 2017 08:39]

Report message to a moderator

Re: Compatibility OpenVZ 6 and 7 [message #52947 is a reply to message #52946] Sun, 03 September 2017 09:26 Go to previous messageGo to next message
mangust is currently offline  mangust
Messages: 39
Registered: April 2008
Location: USA
Member
I was just copied this way one of the container from 6 to 7 last night.
SIMFS has some limited support. Quota is not working etc. Maybe i should convert it to ploop before copy.
Will check your utility. I am just learning. Hate ploop, it is a full visualization way to go.
Re: Compatibility OpenVZ 6 and 7 [message #52952 is a reply to message #52946] Sun, 03 September 2017 12:20 Go to previous message
mangust is currently offline  mangust
Messages: 39
Registered: April 2008
Location: USA
Member
Ok, I used that command.

Strange it takes one IP as argument.
[root@node01 ~]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
7104 - suspended - -
[root@node01 ~]# ./ovztransfer.sh localhost 7104:7105
Checking target host parameters...
Migration of Container 7104 started
Container 7104: Shutting down all possible services...
./ovztransfer.sh: line 73: /usr/sbin/vzdqdump: No such file or directory
Container 7104: Copying data...
Container 7104: Setting up destination Container...
Container 7104: Done, cleaning...
Migration of Container 7104 completed successfully
All done
Stopping all migration processes...
[root@node01 ~]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
7104 - stopped - -
7105 - stopped - -

Seems it works, don't know if I should worry about vzdqdump missing?

I did this command on the ovz7 node itself.
Previous Topic: Problem with IPTABLES OpenVZ kernel
Next Topic: strange process in ps auxww
Goto Forum:
  


Current Time: Tue Mar 19 07:51:13 GMT 2024

Total time taken to generate the page: 0.03759 seconds