Proxmox: resize disk in LXC container

Posted on Fri 06 April 2018 in Proxmox, Tips4Unices, Wirtualizacja • 1 min read

  1. Shutdown container.
  2. Resize disk with GUI: select machine, click Resources, select Disk and click Resize Disk or
  3. Resize disk with console: pct resize <vmid> <disk> <size> [OPTIONS]
  4. On Proxmox machine in console: e2fsck -fy /dev/pve/vm-<vmid>-disk-x resize2fs /dev/pve/vm-<vmid>-disk-x
  5. Sometimes you will need to: tune2fs -f -E clear_mmp /dev/pve/vm-<vmid>-disk-x