Overview
To increase disk space on a Proxmox VM, two steps are required: growing the partition and resizing the filesystem1.
Commands
- Grow the partition:
Where:
sdX
is the disk device (e.g., sda, sdb)Y
is the partition number
- Resize the filesystem:
Where:
sdXY
is 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