On 23/11/2020 16:47, Samuel Sieb wrote:
On 11/23/20 12:07 AM, Sreyan Chakravarty wrote:
> I am confused about whether I should use TRIM or DISCARD on my laptop.
>
> I use LVM on top of LUKS and I do make frequent use of snapshots. Merging them to my
root volume.
>
> I have a regular HDD and not a SSD.
>
> Will enabling TRIM and DISCARD help me?
No, it won't.
> If so, how do I do that ? I have already tried enabling:
>
> issue_discards=1
>
> in /etc/lvm/lvm.conf and then dracut -f
>
> But fstrim -v / still fails with :
>
> fstrim: /: the discard operation is not supported
>
> So how do I enable it in Fedora32 ?
There's nothing to enable. As it says, your LV and hard drive don't support
discard.
However, I believe that it is useful for thin LVs, so after you've done the
conversion, it's something you could try.
Do you think that last statement may be a bit confusing if he only has a HDD?
---
The key to getting good answers is to ask good questions.