[PVE-User] Container restore with pct, --rootfs syntiax?
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Nov 6 08:16:37 CET 2019
On November 5, 2019 6:30 pm, Marco Gaiarin wrote:
>
> I need to 'resize' (shrink) a container, so i've done a backup, and
> following some gogle-fu and 'pct' manpage i've done:
>
> root at tma-18:~# pct restore 130 /mnt/pve/backup/dump/vzdump-lxc-130-2019_11_05-17_39_08.tar.lzo --rootfs volume=local,size=4G --force
> unable to parse volume ID 'local'
>
> finally i've done:
>
> root at tma-18:~# pct restore 130 /mnt/pve/backup/dump/vzdump-lxc-130-2019_11_05-17_39_08.tar.lzo --rootfs volume=local:4,size=4G --force
> Formatting '/var/lib/vz/images/130/vm-130-disk-1.raw', fmt=raw size=4294967296
> [...]
>
> and work as expected, but seems very very strange to me...
>
>
> What are the correct syntiax? Thanks.
--rootfs STORAGE:SIZE_IN_GB
e.g.,
--rootfs local:4
see 'Storage Backed Mount Points' in https://pve.proxmox.com/pve-docs/pve-admin-guide.html#pct_settings
More information about the pve-user
mailing list