doktor5000 wrote: You don't use LVM over LUKS, no?
*I* use ext4 partitions on LVM on LUKS.
So there is some known issue / method then?
For all partitions in that LVM, fstrim fails with "the discard operation is not supported"
While on the /boot partition which is a separate ext4 physical partition, fstrim succeed.
NOTE: I am running mga5 cauldron, 64 bit. Maybe something changed?
I followed https://wiki.mageia.org/en/Installation ... im_command :
In i /etc/lvm/lvm.conf i have the line
- Code: Select all
issue_discards = 1
- Code: Select all
# cat /etc/crypttab
crypt_sda5 UUID=1683a090-76a1-4a2a-99c6-82821bbe2ab8 - discard
As it did not work after reboot, i also tried running # dracut -f and reboot, after reading this thread also dracut -f -I /etc/crypttab and reboot.
- Code: Select all
# lsinitrd | grep crypttab
-rw-r--r-- 1 root root 84 Apr 20 08:49 etc/crypttab
I could not find a god idea so this far i have only checked the variants:
I note the line in /etc/crypttab may have "none" or "-". tried both, (incl dracut -f, reboot) no change.
Also there, tried with or without "luks," before "discard"
Some systems (debian derived) want "allow_discard" instead of "discard" : tried that too as i see in backups i had that on mga 3, but do not remember if it worked.
( Other SSD settings checked/made: the physical partition for luks is correctly aligned, kernel use correct scheduler, in fstab noatime on partitions (excluding /home because of kmail), and discard on swap partition only. )
( Another question is if that fstab trim option on that swap partition on LVM on LUKS is working or not. Anyway i may better move it to the mechanical drive i have and set separate encryption for it there. )
I tried the links you suggested. Best bet is this bug at redhat especially https://bugzilla.redhat.com/show_bug.cgi?id=890533#c38
( Weird they in that bug use "allow-discards" instead of "discards" in /etc/crypttab )
I need to leave this for work now, and do a backup before trying too hard...
So i ask in the mean time: Any better idea / known method for mageia 5 ?
Here is a nice one btw: http://blog.neutrino.es/2013/howto-prop ... d-dmcrypt/