VMware vSphere Esxi (All Versions)
If the VM hardware version is below 13, "write same with UNMAP" will be unsupported. In this case, the guest operating system will abort fstrim commands as the requests will be discarded by the Hypervisor.
The following command should be executed inside the guest on the specific disk where fstrim previously failed.
[root@xxxxx~]$ sg_vpd -vvvv -p lbpv /dev/sdc
found bsg_major=248
open /dev/sdc with flags=0x800
inquiry cdb: 12 01 b2 00 fc 00
duration 0 ms
Logical block provisioning VPD page (SBC):
[PQual=0 Peripheral device type: disk]
Write same (16) with unmap bit supported (LBWS): 0<--------This should be 1