vzrestore bad tar file

carlosmp

Renowned Member
Jun 2, 2010
46
1
73
Hi,

I had to replace our proxmox box over the weekend and was able to restore 10/11 machines with vzrestore. Only one is generating the following error:

Code:
host35:/usr/src# vzrestore vzdump-openvz-109-2011_10_07-03_29_41.tar 209
INFO: restore openvz backup 'vzdump-openvz-109-2011_10_07-03_29_41.tar' using ID 209
INFO: extracting archive 'vzdump-openvz-109-2011_10_07-03_29_41.tar'
INFO: tar: Archive value -1 is out of off_t range 0..9223372036854775807
INFO: tar: ./var/log/faillog: invalid sparse archive member
INFO: tar: Archive value -1 is out of off_t range 0..9223372036854775807
INFO: tar: ./var/log/lastlog: invalid sparse archive member
INFO: Total bytes read: 4306042880 (4.1GiB, 21MiB/s)
INFO: tar: Error exit delayed from previous errors
ERROR: restore openvz backup 'vzdump-openvz-109-2011_10_07-03_29_41.tar' failed - command 'tar xpf vzdump-openvz-109-2011_10_07-03_29_41.tar --totals --sparse -C /var/lib/vz/private/209' failed with exit code 2

Assuming that hte only problems are with the two listed log files, is there any way to bypass those and force the restore to continue?

Thanks,

Carlos.
 
I was able to extract manually, and got similar errors. I found the 109.conf.destroyed file as well as the vps.conf file in the extracted tar. Can I simply move that file to the /etc/vz/conf directory, rename it and extract the tar to /var/lib/vz/private/109 and start the server?

Thanks
 
I was able to extract manually, and got similar errors. I found the 109.conf.destroyed file as well as the vps.conf file in the extracted tar. Can I simply move that file to the /etc/vz/conf directory, rename it and extract the tar to /var/lib/vz/private/109 and start the server?

yes
 

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!