[SOLVED] Restored container are bigger than previous

tux_92

Member
Apr 28, 2023
2
1
8
Hi, I have a proxmox with 10 CT backuped daily and after a power failure I decide to start from scratch so I reinstall Proxmox and restore all container. Three of them can't be restored because the restored volume of container is bigger than the previous configured volume.

This is an example: old container rootfs 4GB.

Error:
Code:
Total bytes read: 5742376960 (5.4GiB, 56MiB/s)
tar: Exiting with failure status due to previous errors
unable to restore CT 201 - command 'tar xpf - --zstd --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/201/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2

So I use this comand to restore it:
pct restore 201 /mnt/pve/nas30-bck/dump/vzdump-lxc-201-2025_05_24-02_59_35.tar.zst --rootfs 7 --storage data

Now my restored container is 5.63/7 GB when previously it would fit in 4GB.

Is this normal? There is something to enable or that I can do to shrink back CT volumes?
 
you likely used ZFS as storage before, which comes with built-in compression..