OpenVZ Forum


Home » Mailing lists » Users » Live Migration and shell
Live Migration and shell [message #20453] Tue, 18 September 2007 07:09 Go to next message
Christian Kaiser2 is currently offline  Christian Kaiser2
Messages: 27
Registered: May 2007
Junior Member
Hi all,

I did a Live Migration today using two hardware nodes that were running the
OpenVZ Kernel 2.6.18-028stab035. Before live migrating, I started a screen
session inside the VE and in the screen sessions' shell I launched the
following command:

      while [ true ]; do date; sleep 1; done

After the migration I entered the VE and the screen session but the while
loop wasn't running anymore. It wasn't printing the date every second as
expected. When I do chechkpointing and restoring on the same machine the
loop is running fine after restoring.

Is there someone experiencing  the same problem?

Mit freundlichen Grüßen / Best Regards
Christian Kaiser
--
IBM Deutschland Entwicklung GmbH
Open Systems Firmware Development
mail: ckaiser2@de.ibm.com

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
Re: Live Migration and shell [message #20458 is a reply to message #20453] Tue, 18 September 2007 08:13 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Christian,

Most likely you have too much unsychronized time on these machines.
Please synchronize it with NTP or by hands and retry.

Kirill

Christian Kaiser2 wrote:
> Hi all,
> 
> I did a Live Migration today using two hardware nodes that were running the
> OpenVZ Kernel 2.6.18-028stab035. Before live migrating, I started a screen
> session inside the VE and in the screen sessions' shell I launched the
> following command:
> 
>       while [ true ]; do date; sleep 1; done
> 
> After the migration I entered the VE and the screen session but the while
> loop wasn't running anymore. It wasn't printing the date every second as
> expected. When I do chechkpointing and restoring on the same machine the
> loop is running fine after restoring.
> 
> Is there someone experiencing  the same problem?
> 
> Mit freundlichen Grüßen / Best Regards
> Christian Kaiser
> --
> IBM Deutschland Entwicklung GmbH
> Open Systems Firmware Development
> mail: ckaiser2@de.ibm.com
> 
> IBM Deutschland Entwicklung GmbH
> Vorsitzender des Aufsichtsrats: Martin Jetter
> Geschäftsführung: Herbert Kircher
> Sitz der Gesellschaft: Böblingen
> Registergericht: Amtsgericht Stuttgart, HRB 243294
> 
>
Re: Live Migration and shell [message #20464 is a reply to message #20458] Tue, 18 September 2007 09:22 Go to previous message
Christian Kaiser2 is currently offline  Christian Kaiser2
Messages: 27
Registered: May 2007
Junior Member
You're right!
Different time zones and an unsynchronized clock must have caused the
error. I think the "sleep 1" caused the error because the SIG_ALARM was on
the other host not after one second but after a few hours ;-)

Mit freundlichen Grüßen / Best Regards
Christian Kaiser
--
IBM Deutschland Entwicklung GmbH
Open Systems Firmware Development
mail: ckaiser2@de.ibm.com

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

Kirill Korotaev <dev@sw.ru> wrote on 09/18/2007 10:15:11 AM:

> Christian,
>
> Most likely you have too much unsychronized time on these machines.
> Please synchronize it with NTP or by hands and retry.
>
> Kirill
>
> Christian Kaiser2 wrote:
> > Hi all,
> >
> > I did a Live Migration today using two hardware nodes that were running
the
> > OpenVZ Kernel 2.6.18-028stab035. Before live migrating, I started a
screen
> > session inside the VE and in the screen sessions' shell I launched the
> > following command:
> >
> >       while [ true ]; do date; sleep 1; done
> >
> > After the migration I entered the VE and the screen session but the
while
> > loop wasn't running anymore. It wasn't printing the date every second
as
> > expected. When I do chechkpointing and restoring on the same machine
the
> > loop is running fine after restoring.
> >
> > Is there someone experiencing  the same problem?
> >
> > Mit freundlichen Grüßen / Best Regards
> > Christian Kaiser
> > --
> > IBM Deutschland Entwicklung GmbH
> > Open Systems Firmware Development
> > mail: ckaiser2@de.ibm.com
> >
> > IBM Deutschland Entwicklung GmbH
> > Vorsitzender des Aufsichtsrats: Martin Jetter
> > Geschäftsführung: Herbert Kircher
> > Sitz der Gesellschaft: Böblingen
> > Registergericht: Amtsgericht Stuttgart, HRB 243294
> >
> >
Previous Topic: Physical server to OpenVZ
Next Topic: forcibly purging quota?
Goto Forum:
  


Current Time: Sat May 04 20:30:27 GMT 2024

Total time taken to generate the page: 0.01840 seconds