Proxmox LXC Disk Resize
Resize Disk (Host)
Run on the Proxmox host:
pct resize <CTID> rootfs +10G
Or set an exact size:
pct resize <CTID> rootfs 40G
Verify:
pct config <CTID>
Verify (Inside Container)
pct enter <CTID>
df -h
lsblk
In most default setups (e.g. local-lvm + ext4 on LV), the filesystem expands automatically.
If Manual Resize Is Needed
ext4
resize2fs /dev/mapper/pve-vm--<CTID>--disk--0
XFS
xfs_growfs /
Tip
Before resizing, check what’s actually consuming space:
du -h --max-depth=1 / | sort -h