Quick Note: This method is only suitable for specific use cases! It can be particularly useful in single-disk setups where many virtual machines (VMs) are going to be created.
In a default Proxmox setup:
- "local" stores the ISO images and container templates.
- "local-lvm" stores the installed VMs and containers themselves.
Steps to Resize the "local" Storage
Follow the steps below to resize the "local" storage without affecting the ability to take snapshots:
Step 1: Remove "local-lvm"
Navigate to "Datacenter --> Storage", select "local-lvm", and click on "Remove".
Step 2: Enter the Following Commands
Execute the following commands in the given order. These commands will resize the storage and free up space for use in your "local" storage.
# lvremove /dev/pve/data
# lvresize -l +100%FREE /dev/pve/root
# resize2fs /dev/mapper/pve-root
After completing these steps, your "local" storage will be resized, and you will be able to continue using your Proxmox setup effectively.