I've an Generation 2 Hyper-V virtual machine with Virtual DVD Drive on SCSI 0 ID 1 channel. After successful installation FreeBSD 11.1-BETA1 on disk an error appears on the console every second: (cd0:strovsc0:0:0:1): storvsc scsi_status = 2 After removing Virtual DVD Drive from VM the error disappears.
See the patch https://reviews.freebsd.org/D11271
Thx. It's working! In verbose mode the message "(cd0:storvsc0:0:0:1): storvsc scsi_status = 2, srb_status = 4" appears. Waiting for the release.
(In reply to Boris Korzun from comment #2) The patch is updated after further investigation. This occurs because "TEST_UNIT_READY" gets a "Medium not present" response, which can be ignored.
(In reply to Hongjiang from comment #3) Thx. The patch is working correctly.
A commit references this bug: Author: sephe Date: Wed Jun 21 06:44:56 UTC 2017 New revision: 320184 URL: https://svnweb.freebsd.org/changeset/base/320184 Log: hyperv/storvsc: Reduce log verbosity On some windows hosts TEST_UNIT_READY command will return SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium not present - tray closed)", this occurs periodically, and not hurt anything else. So, we prefer to ignore this kind of errors. PR: 219973 Submitted by: Hongjiang Zhang <hongzhan microsoft com> MFC after: 3 days Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11271 Changes: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Can the patch be merged from HEAD to 11-STABLE?
A commit references this bug: Author: sephe Date: Mon Jun 26 02:34:00 UTC 2017 New revision: 320348 URL: https://svnweb.freebsd.org/changeset/base/320348 Log: MFC 320184 hyperv/storvsc: Reduce log verbosity On some windows hosts TEST_UNIT_READY command will return SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium not present - tray closed)", this occurs periodically, and not hurt anything else. So, we prefer to ignore this kind of errors. PR: 219973 Submitted by: Hongjiang Zhang <hongzhan microsoft com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11271 Changes: _U stable/10/ stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
(In reply to commit-hook from comment #7) The problem is not affected on stable/10. stable/10 doesn't work on Gen2 VMs. I want the merge to stable/11.
(In reply to Boris Korzun from comment #8) 1) I have initiated the MFC to stable/11 request to re. Waiting for re's approval. 2) Why stable/10 does not work w/ GEN2 Hyper-V? As far as we have tested @ Microsoft, it works as expected. If it did not work for you, please file a PR and specific stable/10 SVN version you tested; and we will check.
A commit references this bug: Author: sephe Date: Mon Jun 26 05:56:49 UTC 2017 New revision: 320351 URL: https://svnweb.freebsd.org/changeset/base/320351 Log: MFC 320184 hyperv/storvsc: Reduce log verbosity On some windows hosts TEST_UNIT_READY command will return SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium not present - tray closed)", this occurs periodically, and not hurt anything else. So, we prefer to ignore this kind of errors. Approved by: re (delphij) PR: 219973 Submitted by: Hongjiang Zhang <hongzhan microsoft com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11271 Changes: _U stable/11/ stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Fixed in 11.1-RC1. Thx.