From owner-freebsd-scsi@FreeBSD.ORG Tue Nov 30 18:52:18 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 48352106567A for ; Tue, 30 Nov 2010 18:52:18 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id E67C38FC19 for ; Tue, 30 Nov 2010 18:52:17 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.4/8.14.3) with ESMTP id oAUIqFWZ087272 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 30 Nov 2010 10:52:16 -0800 (PST) (envelope-from mj@feral.com) Message-ID: <4CF547DC.2080008@feral.com> Date: Tue, 30 Nov 2010 10:52:12 -0800 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4CF5400B.4060902@wcubed.net> In-Reply-To: <4CF5400B.4060902@wcubed.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Tue, 30 Nov 2010 10:52:17 -0800 (PST) Subject: Re: 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:52:18 -0000 the options options ISP_TARGET_MODE=1 options ISP_DEFAULT_ROLES=1 do what you want. Remove the hint. On 11/30/2010 10:18 AM, Brad Waite wrote: > 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] > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"