Hi,
We are running a server with several LXC containers. This server data pool is under LVM-thin and as time goes by, disk space keeps on increasing. Even if files are deleted on LXC containers, data % on host stays the same.
We have seen that running fstrim on LXC containers freed space on Host and so, data percentage was reduced.
In /etc/lvm/lvm.conf issue_discards is enabled (1)
Running
$ lvs -o+discards pve/data
shows discards option as 'passdown'
Have we missed a configuration? Isn't it supposed to reduce space automatically when files are deteled on LXC containers?
Should we run fstrim service on LXC containers periodically to free space?
Have someone met this situation? How could we solve that?
Regards,
Jordi.
We are running a server with several LXC containers. This server data pool is under LVM-thin and as time goes by, disk space keeps on increasing. Even if files are deleted on LXC containers, data % on host stays the same.
We have seen that running fstrim on LXC containers freed space on Host and so, data percentage was reduced.
In /etc/lvm/lvm.conf issue_discards is enabled (1)
Running
$ lvs -o+discards pve/data
shows discards option as 'passdown'
Have we missed a configuration? Isn't it supposed to reduce space automatically when files are deteled on LXC containers?
Should we run fstrim service on LXC containers periodically to free space?
Have someone met this situation? How could we solve that?
Regards,
Jordi.