vzrestore failed with exit code 2

naja7host

Member
May 15, 2009
78
1
6
when i want to restore the backup

Code:
vzrestore vzdump-openvz-102-2012_03_27-01_00_04.tar 102
INFO: restore openvz backup 'vzdump-openvz-102-2012_03_27-01_00_04.tar' using ID 102
INFO: extracting archive 'vzdump-openvz-102-2012_03_27-01_00_04.tar'
INFO: tar: Archive value -1 is out of off_t range 0..9223372036854775807
INFO: tar: ./home/user1/tmp/webalizer/dns_cache.db: invalid sparse archive member
INFO: Total bytes read: 7042580480 (6.6GiB, 14MiB/s)
INFO: tar: Error exit delayed from previous errors
ERROR: restore openvz backup 'vzdump-openvz-102-2012_03_27-01_00_04.tar' failed - command 'tar xpf vzdump-openvz-102-2012_03_27-01_00_04.tar --totals --sparse -C /var/lib/vz/private/102' failed with exit code 2

the command tar tf vzdump-openvz-102-2012_03_27-01_00_04.tar show the fallowing result .

Code:
./dev/stderr
./dev/ttyp1
./dev/ttyaf
./dev/ptya3
./dev/ttyp6
./dev/ramdisk
./dev/kmsg
./dev/ttyp3
./dev/ram1
./dev/ptya8
tar: Error exit delayed from previous errors


the log says backup successfull


any idea ?
 
Last edited:
Never saw that before. Please can you post the backup log? Can you reproduce that bug when making a new backup of another VM?
 
the backup log was so long ,



Code:
Mar 27 01:00:04 INFO: Starting Backup of VM 102 (openvz)
Mar 27 01:00:04 INFO: CTID 102 exist mounted running
Mar 27 01:00:04 INFO: status = CTID 102 exist mounted running
Mar 27 01:00:04 INFO: backup mode: snapshot
Mar 27 01:00:04 INFO: ionice priority: 7
Mar 27 01:00:04 INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-ks311046.kimsufi.com-0')
Mar 27 01:00:09 INFO:   Logical volume "vzsnap-server1-0" created
Mar 27 01:00:11 INFO: creating archive '/mnt/pve/remote-3/vzdump-openvz-102-2012_03_27-01_00_04.tar'
Mar 27 01:25:59 INFO: tar: ./home/zeearab/public_html/2012-1-9.zip: File shrank by 461941790 bytes; padding with zeros
Mar 27 01:25:59 INFO: tar: ./home/zeearab/public_html/google7b96426b6ba26b71.html: Warning: Read error at byte 0, while reading 53 bytes: In$
Mar 27 01:25:59 INFO: tar: ./home/zeearab/public_html/logovedio.png: Warning: Read error at byte 0, while reading 6144 bytes: Input/output e$
Mar 27 01:25:59 INFO: tar: ./home/zeearab/public_html/img/: Warning: Cannot savedir: Input/output error
Mar 27 01:25:59 INFO: tar: ./home/zeearab/public_html/img: Warning: Cannot close: Bad file descriptor
.
.
.
.
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man1/perlsec.1: Warning: Read error at byte 0, while reading 6656 bytes: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man9: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man2x/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man2x: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man8x/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man8x: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man6x/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man6x: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man4/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/man4: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/mann/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./usr/local/share/man/mann: Warning: Cannot close: Bad file descriptor
Mar 27 01:31:13 INFO: tar: ./dev/pts/: Warning: Cannot savedir: Input/output error
Mar 27 01:31:13 INFO: tar: ./dev/pts: Warning: Cannot close: Bad file descriptor
Mar 27 01:33:02 INFO: Total bytes written: 7042580480 (6.6GiB, 3.9MiB/s)
Mar 27 01:33:02 INFO: archive file size: 6.56GB
Mar 27 01:33:02 INFO: delete old backup '/mnt/pve/remote-3/vzdump-openvz-102-2012_03_23-01_00_16.tar'
Mar 27 01:33:07 INFO:   Logical volume "vzsnap-server1-0" successfully removed
Mar 27 01:33:07 INFO: Finished Backup of VM 102 (00:33:03)

i have not test another vm to backup .
 
i have made it .
now if i start the vps i get this error

Code:
Unable to start init, probably incorrect template
Container start failed
Stopping container ...
Container was stopped
Container is unmounted


when i want to test /sbin/init

Code:
#chroot /vz/private/102/ /sbin/init
chroot: cannot run command `/sbin/init': Accessing a corrupted shared library

the private directry exist and conf file exist , i use the centos template .

i have made some test .

i have created a new vps with the same template , tested it , is working .
if i copied the backup files i get the same error .

so wich folder that i need to copies and wich one should i exlclude .

there are some damaged file but i don't wich folder is !
 

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!