Skip to content

Instantly share code, notes, and snippets.

@JnManso
Last active December 1, 2025 00:45
Show Gist options
  • Select an option

  • Save JnManso/d89e7c72cb1038706440d56aeda39d0a to your computer and use it in GitHub Desktop.

Select an option

Save JnManso/d89e7c72cb1038706440d56aeda39d0a to your computer and use it in GitHub Desktop.
Proxmox - Delete local-lvm

Proxmox Home Lab Documentation

πŸ“ Table of Contents


1. Run Post-Installation Script

The community post-install script is used to simplify initial setup, disable subscription warnings, and configure repositories.

πŸ”— PVE Post Install on GitHub


2. Delete local-lvm and Expand Root

This sequence assumes your VM disks are already migrated and the local-lvm storage is removed. The goal is to reclaim the block storage space and merge it into the directory-based / partition.

A. GUI Preparation

Go to the Proxmox GUI at Datacenter $\rightarrow$ Storage:

  • Edit local (Directory): Select the local storage entry. Click Edit. Under the Content dropdown, ensure Container template and Disk image are both selected (or checked). This allows the reclaimed space to host container/VM files.
  • Remove local-lvm: Select the local-lvm entry. Click Remove. This prepares the underlying LVM thin pool for deletion.

B. Shell Commands

Execute these commands carefully in the Proxmox Shell:

# 1. REMOVE the LVM Thin Pool (named 'data' by default)
# !!! WARNING: DELETES ALL VM DATA ON local-lvm !!!
lvremove /dev/pve/data

# 2. EXTEND the root volume to use all the freed space
lvextend -l +100%FREE /dev/pve/root

# 3. RESIZE the filesystem to recognize the new space
resize2fs /dev/mapper/pve-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment