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
- 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
- 19
- 4
- 3
- Feb 12, 2024
- #4
janvv said:
See AlsoUsing LVM For ProxmoxFor 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,305
- 1,670
- 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
- 19
- 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.