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

Marco Gaiarin gaio at sv.lnf.it
Tue Nov 5 18:30:56 CET 2019


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.

-- 
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)



More information about the pve-user mailing list