[SOLVED] Reclaim space on lvm-thin storage after shrinking a LXC volume

stooovie

Member
May 16, 2023
56
8
8
Hi, I had a LXC (Immich) with a 500GB volume stored on a lvm-thin storage. After offloading contents elsewhere and shrinking this volume to 50GB, I don't see the space freed up on the lvm-thin storage.

- the LXC volume is succesfully shrinked, working, confirmed as being 50GB in size
- ran resize2fs and lvreduce on the volume

Code:
lvs -o name,data_percent,metadata_percent /dev/storage
returns
Code:
WARNING: Thin volume storage/vm-114-disk-0 maps <453.64 GiB while the size is only 50.00 GiB.

I do NOT want to resize the lvm-thin storage, just reclaim the freed up space. Any tips? Thanks!

SOLUTION: there was a snapshot.
Code:
lvremove /dev/storage/snap_vm-114-disk-0_predNAS
fixed the issue
 
Last edited:

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 yours easily in our online shop.

Buy now!