Increase Storage¶
Expanding your storage in Proxmox and Debian 12 requires resizing both the volume and the filesystem. This guide provides step-by-step instructions.
1. Resize the Volume in Proxmox¶
Follow these steps to increase the virtual machine's storage volume:
- Turn off the VM.
- Open Proxmox, and select your VM.
- Navigate to Hardware.
- Select Hard Disk.
- Click Disk actions → Resize.
- Enter the size increment, then click Resize disk.
- Turn on the VM.
2. Resize Storage Within the VM¶
Once the disk has been resized in Proxmox, additional steps are required inside the VM.
2.1 Modify the Partition Using cfdisk
¶
-
Open
cfdisk
:- You should see the free space allocated in the previous step.
-
Resize your main storage partition:
- Select your storage partition (e.g.,
/dev/sda3
). - Select Resize (it should default to the max available storage).
- Press Enter.
- Select Write, type
yes
, and press Enter. - If you see
The partition table has been altered
, the process was successful. - Press q to exit.
- Select your storage partition (e.g.,
2.2 Resize the Physical Volume (pvresize
)¶
2.3 Extend the Logical Volume¶
Find your logical volume path:
Extend it using:
2.4 Resize the Root Filesystem¶
🎉 Congratulations!¶
Your Debian 12 VM should now have successfully resized storage! 🚀