Restore error, but restored VM seems to be working [message #11385] |
Thu, 22 March 2007 13:42 |
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 |
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
|
|
|
|
|
Re: Restore error, but restored VM seems to be working [message #11408 is a reply to message #11406] |
Thu, 22 March 2007 18:50 |
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
|
|
|
|