[PVE-User] Discard transmission between VM / LVM / mdadm layers ?

Frédéric MASSOT frederic at juliana-multimedia.com
Sun Dec 15 12:51:01 CET 2019

Le 13/12/2019 à 13:15, Alexandre DERUMIER a écrit :
> When a VM sends a discard/trim command, is it sent to the SSD, LVM does
> not block the command?
> Hi, yes it's working with lvm (lvm thin only)


I opened a bug report to the debian-installer package to see if it could 
add lvm-thin support.


Ben Hutchings answered this about the non transmission of discard by 
LVM: "This seems to be incorrect. LVM normally uses dm-table, which 
supports discard if the underlying device(s) do".

I do not know what to think. Mdadm, the lower layer, supports discard.

|              FRÉDÉRIC MASSOT               |
|     http://www.juliana-multimedia.com      |
|   mailto:frederic at juliana-multimedia.com   |
| +33.(0)  +33.(0) |

More information about the pve-user mailing list