Can I remove local and local-lvm? (2025)

J

janvv

Active Member
Jun 21, 2020
63
10
28
66
52.24154182722349, 5.117853866801705
  • Feb 16, 2023
  • #1

I use the storages nvme and ssd for all my VMs and LXCs. I do not use local and local-lvm. Can I safely remove them?
Or otherwise just unselect all contect types, so that I cannot use it for anything?

Last edited:

gurubert

Famous Member
Mar 12, 2015
913
196
113
Berlin, Germany
www.heinlein-consulting.de
  • Feb 16, 2023
  • #2

The storage local is just a directory and does not take up any space if not used.

The storage local-lvm is thin provisioned LVM.

Both can be removed. After removing local-lvm from Proxmox's storage configuration you still need to remove the LV to free up space in the VG.

J

janvv

Active Member
Jun 21, 2020
63
10
28
66
52.24154182722349, 5.117853866801705
  • Feb 17, 2023
  • #3

For others coming here for the same question:

local-lvm

- Remove local-lvm from the storage configuration of the Datacenter
- Execute the following commands on the node's console:

Code:

lvremove /dev/pve/datalvresize -l +100%FREE /dev/pve/rootresize2fs /dev/mapper/pve-root

local

Cannot be removed from the storage configuration. If you try it, it will not disappear.
Instead, disable it, so that it will no longer be available in the dropdown lists when creating a VM or LXC.

J

javito1081

New Member
Jan 4, 2024
17
4
3
  • Feb 12, 2024
  • #4

janvv said:

For others coming here for the same question:

local-lvm

- Remove local-lvm from the storage configuration of the Datacenter
- Execute the following commands on the node's console:

Code:

lvremove /dev/pve/datalvresize -l +100%FREE /dev/pve/rootresize2fs /dev/mapper/pve-root

local

Cannot be removed from the storage configuration. If you try it, it will not disappear.
Instead, disable it, so that it will no longer be available in the dropdown lists when creating a VM or LXC.

View attachment 46934

Well i have a question for this, before i got to this post i already did that of unticking the enable thing on local, but even tho it says its just a directory, i dont think thats right, cause i have a 500gb nvme, my lvm is only 400g space and local had 100g asigned to it which fter disable it, it doesnt get added to the lvm space, how can i add this space to the lvm disk?


My guess is that data is the lvm, root is that unalocated space, or, that root is the OS and data is the space proxmox asign for VMs? im new to proxmox so im still learning its functions, but if this root space is unalocated, how can i add it to lvm?

J

janvv

Active Member
Jun 21, 2020
63
10
28
66
52.24154182722349, 5.117853866801705
  • Feb 12, 2024
  • #5

This is not a Proxmox specific issue. You have make yourself familiar with LVM.
I would recommend to investigate your disk layout by lsblk and gparted, and then find information on how to extend your data volume.

leesteken

Distinguished Member

Proxmox Subscriber

May 31, 2020
6,044
1,569
228
  • Feb 12, 2024
  • #6

javito1081 said:

My guess is that data is the lvm, root is that unalocated space, or, that root is the OS and data is the space proxmox asign for VMs? im new to proxmox so im still learning its functions, but if this root space is unalocated, how can i add it to lvm?

After a normal installation: local is a directory (/var/lib/vz as you can see at Datacenter > Storage) on the Proxmox installation (root filesystem, which is not unallocated but contains the OS). Proxmox is on a LV on the local-lvm (a VG in LVM terms). The rest of the local-lvm can be used for virtual disks. Resizing LVs is possible but you better shrink the filesystem on it first. Booting GParted Live might help you.

J

javito1081

New Member
Jan 4, 2024
17
4
3
  • Feb 14, 2024
  • #7

leesteken said:

After a normal installation: local is a directory (/var/lib/vz as you can see at Datacenter > Storage) on the Proxmox installation (root filesystem, which is not unallocated but contains the OS). Proxmox is on a LV on the local-lvm (a VG in LVM terms). The rest of the local-lvm can be used for virtual disks. Resizing LVs is possible but you better shrink the filesystem on it first. Booting GParted Live might help you.

Oh ok ok tyvm, that was my doubt if the root was the system, cause i did saw that data was a directory but i wasnt sure about the root partition, i will tho follow @janvv advice and investigate about LVM, i wanna learn every aspect of this thing and i havent had to mess with that before hehe

You must log in or register to reply here.

Can I remove local and local-lvm? (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 6420

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.