Deleting data in lxc lvm thin doesn't release space

EuroDomenii

Renowned Member
Sep 30, 2016
145
35
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