You are not logged in.
Pages: 1
I just swapped out a Crucial MX500 that was having some problems with a Samsung 860 EVO. The setup is the same: root is not encrypted, but a swap partition and a home partition are encrypted with Luks. These are opened in the initramfs, and I've included allow-discards as options in /etc/crypttab.initramfs
With the Samsung drive, fstrim complains that discard is not supported on the encrypted partitions. It will happily trim the unencrypted partition on the same drive, so the disk clearly supports trim. I've verified that allow-discards is picked up. dmsetup table shows allow discards, and lsblk --discard shows 512B granularity and 2G max discard for all of the partitions.
From this bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=203475
it appears that queued trim is disabled, could that be the cause? It seems odd to me that it would disable trim only on the luks partitions?
Is there anywhere else I should look?
Offline
Pages: 1