[Users] Live Migration Fails

Kirill Korotaev dev at sw.ru
Mon Dec 24 04:10:33 EST 2007


Can you post output of dmesg here plz?
Looks like your installation somehow broken.
I can hardly imagine why sed should normally  catch SIGSEGV.
Maybe it is compiled for some more modern CPU than you use on destinaton machine?
Or vice versa - maybe you use ancient distribution in VE?

So plz provide more info like what OS distribution is running inside VE,
dmesg output, and what other error you experienced during online migration
after fixed vzmigrate as Thorsten suggested?

Kirill


Pablo L. Arturi wrote:
>>>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
> 
> 
> I have tried the offline migration (excluding --online) from the command
> line, and the VE was migrated. But when I try to start it I get the
> following error:
> 
> [root at ovz98 111]# vzctl restart 301
> Restarting VE
> Starting VE ...
> VE is mounted
> Adding IP address(es): NNN.NNN.NNN.NNN
> bash: line 61: 29723 Segmentation fault      /bin/sed -e
> "s|^$name=.*|$name=\"$value\"|" <${file} >${file}.$$
>  ERROR: Can't change file /etc/sysconfig/network
> Setting CPU units: 41562
> Configure meminfo: 145261
> Set hostname: opertime.dnsba.com
> bash: line 61: 29740 Segmentation fault      /bin/sed -e
> "s|^$name=.*|$name=\"$value\"|" <${file} >${file}.$$
>  ERROR: Can't change file /etc/sysconfig/network
> VE start in progress...
> [root at ovz98 111]# vzlist -a
> 
> I tried also rsync-ing the entire private area with "rsync -avz", but the
> same happens.
> 
> Any idea on this?
> 
> THank you,
> Pablo
> 
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
> 



More information about the Users mailing list