Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First,

$ sudo fstrim -all

Gives: fstrim: failed to parse length: 'l'

That should be with double dashes:

$ sudo fstrim --verbose --all
/home: 157 GiB (168507719680 bytes) trimmed
/boot: 325.1 MiB (340918272 bytes) trimmed
/: 43.6 GiB (46845853696 bytes) trimmed

It seems like you have all the pieces, but maybe not all at the same time. My steps were:

In /etc/lvm/lvm.conf set issue_discards=1

Add discard option to appropriate line in /etc/crypttab

$ sudo grubby --update-kernel=ALL --args=rd.luks.options=discard

$ sudo dracut -f

$ sudo reboot

I am not using discard in /etc/fstab and cryptsetup is showing a discards flag. My lsblk -D results are the same as yours both before and after enabling discards. I hope that helps.

First,

$ sudo fstrim -all

Gives: fstrim: failed to parse length: 'l'

That should be with double dashes:

$ sudo fstrim --verbose --all
/home: 157 GiB (168507719680 bytes) trimmed
/boot: 325.1 MiB (340918272 bytes) trimmed
/: 43.6 GiB (46845853696 bytes) trimmed

It seems like you have all the pieces, but maybe not all at the same time. My steps were:

In /etc/lvm/lvm.conf set issue_discards=1issue_discards = 1

Add discard option to appropriate line in /etc/crypttab

$ sudo grubby --update-kernel=ALL --args=rd.luks.options=discard

$ sudo dracut -f

$ sudo reboot

I am not using discard in /etc/fstab and cryptsetup is showing a discards flag. My lsblk -D results are the same as yours both before and after enabling discards. I hope that helps.