Unable to restore LXC with resizing

openaspace

Well-Known Member
Sep 16, 2019
486
13
58
Italy
Hello.
I have a lzo LXC backup of a 500gb original size and I want to restore it with new size of 50G (it contain now only 10G of data) but I have some errors.. :

Code:
pct restore 120 vzdump-lxc-120-2020_11_21-10_32_29.tar.zst --rootfs local-zfs:50G


unable to restore CT 120 - unable to parse zfs volume name '50G'

It's not correct --rootfs local-zfs:newsize ?
 
Hi,

you have to use "create" and use as ostemplate the backup file.