Deleting data in lxc lvm thin doesn't release space

EuroDomenii

Renowned Member
Sep 30, 2016
145
32
68
Slatina
www.domenii.eu
Either run fstrim from within the container on /, or do a `pct mount $vmid` and `pct unmount $vmid` around the `fstrim /var/lib/lxc/$vmid/rootfs`
(Also make sure your LVM config has `issue_discards` enabled.)
 
  • Like
Reactions: EuroDomenii
Thank you for reply. The only thing working, from your suggestions, is fstrim inside container.
I think of running like https://forum.proxmox.com/threads/proxmox-execute-command.26030/, from outside, for my clients, on cron.

However, this is the most performant solution, according also to http://blog.neutrino.es/2013/howto-...for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/

On the other hand, I would be interesting to know why this is not working out of the box, since I have LVM config `issue_discards` enabled
 

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!