From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 5 21:37:04 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06DAA5C3 for ; Wed, 5 Dec 2012 21:37:04 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id AE8CC8FC14 for ; Wed, 5 Dec 2012 21:37:03 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id qB5LavwS006563; Wed, 5 Dec 2012 14:36:57 -0700 (MST) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id qB5LavmF006562; Wed, 5 Dec 2012 14:36:57 -0700 (MST) (envelope-from ken) Date: Wed, 5 Dec 2012 14:36:57 -0700 From: "Kenneth D. Merry" To: Bjorn Larsson Subject: Re: FibreChannel HBAs in target mode tested with isp driver Message-ID: <20121205213657.GA6316@nargothrond.kdm.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 21:37:04 -0000 On Wed, Dec 05, 2012 at 12:09:06 +0100, Bjorn Larsson wrote: > Dear all, > > > > I am setting up a storage system based on FreeBSD 9 and looking at > purchasing a QLogic fibre channel adapter for testing. > > > > Is there an updated list of tested Qlogic adapters that works with isp? > > > > Has anyone got adapters from the Qlogic25xx series to work as a target? Yes, they work in target and initiator mode. I would suggest getting an 8Gb Qlogic board, it should work fine with isp(4) and ctl. On the target side: [root@storage-domain ~]# ctladm create -b ramdisk -s 1048576000000 LUN created successfully backend: ramdisk device type: 0 LUN size: 1048576000000 bytes blocksize 512 bytes LUN ID: 0 Serial Number: MYSERIAL 0 Device ID; MYDEVID 0 [root@storage-domain ~]# ctladm create -b ramdisk -s 1048576000000 LUN created successfully backend: ramdisk device type: 0 LUN size: 1048576000000 bytes blocksize 512 bytes LUN ID: 1 Serial Number: MYSERIAL 1 Device ID; MYDEVID 1 [root@storage-domain ~]# ctladm create -b ramdisk -s 1048576000000 LUN created successfully backend: ramdisk device type: 0 LUN size: 1048576000000 bytes blocksize 512 bytes LUN ID: 2 Serial Number: MYSERIAL 2 Device ID; MYDEVID 2 [root@storage-domain ~]# ctladm create -b ramdisk -s 1048576000000 LUN created successfully backend: ramdisk device type: 0 LUN size: 1048576000000 bytes blocksize 512 bytes LUN ID: 3 Serial Number: MYSERIAL 3 Device ID; MYDEVID 3 [root@storage-domain ~]# ctladm port -l Port Online Type Name pp vp WWNN WWPN 0 NO IOCTL CTL ioctl 0 0 0 0 1 NO INTERNAL ctl2cam 0 0 0x5000000f12ead300 0x5000000f12ead302 2 NO INTERNAL CTL internal 0 0 0 0 3 NO FC isp0 0 0 0 0 4 NO FC isp1 1 0 0 0 [root@storage-domain ~]# ctladm port -o on Front End Ports enabled On the target side: scbus3 on isp0 bus 0: at scbus3 target 0 lun 0 (pass7,sg7,da9) at scbus3 target 0 lun 1 (sg13,da11,pass13) at scbus3 target 0 lun 2 (sg14,da12,pass14) at scbus3 target 0 lun 3 (sg15,da13,pass15) <> at scbus3 target -1 lun -1 () scbus4 on isp1 bus 0: at scbus4 target 0 lun 0 (pass8,sg8,da14) at scbus4 target 0 lun 1 (sg16,da15,pass16) at scbus4 target 0 lun 2 (sg17,da16,pass17) at scbus4 target 0 lun 3 (sg18,da17,pass18) <> at scbus4 target -1 lun -1 () [root@doc-sd ~]# dd if=/dev/da15 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 0.331754 secs (316070143 bytes/sec) The boards on both ends are dual port 8Gb Qlogic boards: isp0: port 0xc400-0xc4ff mem 0xf3344000-0xf3347fff,0xf3000000-0xf30fffff irq 44 at device 7.0 on pci0 isp0: setting role to 0x2 isp0: Board Type 2532, Chip Revision 0x2, resident F/W Revision 5.4.1 isp0: Attributes: (unknown 0x0000000000000080) isp0: 2048 max I/O command limit set isp0: Chan 0 0x20000024ff2738ae/0x21000024ff2738ae Role Initiator isp0: Starting Initial Loop Down Timer @ 1 isp1: port 0xc500-0xc5ff mem 0xf3348000-0xf334bfff,0xf3100000-0xf31fffff irq 18 at device 8.0 on pci0 isp1: setting role to 0x2 isp1: Board Type 2532, Chip Revision 0x2, resident F/W Revision 5.4.1 isp1: Attributes: (unknown 0x0000000000000080) isp1: 2048 max I/O command limit set isp1: Chan 0 0x20000024ff2738ae/0x21000024ff2738ae Role Initiator isp1: Starting Initial Loop Down Timer @ 1 Ken -- Kenneth Merry ken@FreeBSD.ORG