Discussion:
[linux-lvm] Is trim/discard supported on LVM RAID logical volume? (resent)
Patrick Dung
2016-11-28 07:43:36 UTC
Permalink
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
Heinz Mauelshagen
2016-11-29 20:40:01 UTC
Permalink
Patrick,

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...

Heinz
Post by Patrick Dung
Hello,
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
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Loading...