Compatibility OpenVZ 6 and 7 [message #52898] |
Mon, 24 July 2017 13:18 |
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 #52946 is a reply to message #52938] |
Sun, 03 September 2017 08:34 |
goeldi
Messages: 92 Registered: June 2006
|
Member |
|
|
mangust wrote on Sat, 02 September 2017 21:56Just copy files (with permissions) tar, scp, untar:
/vz/private/<VEID>
/etc/vz/conf/<VEID>.conf
create /vz/root/<VEID> on the destination
Migrated
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 #52952 is a reply to message #52946] |
Sun, 03 September 2017 12:20 |
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.
|
|
|