From owner-freebsd-scsi@FreeBSD.ORG Tue Nov 30 18:45:31 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC9351065672 for ; Tue, 30 Nov 2010 18:45:31 +0000 (UTC) (envelope-from lists@wcubed.net) Received: from mail.datausa.com (mail.datausa.com [216.150.220.220]) by mx1.freebsd.org (Postfix) with SMTP id C678A8FC13 for ; Tue, 30 Nov 2010 18:45:31 +0000 (UTC) Received: (qmail 30212 invoked by uid 89); 30 Nov 2010 11:18:51 -0700 Received: from c-174-51-28-95.hsd1.co.comcast.net (HELO ?10.0.1.1?) (brad@wcubed.net@174.51.28.95) by mail.datausa.com with SMTP; 30 Nov 2010 11:18:51 -0700 Message-ID: <4CF5400B.4060902@wcubed.net> Date: Tue, 30 Nov 2010 11:18:51 -0700 From: Brad Waite User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: QLogic 2340 isp target mode X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 18:45:32 -0000 Hi there, SCSI wizards! I'm working on getting my QLogic 2340 under 8.1 to show a target to VMware ESXi w/another 2340 in point-to-point mode. A single dual-optical cable is connected directly to the two HBAs - no switches or other devices. `scsi_target -d 0:0:0 /usr/local/share/vol` returns this before hanging: scsi_target: volume_size: 512 bytes x 20480 sectors scsi_target: aio support tested ok scsi_target: TARGIOCENABLE: Operation not supported scsi_target: cleanup called ...and in dmesg: controller does not support target mode Is /usr/share/examples/scsi_target the "right" thing to use? How do you specify which device to present a target? I assume it's the bus/target ID, but how do I find it? Nothing's showing up in `camcontrol devlist` for the HBA and `camcontrol start isp0` reports this: camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed cam_lookup_pass: No such file or directory cam_lookup_pass: either the pass driver isn't in your kernel cam_lookup_pass: or isp0 doesn't exist What am I missing? Thanks. -bmw kernel config: device scbus # SCSI bus (required for SCSI) device pass # Passthrough device (direct SCSI access) device isp # Qlogic family device targ #SCSI Target Mode Code device targbh #SCSI Target Mode Blackhole Device options VFS_AIO options ISP_TARGET_MODE=1 options ISP_DEFAULT_ROLES=1 /boot/loader.conf: isp_2300_load="YES" /boot/device.hints: hint.isp.0.role="target" (should this be "target" or "1"?) hint.isp.0.iid="0" dmesg: isp_2300: registered firmware isp0: port 0x7000-0x70ff mem 0xfc200000-0xfc200fff irq 28 at device 2.0 on pci2 isp0: [ITHREAD]