Increase Disk Space on Proxmox VM
Overview
To increase disk space on a Proxmox VM, two steps are required: growing the partition and resizing the filesystem[1].
Commands
- Grow the partition:
growpart /dev/sdX Y
Where:
sdXis the disk device (e.g., sda, sdb)Yis the partition number
- Resize the filesystem:
resize2fs /dev/sdXY
Where:
sdXYis the specific partition (e.g., sda1, sdb2)
Prerequisites
The growpart command requires the cloud-utils package to be installed[1:1].
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
Member discussion