Mailinglist Archive: opensuse-features (28 mails)

< Previous Next >
[openFATE 314857] initrd/LUKS: support allow-discards
Feature changed by: Ralf Krüdewagen (ralfkr)
Feature #314857, revision 9
Title: initrd/LUKS: support allow-discards

openSUSE Distribution: Unconfirmed
Priority
Requester: Important

Requested by: Tilman Vogel (tivo)
Partner organization: openSUSE.org

Description:
It would be great if the mkinitrd scripts at
http://gitorious.org/opensuse/boot_crypto could support the "allow-
discards" option in /etc/crypttab.
That would allow to use TRIM on SSDs with LUKS and LVM on the root
partition.

Discussion:
#1: Dan Elder (danman21) (2013-09-20 20:33:39)
Redhat had a similar bug but it appears to be resolved now:
https://bugzilla.redhat.com/show_bug.cgi?id=890533

#2: Ralf Krüdewagen (ralfkr) (2014-04-17 14:11:46)
I am also looking for this feature. I have tried almost everything now
to enable trimming of a luks device with LVM volumes (boot parameters,
etc.). Even non-root volumes, mounted e.g. on /home, can't be changed
to allow discards.

#3: Ralf Krüdewagen (ralfkr) (2014-04-17 14:39:41) (reply to #2)
In other words: How can we make openSUSE to work like all other
distributions as described here:
http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/

+ #4: Ralf Krüdewagen (ralfkr) (2014-04-17 15:09:10)
+ This workaround worked for me: In order to activate discard on boot
+ time, I just changed the "cryptsetup" commands in /lib/mkinitrd/boot/71-
+ luks.sh to contain "luksOpen --allow-discards". Works fine so far. But
+ it's hard-coded.




--
openSUSE Feature:
https://features.opensuse.org/314857

< Previous Next >
This Thread
References