Proxmox

Proxmox: Use 100% Hard Drive Space (v.8.2.4)



A easy step-by-step guide on how to delete the local-lvm storage and reallocate its space to the local storage in Proxmox 8.2.4

*Guide made strictly and specifically from the Proxmox Admin manual.

This video was made because I found that the one from good ole’ @NetworkChuck was not working correctly on updated version of Proxmox.

Captions & Codes:

Welcome to this step-by-step guide on how to delete the `local-lvm` storage and reallocate its space to the `local` storage in Proxmox VE.

Make sure to back up any important data before proceeding, as these operations can result in data loss.

First, let’s remove the `local-lvm` storage configuration. This command will remove the configuration from Proxmox VE without deleting any data.

`pvesm remove local-lvm`

Next, use the `lvremove` command to remove the logical volume associated with `local-lvm`. Note that this will delete all data on this volume.

`lvremove pve/data`

Now, we will extend the root logical volume. First, check if the volume group `pve` has free space.

`vgdisplay pve`

If free space is available, extend the root logical volume.

`lvextend -l +100%FREE /dev/pve/root`

Resize the file system to use the extended logical volume. The command depends on your file system type. For ext4, use:

`resize2fs /dev/pve/root`

If you are using XFS, the command is:

`xfs_growfs /`

Next, modify the `/etc/pve/storage.cfg` file to update the `local` storage configuration. Ensure it allows for all desired content types.

`nano /etc/pve/storage.cfg`

Here’s an example of what the content should look like:

`dir: local path /var/lib/vz content images,iso,vztmpl,backup,rootdir,snippets maxfiles 0`

To apply the changes, restart the necessary Proxmox VE services.

`systemctl restart pvedaemon`

`systemctl restart pveproxy`

`systemctl restart pvestatd`

Finally, verify that the `local-lvm` storage has been removed and that the `local` storage is utilizing all available disk space.

`pvesm status`

You should see that `local-lvm` is no longer listed, and the `local` storage should have the increased capacity.

By following these steps, you can successfully delete the `local-lvm` storage and reallocate its space to the `local` storage, effectively utilizing all available disk space on your Proxmox VE setup.

[ad_2]

source

Related Articles

3 Comments

  1. For instances/questions like this for example:

    > New to this. I installed Proxmox and it says my Proxmox node has HD space – 32GB (#1 on photo). When I go into disks, I can clearly see my entire drive listed which is 128 GB (#2 on photo). Is there a way to increase the HD space so it uses more than 32 GB? I want to install more things but that will certainly limit me.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button