OpenVZ Forum


Home » General » Support » VPS checkpointing problem
VPS checkpointing problem [message #6460] Mon, 18 September 2006 11:01 Go to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
i tried to play with checkpointing
http://wiki.openvz.org/Checkpointing_and_live_migration

first time i made dump and restore on same host and all was ok.


sudo vzctl start 2
sudo vzctl chkpnt 2 --suspend
sudo vzctl chkpnt 2 --dump --dumpfile /home/dagr/2.dump
sudo vzctl chkpnt 2 --kill
sudo vzctl restore 2 --undump --dumpfile /home/dagr/2.dump
sudo vzctl restore 2 --resume

VPS - was default centos - inside sendmail processes .

after that i entered VPS - run this commands
screen
top -d 1
// then detached ssh client - and after relogining i saw screen and top procceses inside vps - it was ok .
then repeated all above with chkpointing and got at the end

[dagr@mydbtest ~]$ sudo vzctl restore 2 --undump --dumpfile /home/dagr/2.dump
Restoring VPS ...
Starting VPS ...
VPS is mounted
undump...
Adding IP address(es): 192.168.102.2
Setting CPU units: 1000
Error: undump failed: No such file or directory
Restoring failed:
rst_file: -2 48448
rst_files: -2
make_baby: -2
rst_clone_children
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted


//////////////////////////////////
so the question is - why did it failed ?
Re: VPS checkpointing problem [message #6467 is a reply to message #6460] Mon, 18 September 2006 12:10 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Did you try to restore it two times?
You can restore VPS only one time as VPS file system changes after VPS is restored.

Can you please post here full list of commands before you got this error.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS checkpointing problem [message #6471 is a reply to message #6460] Mon, 18 September 2006 12:59 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
of course i didnt tried to restore it 2 times
here is list of commands

sudo vzctl start 2
sudo vzctl chkpnt 2 --suspend
sudo vzctl chkpnt 2 --dump --dumpfile /home/dagr/2.dump
sudo vzctl chkpnt 2 --kill
sudo vzctl restore 2 --undump --dumpfile /home/dagr/2.dump
sudo vzctl restore 2 --resume
sudo vzctl stop 2

sudo vzctl start 2

<<
here i entered vps and launched screen and top -d 1 inside it
then detached (just dropped connection)
after such trick you are able to enter vps again , run "screen -r" and you get to same console where top -d 1
<<
and after that: (i write successfull commands without output)

sudo vzctl chkpnt 2 --suspend
sudo vzctl chkpnt 2 --dump --dumpfile /home/dagr/2.dump
sudo vzctl chkpnt 2 --kill
[dagr@mydbtest ~]$ sudo vzctl restore 2 --undump --dumpfile /home/dagr/2.dump
Restoring VPS ...
Starting VPS ...
VPS is mounted
undump...
Adding IP address(es): 192.168.102.2
Setting CPU units: 1000
Error: undump failed: No such file or directory
Restoring failed:
rst_file: -2 48448
rst_files: -2
make_baby: -2
rst_clone_children
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted
/home/dagr/2.dump
Restoring VPS ...
Starting VPS ...
VPS is mounted
undump...
Adding IP address(es): 192.168.102.2
Setting CPU units: 1000
Error: undump failed: No such file or directory
Restoring failed:
rst_file: -2 48448
rst_files: -2
make_baby: -2
rst_clone_children
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted
Re: VPS checkpointing problem [message #6472 is a reply to message #6471] Mon, 18 September 2006 13:01 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
also i noticed when i run simply "screen" or tail -f 1.txt >/dev/null 2>&1 & - dump/restore - goes ok
Re: VPS checkpointing problem [message #6474 is a reply to message #6471] Mon, 18 September 2006 13:50 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Can you please attach here gzipped dump file.
Can yo give me an access to HW node to investigate this issue?


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS checkpointing problem [message #6477 is a reply to message #6472] Mon, 18 September 2006 15:48 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
What kernel did you use in your experiments?
If you compiled it yourself please post here .config.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS checkpointing problem [message #6497 is a reply to message #6460] Tue, 19 September 2006 11:23 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
Linux mydbtest.ipcb.msk 2.6.9-023stab016.2-smp #1 SMP Fri Aug 11 00:06:44 MSD 20
06 i686 i686 i386 GNU/Linux


RHEL 4.3 ES



Strange - but now all seems ok. I cant repeat this bug
Re: VPS checkpointing problem [message #6502 is a reply to message #6497] Tue, 19 September 2006 12:42 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
If you find out how to reproduce this bug, then please save dump file and post it here for further investigation.

Thanks!


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS checkpointing problem [message #6504 is a reply to message #6460] Tue, 19 September 2006 13:12 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
will do
Re: VPS checkpointing problem [message #27371 is a reply to message #6504] Fri, 15 February 2008 18:02 Go to previous messageGo to next message
sabetta is currently offline  sabetta
Messages: 1
Registered: February 2008
Junior Member
After so much time, I'm having the exact same problem using kernel 2.6.18-028stab027.
Did the OP find the cause of the problem? Does anybody have suggestions on how to solve it?
I can provide a bunch of dumps that cause the problem, if you want to reproduce it. I'll be glad to provide you with all the info that is necessary to track down the problem.
Thanks for your help.

AS


Antonino Sabetta
ISTI-CNR, Pisa, Italy
www.sabetta.com
Re: VPS checkpointing problem [message #27596 is a reply to message #6460] Wed, 20 February 2008 10:58 Go to previous message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
Sabetta, please, fill the bug and attach the dump files. We'll investigate this issue.

Thanks.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: How to fine tune the server performace
Next Topic: Networking questions
Goto Forum:
  


Current Time: Sun Nov 10 19:50:03 GMT 2024

Total time taken to generate the page: 0.04881 seconds