[Discuss] Reducing wear on SSD drives - worth the effort and, if so, how?

Kent Borg kentborg at borg.org
Fri Nov 18 14:42:52 EST 2022


On 11/18/22 11:05, Kent Borg wrote:
> I have not played with fstrim. I am running XFS on top of LVM on top 
> of dm-crypt. I wonder whether things are configured to even know how 
> to trim through that. I'll have to look. 

Looking at 
http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/ 
it looks like I needed /etc/lvm/lvm.conf enabling discards.

Then, looking at 
https://unix.stackexchange.com/questions/85865/trim-with-lvm-and-dm-crypt/85880#85880 
it didn't seem to work. I presume because I didn't reboot first. But I 
don't feel like rebooting right now. Grrr.


-kb




More information about the Discuss mailing list