From owner-freebsd-scsi@FreeBSD.ORG Wed Oct 27 20:20:14 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 E1F7B106564A for ; Wed, 27 Oct 2010 20:20:14 +0000 (UTC) (envelope-from bsdboot@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 98E738FC0C for ; Wed, 27 Oct 2010 20:20:14 +0000 (UTC) Received: by gxk9 with SMTP id 9so789850gxk.13 for ; Wed, 27 Oct 2010 13:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=5nt24XtT3ExI1LfovEyI5AVJ6USulM/Wnjpz6zaZK5s=; b=GxR7rtAL99OqUI5n2zTNOnsda4QSVjawedN2iYd0NutbuM8LhDSZrF/xGJM0D6TFRl 22dndVsP82F5SrdIRNS8uC3OFpBRZb9fcfvtPZRSMTi5q9JdDJKeEKatFAvuWjNiHQN2 RIGOhlXIGtvDr5naNsCDcsQiid89XkvbfMcEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=j/ownZEax9ErwdWLZmOfoBRs1cXvCPtlFdqwpCvp7SeJOr/u2FydjeXIyFdCRIsVlS SnQwEsB0o0oUnXSm1V/loTWYL++DvQTaNB2hTs897VsLwA6DEMyyxQaET0KUjPOmi/Vw Cww8AzzYIuMasGoJcFYCCz9+wT0nHU1EmmsPk= MIME-Version: 1.0 Received: by 10.42.214.80 with SMTP id gz16mr7581761icb.502.1288210813508; Wed, 27 Oct 2010 13:20:13 -0700 (PDT) Received: by 10.231.153.13 with HTTP; Wed, 27 Oct 2010 13:20:13 -0700 (PDT) In-Reply-To: <4CC7AB7E.3050705@feral.com> References: <4CC75FAE.9060708@feral.com> <4CC7AB7E.3050705@feral.com> Date: Thu, 28 Oct 2010 01:50:13 +0530 Message-ID: From: Penta Upa To: Matthew Jacob Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-scsi@freebsd.org Subject: Re: Problems getting target mode to work with isp driver 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: Wed, 27 Oct 2010 20:20:15 -0000 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 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: 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" >