Bug 190472

Summary: FreeBSD 10 native iscsi - UNIT_ATTENTION
Product: Base System Reporter: harunaga
Component: kernAssignee: Edward Tomasz Napierala <trasz>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: trasz
Priority: ---    
Version: 10.0-RELEASE   
Hardware: Any   
OS: Any   

Description harunaga 2014-06-02 00:03:26 UTC
I use FreeBSD 10 Naive ISCSI and hypervisor KVM. I have problems starting the KVM. KVM reports:

Code: Select all
    vm: -drive file=iscsi://192.168.0.200/iqn.2012-06.storage:target0/10,if=none,id=drive-virtio0,aio=native,cache=none: iSCSI: Failed to connect to LUN : SENSE KEY:UNIT_ATTENTION(6) ASCQ:(null)(0x2901)

FreeBSD reports:

Code: Select all
    May 31 17:40:34 storage kernel: cfiscsi_ioctl_handoff: new connection from iqn.2008-11.org.linux-kvm:bsd (192.168.0.201) to iqn.2012-06.storage:target0
    May 31 17:40:36 storage kernel: WARNING: 192.168.0.201 (iqn.2008-11.org.linux-kvm:bsd): connection error; dropping connection

Can run with the second or third attempt. After a successful run is no problem.

Environment:
FreeBSD storage 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

How-To-Repeat:
Add new LUN in CTL and run KVM with -drive file=iscsi://IP/target/LUN
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2014-06-18 21:09:21 UTC

*** This bug has been marked as a duplicate of bug 190489 ***