[linux-lvm] Is trim/discard supported on LVM RAID logical volume? (resent)

Heinz Mauelshagen heinzm at redhat.com
Tue Nov 29 20:40:01 UTC 2016


this doesn't work in upstream either.

Your old stack with MD raid1 as PV processes ext4 fstrim ok but lvm 
"raid1" does not
(yes, same MD raid runtime used in the kernel driven by the dm-raid target).

Looking into this...


On 11/28/2016 08:43 AM, Patrick Dung wrote:
> Hello,
> In my old setting, fstrim is supported:
> ext4 over LVM over MD software raid (mdadm) > SSD.
> After reading the recommendation in RHEL 6 
> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-ssd.html
> I change to use raid 1 mirror using 'LVM RAID logical volume'. It make 
> use of MD raid internally.
> But I found fstrim does not work anymore. Is the behavior expected?
> Thanks and regards,
> Patrick
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20161129/70c07c48/attachment.htm>

More information about the linux-lvm mailing list