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 /
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!