quack

Resize LXC Container

List the containers:
pct list

Stop the container you want to resize:
pct stop 999

Get the path to the container:
lvdisplay | grep “LV Path\|LV Size”

Run a file system check:
e2fsck -fy /dev/pve/vm-999-disk-0

Resize the file system:
resize2fs /dev/pve/vm-999-disk-0 10G

Resize the local volume:
lvreduce -L 10G /dev/pve/vm-999-disk-0

Edit the container’s conf & look for the rootfs line:
nano /etc/pve/lxc/999.conf

e.g. rootfs: local-lvm:vm-999-disk-0,size=10G

Start the container:
pct start 999

Check the new size:
pct enter 999
df -h