FibreChannel HBAs in target mode tested with isp driver

Kenneth D. Merry ken at freebsd.org
Wed Dec 5 21:37:04 UTC 2012


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 at 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 at 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 at 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 at 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 at 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 at storage-domain ~]# ctladm port -o on
Front End Ports enabled

On the target side:

scbus3 on isp0 bus 0:
<FREEBSD CTLDISK 0001>             at scbus3 target 0 lun 0 (pass7,sg7,da9)
<FREEBSD CTLDISK 0001>             at scbus3 target 0 lun 1 (sg13,da11,pass13)
<FREEBSD CTLDISK 0001>             at scbus3 target 0 lun 2 (sg14,da12,pass14)
<FREEBSD CTLDISK 0001>             at scbus3 target 0 lun 3 (sg15,da13,pass15)
<>                                 at scbus3 target -1 lun -1 ()
scbus4 on isp1 bus 0:
<FREEBSD CTLDISK 0001>             at scbus4 target 0 lun 0 (pass8,sg8,da14)
<FREEBSD CTLDISK 0001>             at scbus4 target 0 lun 1 (sg16,da15,pass16)
<FREEBSD CTLDISK 0001>             at scbus4 target 0 lun 2 (sg17,da16,pass17)
<FREEBSD CTLDISK 0001>             at scbus4 target 0 lun 3 (sg18,da17,pass18)
<>                                 at scbus4 target -1 lun -1 ()

[root at 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: <Qlogic ISP 2532 PCI FC-AL Adapter> 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: <Qlogic ISP 2532 PCI FC-AL Adapter> 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 at FreeBSD.ORG


More information about the freebsd-scsi mailing list