OpenVZ Forum


Home » General » Support » Restore error, but restored VM seems to be working
Restore error, but restored VM seems to be working [message #11385] Thu, 22 March 2007 13:42 Go to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Hi, I have just made a restore this way:

vzctl chkpnt 109 --suspend

vzctl chkpnt 109 --dump --dumpfile /data/vz/dump/Dump.109

cd /data/vz/private/

tar -xjf 109_private.tar.bz2 109/

vzctl chkpnt 109 --suspend

scp 109_private.tar.bz2 user@destination.server:/home/user/

created a /etc/vz/conf/109.conf by copying another file, changing hostname and IP address.

untarred the private data into /home/vz/private/109 (VE_PRIVATE=/home/vz/private/$VEID on this server)

vzctl restore 109 --dumpfile /home/user/Dump.109

Then I get this error:

Error: undump failed: Invalid argument
Restoring failed:
open_listening_socket: listen: -22, 91968, 0
rst_sockets: open_listening_socket: -22
rst_sockets: -22
VE start failed

Kernel Log:


Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :open_listening_socket: listen: -22, 91968, 0
Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :rst_sockets: open_listening_socket: -22
Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :rst_sockets: -22

But if I do a vzctl start 109, everything seems to be working perfectly.

ovzkernel-2.6.9-023stab040.1
vzctl-3.0.16-1

Should I worry about that?

Am I using the right method if I want to do a simple dump and restore from one server to another (I don't want to do a migration)

Regards,


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Restore error, but restored VM seems to be working [message #11389 is a reply to message #11385] Thu, 22 March 2007 14:31 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
ugob wrote on Thu, 22 March 2007 08:42

Hi, I have just made a restore this way:

vzctl chkpnt 109 --suspend

vzctl chkpnt 109 --dump --dumpfile /data/vz/dump/Dump.109

cd /data/vz/private/

tar -xjf 109_private.tar.bz2 109/

vzctl chkpnt 109 --suspend


Why do you doing here suspend again?

Quote:

scp 109_private.tar.bz2 user@destination.server:/home/user/

created a /etc/vz/conf/109.conf by copying another file, changing hostname and IP address.

untarred the private data into /home/vz/private/109 (VE_PRIVATE=/home/vz/private/$VEID on this server)

vzctl restore 109 --dumpfile /home/user/Dump.109

Then I get this error:

Error: undump failed: Invalid argument
Restoring failed:
open_listening_socket: listen: -22, 91968, 0
rst_sockets: open_listening_socket: -22
rst_sockets: -22
VE start failed

Kernel Log:


Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :open_listening_socket: listen: -22, 91968, 0
Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :rst_sockets: open_listening_socket: -22
Mar 22 08:42:24 svr01 kernel: CPT ERR: f696a400,109 :rst_sockets: -22

But if I do a vzctl start 109, everything seems to be working perfectly.

ovzkernel-2.6.9-023stab040.1
vzctl-3.0.16-1

Should I worry about that?

Am I using the right method if I want to do a simple dump and restore from one server to another (I don't want to do a migration)

Regards,

Can you please post here config file and dump file. It will help us to analyse what is wrong.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Restore error, but restored VM seems to be working [message #11390 is a reply to message #11389] Thu, 22 March 2007 14:39 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
The second suspend was supposed to be a resume...

I can't post the dump file here, it is too big. It is 6.1 MB big and your forum allows only 2 MB uploads. I'd rather not post my config file here... Maybe I can send you the dump and the config file somewhere?

Thanks,

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Restore error, but restored VM seems to be working [message #11406 is a reply to message #11390] Thu, 22 March 2007 18:23 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Finally, I tried it again from scratch and everything went fine. If you don't want to look into it further, you can consider this issue as resolved. Maybe lack of experience on my side.

Regards,

Ugo


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Restore error, but restored VM seems to be working [message #11408 is a reply to message #11406] Thu, 22 March 2007 18:50 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
ugob wrote on Thu, 22 March 2007 13:23

Finally, I tried it again from scratch and everything went fine. If you don't want to look into it further, you can consider this issue as resolved. Maybe lack of experience on my side.



The only problem I had is that when it restored, it started the VM, but with the old IP address (I had to change the IP address, I did that by changing the .conf file).

Restoring VE ...
Starting VE ...
Initializing quota ...
VE is mounted
undump...
Adding IP address(es): 192.168.2.209
Setting CPU units: 51125
resume...
VE start in progress...
Restoring completed succesfully

But it kept the old IP address.

Not really a big issue, I only did a vzctl stop and vzctl start and everything went back to normal.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Restore error, but restored VM seems to be working [message #11428 is a reply to message #11408] Fri, 23 March 2007 10:38 Go to previous message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
I have sent you a private message with request for dump file and config, but it seems that you didn't get it Smile
I have sent you e-mail with same request.

I would like to investigate this problem deeper as it can be a bug in checkpointing.

Quote:

The only problem I had is that when it restored, it started the VM, but with the old IP address (I had to change the IP address, I did that by changing the .conf file).

When we are checkpointing VE we are saving all info (including network addresses and routes) to dump file. When we are restoring VE we are taking all info from dump file.
But you will ask: what in this case vzctl is setting?
The answer is: vzctl set IP address settings for this VE in VE0 (route and special mapping VE<->IP (/proc/vz/veip)).
In your case one IP address is restored in VE and different address is used by vzctl to set route in VE0.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* unknow error setting kernel parameters
Next Topic: privvmpages failcnt high
Goto Forum:
  


Current Time: Thu May 30 15:35:56 GMT 2024

Total time taken to generate the page: 0.01420 seconds