meta data for this page
This is an old revision of the document!
LXC
Shrink container disc
It is not supported. Command
pct resize <VMID> rootfs <newsize>
cannot be used.
Workaround 1:
- Stop container
- Edit
<vmid>conf
and set new disk size - Perform backup
- Restore LXC from backup
Workaround 2:
- Change ZFS volume size
zfs set refquota=8G rpool/data/subvol-810-disk-0
- Adjust LXC config:
- Edit
<vmid>conf
and set new disk size, OR pct rescan