[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: