[SOLVED] Restore OpenVZ to LXC Proxmox 5: A lone zero block at

kotakomputer

Renowned Member
May 14, 2012
414
10
83
Jakarta, Indonesia
www.proxmoxindo.com
When I restore OpenVZ (Proxmox 3) to LXC (Proxmox 5) then error:

# pct restore 236045 /mnt/datb/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz --storage local-data --rootfs 200 --force
.......
.......
Writing superblocks and filesystem accounting information: 0/1200 done

extracting archive '/mnt/datb/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz'
tar: Skipping to next header
tar: A lone zero block at 256802602
Total bytes read: 131482941440 (123GiB, 34MiB/s)
tar: Exiting with failure status due to previous errors

TASK ERROR: unable to restore CT 236045 - command 'tar xpf - -z --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' -C /var/lib/lxc/236045/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2

Even original OpenVZ size is 100GB but the backup file .tar.gz is 149GB, so I add vps size (200GB) option when restore, as shown above.
 
That's weird, are you sure the file is OK, and marches the file extension?

What do the following two commands show (the second can be long, should show the whole structure of the CTs filesystem)
Code:
file /mnt/datb/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz
tar tf /mnt/datb/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz

Did you try to recreate the backup, or was anything weird in the backup log on the PVE 3 system?
 
Code:
 file /vz/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz
/vz/dump/vzdump-openvz-941250-2020_03_02-00_37_52.tar.gz: gzip compressed data, from Unix, last modified: Mon Mar  2 00:37:52 2020

Now I try to backup without compression:
Code:
-rw-r--r-- 1 root root 165G Mar  3 14:17 vzdump-openvz-941250-2020_03_03-07_57_24.tar
OpenVZ size is 100GB but backup of tar become 165G. Lets see how this backup restored to same same machine.
I will update this thread after restore finished.
 
Last edited:

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!