Enable TRIM with LVM and LUKS on ArchLinux

To allow linux to issue discards through lvm and luks a few steps need to be performed. I’m running the following setup: sda |__sda1 /boot |__sda2 |___ LUKS |_____ LVM |___ / |___ /home |___ ... Therefore the discards need to be issued through the filesystem, the LVM and the LUKS down to the SSD. Let’s start with the ext4 filesystem: We need to append the discard option to the other filesystem options like so: ...

October 10, 2014 · 2 min · Moritz Frenzel