Proxmox: Resize Your Local (pve) Disk

felvct

Felix Vaucourt

Posted on October 30, 2024

Proxmox: Resize Your Local (pve) Disk

Ever wondered how to resize your local (pve) disk after a fresh install or when adding a new disk to your homelab setup?

The storage section for this is located in pve-root, and you can easily extend it using LVM. After that, you'll need to resize your filesystem as follows:

lvresize /dev/pve/root -L +<size>G

# if you are using an ext4 partition
resize2fs /dev/pve/root

# if you are using a xfs partition
xfs_growfs /
Enter fullscreen mode Exit fullscreen mode

Replace <size> with your desired size (in GB)

This process is particularly useful if you have a two-disk setup and want to dedicate one disk solely for local storage, while using the other for all your containers/VMs.


If you have any questions, feel free to hit me up on Twitter.

Happy Coding!

💖 💪 🙅 🚩
felvct
Felix Vaucourt

Posted on October 30, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Proxmox: Resize Your Local (pve) Disk
proxmox Proxmox: Resize Your Local (pve) Disk

October 30, 2024