linstor-server
linstor-server copied to clipboard
Feature request: Allow setting `allow-discards` flag on LUKS volumes
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.
We are currently in the process of adding a LuksOpenOptions property, that would allow to set this --allow-discards argument.