OpenVZ Forum


Home » General » Support » vzrestore - Exit error 2 (unable to restore backup using vzrestore)
vzrestore - Exit error 2 [message #47387] Thu, 09 August 2012 09:08 Go to previous message
michelkaeser
Messages: 5
Registered: August 2012
Junior Member
Hello everyone

I had some trouble with my server, so I decided to completely reinstall everything. I have set it up exactly the way it was before (same kernel etc.) and am now trying to restore a vzdump with no luck.

System
Debian Squeeze 64-bit
2.6.32-5-openvz-amd64
VZ packages latest version from official squeeze repos

When trying to restore I get this error:

INFO: restore openvz backup '/home/backup/vz/ve-dump.241.1344460623.tar' using ID 241
you choose to force overwriting VPS config file, private and root directories.
INFO: extracting archive '/home/backup/vz/ve-dump.241.1344460623.tar'
tar: write error
INFO: Total bytes read: 857856000 (819MiB, 55MiB/s)
INFO: extracting configuration to '/etc/vz/conf/241.conf'
INFO: sh: cannot open /var/lib/vz/private/241/etc/vzdump/vps.conf: No such file
ERROR: restore openvz backup '/home/backup/vz/ve-dump.241.1344460623.tar' failed - command 'sed -e 's/VE_ROOT=.*/VE_ROOT=\"\/var\/lib\/vz\/root\/$VEID\"/' -e 's/VE_PRIVATE=.*/VE_PRIVATE=\"\/var\/lib\/vz\/private\/$VEID\"/'  <'/var/lib/vz/private/241/etc/vzdump/vps.conf' >'/etc/vz/conf/241.conf'' failed with exit code 2


(that's with the --force param, just tried now) and without:

INFO: restore openvz backup '/home/backup/vz/ve-dump.241.1344460623.tar' using ID 241
INFO: extracting archive '/home/backup/vz/ve-dump.241.1344460623.tar'
tar: write error
INFO: Total bytes read: 857856000 (819MiB, 464MiB/s)
INFO: extracting configuration to '/etc/vz/conf/241.conf'
INFO: sh: cannot open /var/lib/vz/private/241/etc/vzdump/vps.conf: No such file
ERROR: restore openvz backup '/home/backup/vz/ve-dump.241.1344460623.tar' failed - command 'sed -e 's/VE_ROOT=.*/VE_ROOT=\"\/var\/lib\/vz\/root\/$VEID\"/' -e 's/VE_PRIVATE=.*/VE_PRIVATE=\"\/var\/lib\/vz\/private\/$VEID\"/'  <'/var/lib/vz/private/241/etc/vzdump/vps.conf' >'/etc/vz/conf/241.conf'' failed with exit code 2


What's the file "NFO: sh: cannot open /var/lib/vz/private/241/etc/vzdump/vps.conf: No such file" for? Does it need to be created within the structure of the HW node or within the container dump?

Any help would be really appreciated Smile

Regards
 
Read Message
Read Message
Read Message
Previous Topic: Can not stop container
Next Topic: Access to /proc/drbd inside a container
Goto Forum:
  


Current Time: Sun Aug 03 12:38:28 GMT 2025

Total time taken to generate the page: 0.92808 seconds