High disk usage in LVM-Thin

Talha

Well-Known Member
Jan 13, 2020
57
0
46
30
Hi,
Disk usage is 92% on a server with 100GB disk capacity, but I only use 27GB in the VM. Can someone help me please?

1662655171279.png
1662655188364.png
 
You gotta enable discard in the VM disc mount options or run fstrim inside the VM to reclaim unused disc space.

discard.PNG
 
Last edited:
Just keep in mind that doing a "pct trim" will lock the LXC for a short time and then backup jobs will fail. I had to disable that oneliner in cron at hours when backup jobs are running.