Re: [PVE-User] Container restore with pct, --rootfs syntiax?
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: > > NoteThe 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. ___ pve-user mailing list pve-user@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Re: [PVE-User] Container restore with pct, --rootfs syntiax?
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: NoteThe 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? 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)? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA) ___ pve-user mailing list pve-user@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Re: [PVE-User] Container restore with pct, --rootfs syntiax?
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@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@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 ___ pve-user mailing list pve-user@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user