OpenVZ Forum


Home » General » Support » [solved] Checkpointing does not work ?
icon9.gif  [solved] Checkpointing does not work ? [message #33968] Fri, 21 November 2008 21:23 Go to next message
ronnidk is currently offline  ronnidk
Messages: 7
Registered: November 2008
Location: Denmark
Junior Member
Hi,

I want to substitue one of my virtual servers, so the new one get the old ones information; container id, hostname, ip etc.

I read in this thread: http://forum.openvz.org/index.php?t=msg&goto=29069&

That I should do this:
host# vzctl chkpnt 101 --dumpfile /tmp/Dump.101
host# mv /etc/vz/conf/101.conf /etc/vz/conf/102.conf
host# mv /vz/private/101 /vz/private/102
host# mv /vz/root/101 /vz/root/102
host# vzctl restore 102 --dumpfile /tmp/Dump.101

But when I do:
vzctl chkpnt 101 --dumpfile /tmp/Dump.101

I get thsi error:
Setting up checkpoint...
suspend...
dump...
Can not dump container: Invalid argument
Error: iptables-save exited with 255
Checkpointing failed

The /var/log/vzctl.log also just tells me that it can't dump the container, but not why?

Any help?

- Ronni

[Updated on: Tue, 25 November 2008 13:26] by Moderator

Report message to a moderator

Re: Checkpointing does not work ? [message #33973 is a reply to message #33968] Sat, 22 November 2008 11:55 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
Please see if this thread will help you.

http://forum.openvz.org/index.php?t=msg&goto=29169&& amp;srch=iptables-save+exited+with+255#msg_29169

It worked for me.
Re: Checkpointing does not work ? [message #33982 is a reply to message #33973] Mon, 24 November 2008 07:34 Go to previous messageGo to next message
ronnidk is currently offline  ronnidk
Messages: 7
Registered: November 2008
Location: Denmark
Junior Member
Hi,

I looked at the thread you referred to.

If I do a ls -l /sbin/iptables* I get this:
-rwxr-xr-x 1 root root 60992 2008-08-11 17:12 /sbin/iptables
-rwxr-xr-x 1 root root 65416 2008-08-11 17:12 /sbin/iptables-restore
-rwxr-xr-x 1 root root 65280 2008-08-11 17:12 /sbin/iptables-save
-rwxr-xr-x 1 root root 18776 2008-08-11 17:12 /sbin/iptables-xml

So I already have the iptables-save and iptables-restore scripts.
I dont use iptables yet, but I will at some point. If I use the suggested solution, how do I reverse it, when I get to use iptables, and will I then experience the same error?

- Ronni
Re: Checkpointing does not work ? [message #33992 is a reply to message #33982] Mon, 24 November 2008 12:57 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
ronnidk wrote on Mon, 24 November 2008 02:34

Hi,

I looked at the thread you referred to.

If I do a ls -l /sbin/iptables* I get this:
-rwxr-xr-x 1 root root 60992 2008-08-11 17:12 /sbin/iptables
-rwxr-xr-x 1 root root 65416 2008-08-11 17:12 /sbin/iptables-restore
-rwxr-xr-x 1 root root 65280 2008-08-11 17:12 /sbin/iptables-save
-rwxr-xr-x 1 root root 18776 2008-08-11 17:12 /sbin/iptables-xml

So I already have the iptables-save and iptables-restore scripts.
I dont use iptables yet, but I will at some point. If I use the suggested solution, how do I reverse it, when I get to use iptables, and will I then experience the same error?

- Ronni

The referenced article was applicable to folks that didn't have iptables installed. Don't use the suggested solution in your case.

Since it appears that iptables-save isn't working, you might try running iptables-save from the command line to see if it gives you an error message. I have a system that doesn't use iptables but it is installed and when I run iptables-save manually it completes without error and returns a 0.

Jim.
Re: Checkpointing does not work ? [message #34001 is a reply to message #33992] Tue, 25 November 2008 07:10 Go to previous messageGo to next message
ronnidk is currently offline  ronnidk
Messages: 7
Registered: November 2008
Location: Denmark
Junior Member
I've run /sbin/iptables-save on my server (Ubuntu 8.10) which seem to work.
I get the following output:

# Generated by iptables-save v1.4.0 on Tue Nov 25 08:06:33 2008
*filter
:INPUT ACCEPT [125:13040]
:FORWARD ACCEPT [58:4673]
:OUTPUT ACCEPT [96:12110]
COMMIT
# Completed on Tue Nov 25 08:06:33 2008

I ran the iptables-save on my workstation @ work (Ubuntu 8.10), which gave me this output:

# Generated by iptables-save v1.4.0 on Tue Nov 25 08:06:03 2008
*filter
:INPUT ACCEPT [1017917:1038266678]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [721641:134562042]
COMMIT
# Completed on Tue Nov 25 08:06:03 2008

So it seems to work? Unless theres a bug in Ubuntu ?

- Ronni

[Updated on: Tue, 25 November 2008 07:12]

Report message to a moderator

Re: Checkpointing does not work ? [message #34008 is a reply to message #34001] Tue, 25 November 2008 11:40 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
It may seem obvious but I have to ask, did you run the iptables-save command on the VE 101 which is what you are trying to checkpoint? In your last message you talked about running it on a server but I didn't get a warm feeling that the "server" was the VE that you are checkpointing.

Jim.

vzctl exec 101 iptables-save
Re: Checkpointing does not work ? [message #34010 is a reply to message #34008] Tue, 25 November 2008 13:12 Go to previous message
ronnidk is currently offline  ronnidk
Messages: 7
Registered: November 2008
Location: Denmark
Junior Member
Uuuh... that gave me a command not found...

Smile

I will try the solution in the thread you suggested earlier.

Update: And it works! Smile
Sweet! Thank you!!!

- Ronni

[Updated on: Tue, 25 November 2008 13:17]

Report message to a moderator

Previous Topic: Private/public IPs on VEs
Next Topic: sudo audit log
Goto Forum:
  


Current Time: Sun Nov 17 15:10:30 GMT 2024

Total time taken to generate the page: 0.02902 seconds