[Users] Live Migration Fails

Pablo L. Arturi parturi at bairesweb.com
Sun Dec 23 16:25:13 EST 2007


> Pablo L. Arturi wrote:
> > Hello guys, does anyone knows why while trying to migrate a VE I get
this
> > error?
> >
> > root at hostbw-253 ~]# vzmigrate -r no --online --keep-dst -v 10.0.10.251
111
> > OPT:-r
> > OPT:--online
> > OPT:--keep-dst
> > OPT:-v
> > OPT:10.0.10.251
> > Starting online migration of VE 111 on 10.0.10.251
> > OpenVZ is running...
> >     Loading /etc/vz/vz.conf and /etc/vz/conf/111.conf files
> >     Check IPs on destination node: 190.2.55.204 10.0.10.204
> > Preparing remote node
> >     Copying config file
> > 111.conf                                      100%  882     0.9KB/s
00:00
> > Saved parameters for VE 111
> > /usr/sbin/vzmigrate: line 382: [: missing `]'
> >     Creating remote VE root dir
> >     Creating remote VE private dir
> >     VZ disk quota disabled -- skipping quota migration
> > Syncing private
> > Live migrating VE
> >     Suspending VE
> > Setting up checkpoint...
> >         suspend...
> >         get context...
> > Checkpointing completed succesfully
> >     Dumping VE
> > Setting up checkpoint...
> >         join context..
> >         dump...
> > Can not dump VE: Invalid argument
> > iptables-save exited with 255
> > Checkpointing failed
> > Error:  Failed to dump VE
> > Resuming...
> > Running: /usr/lib/vzctl/scripts/vps-net_add
> >         put context
> > The migration is from root at localhost to root at ovz98
> >
> > This is HWN configurations:
> >
> > [root at localhost ~]# uname -a
> > Linux localhost.localdomain 2.6.18-ovz028stab035.1-smp #1 SMP Sat Jun 9
> > 12:15:32 MSD 2007 i686 i686 i386 GNU/Linux
> >
> >
> > [root at localhost ~]# rpm -qa | grep vz
> > vzrpm44-4.4.1-22.5
> > vzrpm43-python-4.3.3-7_nonptl.6
> > vzyum-2.4.0-11
> > vzpkg-2.7.0-18
> > vztmpl-fedora-core-3-2.0-2
> > vztmpl-fedora-core-5-2.0-2
> > vzctl-3.0.22-1
> > ovzkernel-smp-2.6.9-023stab032.1
> > ovzkernel-smp-2.6.16-026test020.1
> > vzrpm44-python-4.4.1-22.5
> > vzrpm43-4.3.3-7_nonptl.6
> > vztmpl-centos-4-2.0-2
> > vztmpl-fedora-core-4-2.0-2
> > kernel-smp-2.6.18-ovz028stab035.1
> > vzctl-lib-3.0.22-1
> > vzquota-3.0.11-1
> >
> > [root at ovz98 ~]# uname -a
> > Linux ovz98.dnsba.com 2.6.18-53.el5.028stab051.1 #1 SMP Fri Nov 30
03:05:22
> > MSK 2007 i686 athlon i386 GNU/Linux
> >
> > [root at ovz98 ~]# rpm -qa | grep vz
> > ovzkernel-2.6.18-8.1.4.el5.028stab035.1
> > vzrpm44-4.4.1-22.5
> > vzrpm43-python-4.3.3-7_nonptl.6
> > vzyum-2.4.0-11
> > vztmpl-centos-4-2.0-2
> > vztmpl-fedora-core-4-2.0-2
> > vzctl-3.0.22-1
> > ovzkernel-2.6.18-53.el5.028stab051.1
> > vzrpm44-python-4.4.1-22.5
> > vzrpm43-4.3.3-7_nonptl.6
> > vzpkg-2.7.0-18
> > vztmpl-fedora-core-3-2.0-2
> > vztmpl-fedora-core-5-2.0-2
> > vzctl-lib-3.0.22-1
> > vzquota-3.0.11-1
> >
> >
> >
> > Any idea?
> >
> Hi Pablo,
>
> yep, since the last git commit to vzmigrate (->
>
http://git.openvz.org/?p=vzctl;a=commitdiff;h=ebd5fb00a4eb0134d7ef4ebfdc0b6ae43d07d8fd
> ), the extended test command was removed, so change at line 382:
>
> if [ $? != 20 && $? != 21 && $? != 0 ]; then
>
> to:
> if [[ $? != 20 && $? != 21 && $? != 0 ]]; then
>
> Bye,
>   Thorsten

Hello Thorsten, thanks for your reply.

I changed the line 382 and the '/usr/sbin/vzmigrate: line 382: [: missing
`]' dissapeared. But I keep getting the other errors which doesn't let the
VE to be migrated.
Any other idea?

Thank you,
Pablo



More information about the Users mailing list