Bug#717313: lvm2: Enable issue_discards = 1 automatically on non-rotational (SSD) disks?
pere at hungry.com
Sun Aug 6 10:55:28 UTC 2017
> The discards commands will also be issued when shrinking or moving a LV
> to an other PV, if something is going wrong during these operations, the
> data will be lost.
> So it's not only when explicitly removing an LV.
Aha. I did not have the imagination required to consider that such
commands would be issued before the operation was sccessfully completed.
It seemed to me quite obvious that the space would be released only
after the shrink or move was complete, but if that is not the case, it
seem quite unsafe to trust LVM to handle discard commands.
More information about the pkg-lvm-maintainers