Overview
To increase disk space on a Proxmox VM, two steps are required: growing the partition and resizing the filesystem1.
Commands
- Grow the partition:
growpart /dev/sdX YWhere:
sdXis the disk device (e.g., sda, sdb)Yis the partition number
- Resize the filesystem:
resize2fs /dev/sdXYWhere:
sdXYis the specific partition (e.g., sda1, sdb2)
Prerequisites
The growpart command requires the cloud-utils package to be installed1.
Important Notes
- The VM must be running for these commands to work
- Always backup important data before resizing partitions
- This process works for ext4 filesystems; other filesystems may require different tools