LVM thinpool mapped size is larger than disk size

Dino.

New Member
Jan 22, 2023
1
0
1
argentina
After reducing the volume gives the following warning:

lvs

WARNING: Thin volume pve/vm-106-disk-0 maps <243.13 GiB while the size is only 50.00 GiB.

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 54.42t 0.79 0.64
root pve -wi-ao---- 96.00g
snap_vm-105-disk-0_prueba pve Vri---tz-k 250.00g data vm-105-disk-0
swap pve -wi-ao---- 8.00g
vm-100-disk-0 pve Vwi-aotz-- 20.00g data 28.91
vm-102-disk-0 pve Vwi-aotz-- 100.00g data 98.34
vm-106-disk-0 pve Vwi-a-tz-- 50.00g data 100.00


How the mapping size can be compacted?
 
After reducing the volume gives the following warning:

lvs

WARNING: Thin volume pve/vm-106-disk-0 maps <243.13 GiB while the size is only 50.00 GiB.

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 54.42t 0.79 0.64
root pve -wi-ao---- 96.00g
snap_vm-105-disk-0_prueba pve Vri---tz-k 250.00g data vm-105-disk-0
swap pve -wi-ao---- 8.00g
vm-100-disk-0 pve Vwi-aotz-- 20.00g data 28.91
vm-102-disk-0 pve Vwi-aotz-- 100.00g data 98.34
vm-106-disk-0 pve Vwi-a-tz-- 50.00g data 100.00


How the mapping size can be compacted?
If it's a Linux guest run
Code:
 fstrim -v /

inside the guest. See also remarks "trim/discard" in chapter 10.2.4 of https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_virtual_machines_settings
 

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!