When I restore OpenVZ (Proxmox 3) to LXC (Proxmox 5) then error:
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.
# 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.