[SOLVED] remove a Thin-LVM and freeup the disk used

vikozo

Well-Known Member
May 4, 2014
744
26
48
suisse
www.wombat.ch
i wish to remove the LVM-Thin from a Node's Disk to give the disk free to crate with a second Disk a small ZFS Pool!

on the Node the LVM-Thin have been created.
in the Gui Node level is nothing (no button) to remove it
in the GUI Datacenter level i could delete the Storage

so on the cli i triyed

# pvesm scan lvm
pve04-LVM-Thinpool

# pvesm remove pve04-LVM-Thinpool
delete storage failed: storage 'pve04-LVM-Thinpool' does not exist

any help to remove this LVM-Thin?
 
Last edited:

bbgeek17

Renowned Member
Nov 20, 2020
1,138
219
68
Blockbridge
www.blockbridge.com
The "scan" option looks at underlying "raw" storage. The "remove" deals with the actual proxmox configuration, as defined in /etc/pve/storage.cfg.

Instead of "scan" you want to check with "status" - it will probably not list this pool as its not defined, or perhaps it has a different "friendly" name.

Once you remove the proxmox storage entry you will still need to use lvremove/pvremove etc to actually free storage.



Ultra low latency all-NVME storage for Proxmox - https://www.blockbridge.com/proxmox
 

bbgeek17

Renowned Member
Nov 20, 2020
1,138
219
68
Blockbridge
www.blockbridge.com
It really depends on what you are trying to achieve and what your current configuration is. For example, is this a dedicated disk or shared with OS and other pools. Are you trying to clear just the Logical Volume, or also Volume Group and Physical Volume? The process is not difficult but the steps depend on the desired outcome.

Search for LVM cheatsheets like this one for command examples: https://blog.programster.org/lvm-cheatsheet

Measure twice before cutting/removing.


Ultra low latency all-NVME storage for Proxmox - https://www.blockbridge.com/proxmox
 

vikozo

Well-Known Member
May 4, 2014
744
26
48
suisse
www.wombat.ch
i think i got it and removed everything

pvdisplay
vgdisplay
lvdisplay
lvs
pvs

just all show nothing anymore

GUI pve - node - Disk it show the DISK with Usage LVM2_member
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!