Discard unused space in thin provisioned environment
Is there a simple way of discarding data when using thin provisioning on storage ? I do not want to use discard option in fstab as it have impact on performace.
I have tried with fstrim but without success..
# fstrim -v /test
fstrim: /test: FITRIM ioctl failed: Operation not supported
Here is my setup:
3 luns of 1 TB and LVM and ext4 on top of them, (RHEL 6.3)
# df -h /test
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ltest-lv_test
3.0T 200M 2.9T 1% /test
Storage (FC connected HDS) shows me it's full (3x 1TB/1TB)
Some additional data:
# grep . /sys/block/sd{c,d,e}/queue/discard_max_bytes
/sys/block/sdc/queue/discard_max_bytes:0
/sys/block/sdd/queue/discard_max_bytes:0
/sys/block/sde/queue/discard_max_bytes:0
Is this LVM fault ? Or something else ?
Thx