Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2010 01:50:13 +0530
From:      Penta Upa <bsdboot@gmail.com>
To:        Matthew Jacob <mj@feral.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: Problems getting target mode to work with isp driver
Message-ID:  <AANLkTi=Jqu36_aegWmu_vO3DetxHQRK2f4=BOV2ZfaF7@mail.gmail.com>
In-Reply-To: <4CC7AB7E.3050705@feral.com>
References:  <AANLkTinc7LYQBXZ7TYwmTgsEU-uWrG_TW5eEoX7K7H48@mail.gmail.com> <4CC75FAE.9060708@feral.com> <4CC7AB7E.3050705@feral.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Matthew,

I changed the setup to use a solaris initiator and it worked fine then. The
solaris m/c is a different box with a 2340 card. I guess the linux box is
the culprit. I assume that it it isn't an issue with linux os (RHEL 5.2) as
it had been used as an initiator many times before and no changes were made
to that system.

Could it be that after all its a HBA issue or a cabling issue ? I'll try to
move the HBA from the linux box to the solaris box and try to confirm that.

Thanks,
Penta


On Wed, Oct 27, 2010 at 10:03 AM, Matthew Jacob <mj@feral.com> wrote:

> Worked with a 2300 as well on a fabric.
> Guess I'd better try point to point.
>
>
> On 10/26/2010 4:09 PM, Matthew Jacob wrote:
>
>> To a first approximation, it worked for me on a 24XX:
>>
>> localhost.localdomain > lsscsi
>> [4:0:0:0]    disk    SEAGATE  ST314655SSUN146G 0791  /dev/sda
>> [4:0:1:0]    disk    ATA      ST3500630NS      G     /dev/sdb
>> [4:0:2:0]    disk    ATA      ST3500630NS      G     /dev/sdc
>> [4:0:3:0]    disk    ATA      Maxtor 7Y250M0   1EW0  /dev/sdd
>> [4:0:4:0]    disk    ATA      ST3500630NS      G     /dev/sde
>> [4:0:5:0]    disk    ATA      ST3500630NS      G     /dev/sdf
>> [4:0:6:0]    enclosu ESG-SHV. SCA HSBP M1..... 2.09  -
>> [6:0:0:0]    disk    FreeBSD  Emulated Disk    0.1   /dev/sdg
>>
>>
>> It's entirely 23XX is broken. I'll see if I can hook one up and let you
>> know.
>>
>>
>> On 10/25/2010 1:50 PM, Penta Upa wrote:
>>
>>> Hi,
>>>
>>> I am having trouble getting target mode to work with isp. The setup is a
>>> linux box as the initiator and a FreeBSD 8.1 box as the target. The linux
>>> box has a qla2340 card while the target has a qla2342 card both hbas are
>>> connected point to point.
>>>
>>> The target is running a custom build kernel. Kernel configuration is the
>>> GENERIC configuration, removing most of the drivers, but i have added the
>>> following options relevant to isp
>>>
>>>  device                da
>>>>
>>> 111a117,122
>>>
>>>> device                targ
>>>> device                targbh
>>>> options               CAMDEBUG
>>>> options               VFS_AIO
>>>> options               ISP_TARGET_MODE
>>>> options               ISP_DEFAULT_ROLES=1
>>>>
>>> isp device hints are as below
>>> hint.isp.0.role="target"
>>> hint.isp.0.fullduplex="1"
>>>
>>> To test target mode i ran the following
>>> scsi_target 0:0:0 disk.out (i have tried with 0:1:0 also)
>>>
>>> Once the FreeBSD target is up and running, on the linux side i load the
>>> qlogic driver (/sbin/modprobe qla2xxx). The only error message i see on
>>> the
>>> linux side is something on the lines - command
>>>
>>> The FreeBSD box was earlier running linux with a target mode driver and
>>> the
>>> same steps on the initiator used to work fine, so i guess i can rule out
>>> an
>>> issue with the HBA hardware. I later reinstalled the box with the 8.1
>>> release. I have changed the cabling a few times to rule out any faulty
>>> cables.
>>>
>>> Below are relevant syslog messages
>>>
>>> Linux
>>> ------
>>> Oct 26 01:09:20 scache2 kernel:  QLogic Fibre Channel HBA Driver:
>>> 8.02.00-k5-rhel5.2-04
>>> Oct 26 01:09:20 scache2 kernel:   QLogic QLA2342 - 133MHz PCI-X to 2Gb
>>> FC,
>>> Dual Channel
>>> Oct 26 01:09:20 scache2 kernel:   ISP2312: PCI-X (133 MHz) @ 0000:06:01.1
>>> hdma-, host#=17, fw=3.03.26 IPX
>>> Oct 26 01:09:21 scache2 kernel: qla2xxx 0000:06:01.1: LIP occured (f7f7).
>>> Oct 26 01:09:21 scache2 kernel: qla2xxx 0000:06:01.1: LOOP UP detected (2
>>> Gbps).
>>> Oct 26 01:09:43 scache2 kernel: scsi 17:0:0:0: timing out command, waited
>>> 22s
>>>
>>> FreeBSD
>>> -------
>>> isp0:<Qlogic ISP 2312 PCI FC-AL Adapter>  port 0x2000-0x20ff mem
>>> 0x81a00000-0x81a00fff irq 32 at device 2.0 on pci2
>>> Oct 25 19:38:32 scache kernel: isp0: [ITHREAD]
>>> Oct 25 19:41:09 scache kernel: isp0: target notify code 0x100b
>>>
>>> Is there anything i'm missing here. Kindly help.
>>>
>>> Regards,
>>> Penta
>>> _______________________________________________
>>> 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"
>>>
>> _______________________________________________
>> 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"
>>
> _______________________________________________
> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=Jqu36_aegWmu_vO3DetxHQRK2f4=BOV2ZfaF7>