I wasn't aware of the systemd timer for fstrim. What I did discover was that my /home and / filesystems were not being trimmed automagically because they are lvm and luks encrypted, only /boot and /boot/efi. I had to tweak some settings in /etc/lvm/lvm.conf, /etc/crypttab and /etc/fstab and then force dracut to rebuild initramfs to enable discards and get fstrim to run on those filesystems. https://blog.christophersmart.com/2013/06/05/trim-on-lvm-on-luks-on-ssd/
Authored Comments
I wasn't aware of the systemd timer for fstrim. What I did discover was that my /home and / filesystems were not being trimmed automagically because they are lvm and luks encrypted, only /boot and /boot/efi. I had to tweak some settings in /etc/lvm/lvm.conf, /etc/crypttab and /etc/fstab and then force dracut to rebuild initramfs to enable discards and get fstrim to run on those filesystems. https://blog.christophersmart.com/2013/06/05/trim-on-lvm-on-luks-on-ssd/
ix is just a bash function and can be snarfed with,
curl ix.io/client > ix
chmod +x ix
./ix -h