Bug 259292 - vmware/pvscsi: UNMAP fails on VMWare 6.7 thinly provisioned disk running zpool trim: UNMAP failed, disabling BIO_DELETE
Summary: vmware/pvscsi: UNMAP fails on VMWare 6.7 thinly provisioned disk running zpoo...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-20 04:26 UTC by Michal Vanco
Modified: 2021-10-20 05:23 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (jpaetzel)
koobs: mfc-stable13?
koobs: mfc-stable12?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Vanco 2021-10-20 04:26:42 UTC
Hi,

VM on VMware 6.7 with pvscsi and thinly provisioned disk generates the following error:

(da0:pvscsi0:0:0:0): UNMAP failed, disabling BIO_DELETE
(da0:pvscsi0:0:0:0): UNMAP. CDB: 42 00 00 00 00 00 00 00 08 00 
(da0:pvscsi0:0:0:0): CAM status: SCSI Status Error
(da0:pvscsi0:0:0:0): SCSI status: Check Condition
(da0:pvscsi0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(da0:pvscsi0:0:0:0): Command byte 7 is invalid
(da0:pvscsi0:0:0:0): Error 22, Unretryable error

This error occurs when I try to run zpool trim zroot. When I replace the VM's SCSI controller with SATA, trimming seems to be working ok.