Skip to main content

Resize Image

Resize Image

ex: lxc 104


pct list
pct stop 104
e2fsck -fy /var/lib/vz/images/104/vm-104-disk-0.raw
resize2fs /var/lib/vz/images/104/vm-104-disk-0.raw 40G
lvreduce -L 40G /var/lib/vz/images/104/vm-104-disk-0.raw

 

edit configuration file

nano /etc/pve/lxc/104.conf

Replace

rootfs: local:104/vm-104-disk-0.raw,size=50G  >> rootfs: local:104/vm-104-disk-0.raw,size=40G