vzrestore error

KumpelJ

New Member
May 24, 2010
8
0
1
Hello

I try to restore my backup (vzrestore vzdump-openvz-106-2010_08_30-03_00_01.tgz 106) but it fails with the following message:(

INFO: restore openvz backup 'vzdump-openvz-106-2010_08_30-03_00_01.tgz' using ID 106
INFO: extracting archive 'vzdump-openvz-106-2010_08_30-03_00_01.tgz'
INFO: Total bytes read: 73356359680 (69GiB, 15MiB/s)
INFO: extracting configuration to '/etc/vz/conf/106.conf'
INFO: sh: /var/lib/vz/private/106/etc/vzdump/vps.conf: No such file or directory
ERROR: restore openvz backup 'vzdump-openvz-106-2010_08_30-03_00_01.tgz' 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/106/etc/vzdump/vps.conf' >'/etc/vz/conf/106.conf'' failed with exit code 1

any ideas?

thanks

Proxmox 1.5
uname -a
Linux vh6 2.6.24-11-pve #1 SMP PREEMPT Fri May 14 09:28:08 CEST 2010 x86_64 GNU/Linux
 
Please analyse the tar file directly using 'tar':

# tar tf vzdump-openvz-106-2010_08_30-03_00_01.tgz

is the file /etc/vzdump/vps.conf really missing? Do you have the backup log for that backup?
 
I've extracted the tar and the file is really missing:(..the backup log says the same:(
why the backup failed? (the log says backup successfull:(

vzdump --quiet --node 5 --snapshot --compress --storage Backup --mailto xxx --all

106: Aug 31 03:00:01 INFO: Starting Backup of VM 106 (openvz)
106: Aug 31 03:00:01 INFO: CTID 106 exist mounted running
106: Aug 31 03:00:01 INFO: status = CTID 106 exist mounted running
106: Aug 31 03:00:01 INFO: backup mode: snapshot
106: Aug 31 03:00:01 INFO: bandwidth limit: 10240 KB/s
106: Aug 31 03:00:01 INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-vh5-0')
106: Aug 31 03:00:03 INFO: Logical volume "vzsnap-vh5-0" created
106: Aug 31 03:00:03 INFO: creating archive '/var/backups/vzdump/vzdump-openvz-106-2010_08_31-03_00_01.tgz'
106: Aug 31 03:34:57 INFO: tar: ./var/log/apache2/access.log.1: File shrank by 6342477528 bytes; padding with zeros
106: Aug 31 03:36:32 INFO: tar: ./var/log/apache2/access.log.4.gz: Warning: Read error at byte 0, while reading 2560 bytes: Input/output error
106: Aug 31 03:36:43 INFO: tar: ./var/log/apache2/error.log: Warning: Cannot stat: No such file or directory106: Aug 31 03:39:13 INFO: tar: ./etc/vzdump: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/vzdump/vps.conf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/pear: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/pear/pear.conf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/texmf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/texmf/fmt.d: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/texmf/fmt.d/50cyrtexinfo.cnf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/sysctl.conf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/magic: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/reportbug.conf: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/Xsession.options: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/fonts: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/fonts/Type1: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/fonts/Type1/gsfonts-x11.scale: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/fonts/Type1/gsfonts-x11.alias: Warning: Cannot stat: No such file or directory
106: Aug 31 03:39:13 INFO: tar: ./etc/X11/Xsession: Warning: Cannot stat: No such file or directory
-and thousands of similar lines following-
 
Maybe your snapshot runs out of space (default snapshot size is 1024MB).

Please create the file /etc/vzdump.conf and add:

size: 2048

(see 'man vzdump'). Then try to backup again (hopefully you are just testing backup/restore).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!