OpenVZ Forum


Home » Mailing lists » Users » Live Migration Fails
Re: Live Migration Fails [message #25417 is a reply to message #25413] Mon, 24 December 2007 09:05 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

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@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@localhost to root@ovz98
>>>>
>>>>This is HWN configurations:
>>>>
>>>>[root@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@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@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@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@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@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
>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 64-bit host, 32-bit guests and iptables
Next Topic: How to set resource quota of other process
Goto Forum:
  


Current Time: Tue Nov 19 10:24:46 GMT 2024

Total time taken to generate the page: 0.03043 seconds