[PVE-User] Container restore with pct, --rootfs syntiax?

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Nov 6 10:31:16 CET 2019


On November 6, 2019 10:18 am, Marco Gaiarin wrote:
> Mandi! Fabian Grünbichler
>   In chel di` si favelave...
> 
>> > 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
> 
> OK, i think i've had to read:
> 
> 	Note 	The special option syntax STORAGE_ID:SIZE_IN_GB for storage backed mount point volumes will automatically allocate a volume of the specified size on the specified storage. E.g., calling pct set 100 -mp0 thin1:10,mp=/path/in/container will allocate a 10GB volume on the storage thin1 and replace the volume ID place holder 10 with the allocated volume ID.
> 
> so the doc (and manpage) explain the configuration file format, not the
> pct commandline, right?

they correspond almost 1:1 ;)

> Also, just i'm here: for VMs i can 'detach' additianal volumes, to prevent
> backup/restore to destroy them; why in LXC it is not possible, eg a
> restore 'destroy' all container volumes (and there's no way to detach
> it)?

because qm restore and pct restore are implemented differently. 'pct 
restore' is more like 'pct create' with a backup archive+config as base 
instead of just a container template. 'qm restore' is really just 
restoring, with little possibility to change anything on the fly.




More information about the pve-user mailing list