linstor-server icon indicating copy to clipboard operation
linstor-server copied to clipboard

Feature request: Allow setting `allow-discards` flag on LUKS volumes

Open gadgetmg opened this issue 5 months ago • 1 comments

Referencing the Arch Wiki, LUKS volumes must be explicitly configured to support TRIM/discards. Today, Linstor doesn't expose this flag for the cryptsetup command to enable this.

This would be especially helpful when used with thin LVM volumes as today, space can never be reclaimed (as far as I'm aware).

Note, there are minor security implications to this flag so it should not be the default, but it would be useful to have as an option.

gadgetmg avatar Jul 03 '25 18:07 gadgetmg

We are currently in the process of adding a LuksOpenOptions property, that would allow to set this --allow-discards argument.

rp- avatar Jul 07 '25 09:07 rp-