Proxmox: resize disk in LXC container
Posted on Fri 06 April 2018 in Proxmox, Tips4Unices, Wirtualizacja • 1 min read
- Shutdown container.
- Resize disk with GUI: select machine, click Resources, select Disk and click Resize Disk or
- Resize disk with console: pct resize <vmid> <disk> <size> [OPTIONS]
- On Proxmox machine in console: e2fsck -fy /dev/pve/vm-<vmid>-disk-x resize2fs /dev/pve/vm-<vmid>-disk-x
- Sometimes you will need to: tune2fs -f -E clear_mmp /dev/pve/vm-<vmid>-disk-x