Re: Is trim/discard supported on LVM RAID logical volume?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I got a reply in linux-lvm that there should be problem, and Heinz
from Redhat is looking into it.
related message:
https://www.redhat.com/archives/linux-lvm/2016-November/msg00041.html

For your information, I have issue_discards set to 1.
If I create a non-RAID LVM, the fstrim works.

Thanks and regards,
Patrick

On Wed, Nov 30, 2016 at 7:32 AM, Andreas Klauer
<Andreas.Klauer@xxxxxxxxxxxxxx> wrote:
> On Tue, Nov 29, 2016 at 03:21:36PM -0700, Chris Murphy wrote:
>> Reading the documentation for both, they're functionally the same
>> thing in that with these options the particular layer will pass on a
>> trim to the next layer underneath it.
>
> discard/fstrim/blkdiscard works fine with issue_discards=0.
>
> If it doesn't work, setting issue_discards=1 won't do a thing for you.
> That flag only affects the lvm tool itself, discard freed LVM extents
> after lvreduce or pvmove. Can't undo botched resizes anymore, too bad.
>
> Most storage layers simply don't have any setting for this at all.
> It just works. Or it does not (in many cases, old/stable kernel/distro).
> cryptsetup's allow-discards is the exception, the one layer where you
> have to manually enable something to make it work.
>
> Regards
> Andreas Klauer
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux