Unable to restore LXC with resizing

openaspace

Active Member
Sep 16, 2019
483
10
38
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.
 

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!