From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 26 12:39:40 2009 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 4E0E4106566C for ; Fri, 26 Jun 2009 12:39:40 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from proxypop1.sarenet.es (proxypop1.sarenet.es [194.30.0.99]) by mx1.freebsd.org (Postfix) with ESMTP id 8F5228FC08 for ; Fri, 26 Jun 2009 12:39:39 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from [172.16.1.204] (izaro.sarenet.es [192.148.167.11]) by proxypop1.sarenet.es (Postfix) with ESMTP id C3CEF5DE8 for ; Fri, 26 Jun 2009 14:20:24 +0200 (CEST) Message-Id: <9D155EF6-7171-473C-A09A-B4B18CC1A932@sarenet.es> From: Borja Marcos To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v935.3) Date: Fri, 26 Jun 2009 14:20:22 +0200 X-Mailer: Apple Mail (2.935.3) Subject: Fibrechannel HAs 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: Fri, 26 Jun 2009 12:39:40 -0000 Hello, I'm trying to use a SAN with FreeBSD and running into problems, not =20 sure at all what to blame. Let's see if anyone can shed some light on =20= this. I'm using a Qlogic card, a QL2360, supplied by Dell. FreeBSD 7.2/amd64 recognizes it, but it claims it's a different model: Jun 25 17:18:36 host kernel: isp0: =20= port 0xdc00-0xdcff mem 0xfc4bc000-0xfc4bffff irq 16 at device 0.0 on =20 pci10 Jun 25 17:18:36 host kernel: isp0: [ITHREAD] Jun 25 17:18:36 host kernel: isp0: Polled Mailbox Command (0x8) =20 Timeout (100000us) Jun 25 17:18:36 host kernel: isp0: Board Type 2422, Chip Revision 0x3, =20= loaded F/W Revision 4.0.20 I've been using a FC disk array, and seems to work. However, to my =20 astonishment, when I have connected this to a HP EVA4400 SAN, via one =20= of its FC switches (supposed to be a Brocade) the EVA4400 takes the =20 controller I was reaching via FC offline! Quite suprising. I've checked the switch, and indeed it correctly detects the card's =20 WWN attached to the port. But other than that I'm clueless. Of course =20= HP says that FreeBSD isn't among the supported systems. Of course I =20 say that I'm not very fond of a subsystem that can crash due to a =20 misconfigured host, if we accept that the FreeBSD=B4s driver is to =20 blame... Any ideas? I've activated some debugging flags for the isp adapter, =20 I'm using ispfw as well, and this is what I'm seeing: %fgrep isp0 mensajes1 Jun 25 17:18:36 host kernel: isp0: =20= port 0xdc00-0xdcff mem 0xfc4bc000-0xfc4bffff irq 16 at device 0.0 on =20 pci10 Jun 25 17:18:36 host kernel: isp0: [ITHREAD] Jun 25 17:18:36 host kernel: isp0: Polled Mailbox Command (0x8) =20 Timeout (100000us) Jun 25 17:18:36 host kernel: isp0: Board Type 2422, Chip Revision 0x3, =20= loaded F/W Revision 4.0.20 Jun 26 09:28:53 host kernel: isp0: =20= port 0xdc00-0xdcff mem 0xfc4bc000-0xfc4bffff irq 16 at device 0.0 on =20 pci10 Jun 26 09:28:53 host kernel: isp0: [ITHREAD] Jun 26 09:28:53 host kernel: isp0: Polled Mailbox Command (0x8) =20 Timeout (100000us) Jun 26 09:28:53 host kernel: isp0: Board Type 2422, Chip Revision 0x3, =20= loaded F/W Revision 4.0.20 Jun 26 09:51:36 host kernel: isp0: =20= port 0xdc00-0xdcff mem 0xfc4bc000-0xfc4bffff irq 16 at device 0.0 on =20 pci10 Jun 26 09:51:36 host kernel: isp0: set PCI latency to 64 Jun 26 09:51:36 host kernel: isp0: [ITHREAD] Jun 26 09:51:36 host kernel: isp0: Polled Mailbox Command (0x8) =20 Timeout (100000us) Jun 26 09:51:36 host kernel: isp0: Board Type 2422, Chip Revision 0x3, =20= loaded F/W Revision 4.0.20 Jun 26 09:51:36 host kernel: isp0: 2K Logins Supported Jun 26 09:51:36 host kernel: isp0: 4096 max I/O command limit set Jun 26 09:51:36 host kernel: isp0: line 1220: markportdb Jun 26 09:51:36 host kernel: isp0: Starting Initial Loop Down Timer Jun 26 09:51:36 host kernel: isp0: line 5346: markportdb Jun 26 09:51:36 host kernel: isp0: line 5284: markportdb Jun 26 09:51:36 host kernel: isp0: line 5320: markportdb Jun 26 09:51:36 host kernel: isp0: line 5358: markportdb Jun 26 09:51:36 host kernel: isp0: Stopping Loop Down Timer Jun 26 09:51:36 host kernel: isp0: line 5358: markportdb Jun 26 09:51:36 host kernel: isp0: line 5358: markportdb Jun 26 09:51:36 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:51:36 host kernel: isp0: FC Link Test Entry Jun 26 09:51:36 host kernel: isp0: line 2473: markportdb Jun 26 09:51:36 host kernel: isp0: Firmware State Ready> Jun 26 09:51:36 host kernel: isp0: Register FC4 Type accepted Jun 26 09:51:36 host kernel: isp0: HBA PortID 0x0103ef N-Port Handle =20 0, Connection Topology 'FL Port' Jun 26 09:51:36 host kernel: isp0: HBA WWNN 0x2000001b32886ad8 HBA =20 WWPN 0x2100001b32886ad8 Jun 26 09:51:36 host kernel: isp0: FC Link Test Complete Jun 26 09:51:36 host kernel: isp0: FC scan loop 0..125 Jun 26 09:51:36 host kernel: isp0: FC Scan Fabric Jun 26 09:51:36 host kernel: isp0: got 3 ports back from name server Jun 26 09:51:36 host kernel: isp0: Checking Fabric Port 0x010000 Jun 26 09:51:36 host kernel: isp0: Fabric Port 0x010000 is New Entry Jun 26 09:51:36 host kernel: isp0: Checking Fabric Port 0x010100 Jun 26 09:51:36 host kernel: isp0: Fabric Port 0x010100 is New Entry Jun 26 09:51:36 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:51:36 host kernel: isp0: FC Scan Fabric Done Jun 26 09:51:36 host kernel: isp0: Synchronizing PDBs Jun 26 09:51:36 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target arrived at tgt 0 Jun 26 09:51:36 host kernel: isp0: PortID 0x010100 handle 0x82 role =20 Target arrived at tgt 1 Jun 26 09:51:36 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:51:36 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:51:36 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:51:36 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:51:36 host kernel: isp0: line 5368: markportdb Jun 26 09:51:36 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:51:36 host kernel: isp0: FC scan loop 0..125 Jun 26 09:51:36 host kernel: isp0: line 5368: markportdb Jun 26 09:51:36 host kernel: isp0: line 2938: markportdb Jun 26 09:51:36 host kernel: isp0: isp_fc_runstate: scan loop fails Jun 26 09:51:36 host kernel: isp0: kthread: FC got to 2 (down count 0) Jun 26 09:51:36 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:51:36 host kernel: isp0: isp_kthread: sleep time 1 Jun 26 09:51:36 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:51:36 host kernel: isp0: FC scan loop 0..125 Jun 26 09:51:36 host kernel: isp0: FC Scan Fabric Jun 26 09:51:36 host kernel: isp0: got 1 ports back from name server Jun 26 09:51:36 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:51:36 host kernel: isp0: FC Scan Fabric Done Jun 26 09:51:36 host kernel: isp0: Synchronizing PDBs Jun 26 09:51:36 host kernel: isp0: starting Gone Device Timer Jun 26 09:51:36 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target gone zombie at tgt 0 Jun 26 09:51:36 host kernel: isp0: PortID 0x010100 handle 0x82 role =20 Target gone zombie at tgt 1 Jun 26 09:51:36 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:51:36 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:51:36 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:51:36 host kernel: isp0: PortID 0x010000 Departed from =20 Target 0 because of Gone Device Timeout Jun 26 09:51:36 host kernel: isp0: PortID 0x010100 Departed from =20 Target 1 because of Gone Device Timeout Jun 26 09:51:36 host kernel: isp0: stopping Gone Device Timer Jun 26 09:51:36 host kernel: (probe0:isp0:0:0:0): inquiry data fails =20 comparison at DV1 step Jun 26 09:51:36 host kernel: isp0: command timed out for 0.1.0 Jun 26 09:51:36 host kernel: (probe1:isp0:0:1:0): inquiry data fails =20 comparison at DV1 step Jun 26 09:52:12 host kernel: isp0: line 5358: markportdb Jun 26 09:52:12 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:52:12 host kernel: isp0: FC scan loop 0..125 Jun 26 09:52:12 host kernel: isp0: FC Scan Fabric Jun 26 09:52:12 host kernel: isp0: got 1 ports back from name server Jun 26 09:52:12 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:52:12 host kernel: isp0: FC Scan Fabric Done Jun 26 09:52:12 host kernel: isp0: Synchronizing PDBs Jun 26 09:52:12 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:52:12 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:52:12 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:52:12 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:54:22 host kernel: isp0: line 5368: markportdb Jun 26 09:54:22 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:54:22 host kernel: isp0: FC scan loop 0..125 Jun 26 09:54:22 host kernel: isp0: line 5368: markportdb Jun 26 09:54:22 host kernel: isp0: line 2938: markportdb Jun 26 09:54:22 host kernel: isp0: isp_fc_runstate: scan loop fails Jun 26 09:54:22 host kernel: isp0: kthread: FC got to 2 (down count 0) Jun 26 09:54:22 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:54:22 host kernel: isp0: isp_kthread: sleep time 1 Jun 26 09:54:23 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:54:23 host kernel: isp0: FC scan loop 0..125 Jun 26 09:54:23 host kernel: isp0: FC Scan Fabric Jun 26 09:54:23 host kernel: isp0: got 2 ports back from name server Jun 26 09:54:23 host kernel: isp0: Checking Fabric Port 0x010000 Jun 26 09:54:23 host kernel: isp0: Fabric Port 0x010000 is New Entry Jun 26 09:54:23 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:54:23 host kernel: isp0: FC Scan Fabric Done Jun 26 09:54:23 host kernel: isp0: Synchronizing PDBs Jun 26 09:54:23 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target arrived at tgt 0 Jun 26 09:54:23 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:54:23 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:54:23 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:54:23 host kernel: isp0: line 5368: markportdb Jun 26 09:54:23 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:54:23 host kernel: isp0: FC scan loop 0..125 Jun 26 09:54:23 host kernel: isp0: FC Scan Fabric Jun 26 09:54:23 host kernel: isp0: got 2 ports back from name server Jun 26 09:54:23 host kernel: isp0: Checking Fabric Port 0x010000 Jun 26 09:54:23 host kernel: isp0: Fabric Port 0x010000 Now Pending =20 Valid Jun 26 09:54:23 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:54:23 host kernel: isp0: FC Scan Fabric Done Jun 26 09:54:23 host kernel: isp0: Synchronizing PDBs Jun 26 09:54:23 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target stayed at tgt 0 Jun 26 09:54:23 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:54:23 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:54:23 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:54:23 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:54:39 host kernel: isp0: line 5368: markportdb Jun 26 09:54:39 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:54:39 host kernel: isp0: FC scan loop 0..125 Jun 26 09:54:39 host kernel: isp0: FC Scan Fabric Jun 26 09:54:39 host kernel: isp0: got 1 ports back from name server Jun 26 09:54:39 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:54:39 host kernel: isp0: FC Scan Fabric Done Jun 26 09:54:39 host kernel: isp0: Synchronizing PDBs Jun 26 09:54:39 host kernel: isp0: starting Gone Device Timer Jun 26 09:54:39 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target gone zombie at tgt 0 Jun 26 09:54:39 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:54:39 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:54:39 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:54:39 host kernel: isp0: isp_kthread: sleep time 0 Jun 26 09:54:39 host kernel: isp0: mailbox cmd (0x4001) with no waiters Jun 26 09:55:08 host kernel: isp0: PortID 0x010000 Departed from =20 Target 0 because of Gone Device Timeout Jun 26 09:55:08 host kernel: isp0: stopping Gone Device Timer Jun 26 09:55:09 host kernel: (probe0:isp0:0:0:0): inquiry data fails =20 comparison at DV1 step Jun 26 09:58:18 host kernel: isp0: line 5368: markportdb Jun 26 09:58:18 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:58:18 host kernel: isp0: FC scan loop 0..125 Jun 26 09:58:18 host kernel: isp0: line 5368: markportdb Jun 26 09:58:18 host kernel: isp0: line 2938: markportdb Jun 26 09:58:18 host kernel: isp0: isp_fc_runstate: scan loop fails Jun 26 09:58:18 host kernel: isp0: kthread: FC got to 2 (down count 0) Jun 26 09:58:18 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:58:18 host kernel: isp0: isp_kthread: sleep time 1 Jun 26 09:58:19 host kernel: isp0: line 5368: markportdb Jun 26 09:58:19 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:58:19 host kernel: isp0: FC scan loop 0..125 Jun 26 09:58:19 host kernel: isp0: line 5368: markportdb Jun 26 09:58:19 host kernel: isp0: line 2938: markportdb Jun 26 09:58:19 host kernel: isp0: isp_fc_runstate: scan loop fails Jun 26 09:58:19 host kernel: isp0: kthread: FC got to 2 (down count 1) Jun 26 09:58:19 host kernel: isp0: isp_kthread: releasing simq Jun 26 09:58:19 host kernel: isp0: isp_kthread: sleep time 1 Jun 26 09:58:20 host kernel: isp0: isp_kthread: checking FC state Jun 26 09:58:20 host kernel: isp0: FC scan loop 0..125 Jun 26 09:58:20 host kernel: isp0: FC Scan Fabric Jun 26 09:58:20 host kernel: isp0: got 3 ports back from name server Jun 26 09:58:20 host kernel: isp0: Checking Fabric Port 0x010000 Jun 26 09:58:20 host kernel: isp0: Fabric Port 0x010000 is New Entry Jun 26 09:58:20 host kernel: isp0: Checking Fabric Port 0x010100 Jun 26 09:58:20 host kernel: isp0: Fabric Port 0x010100 is New Entry Jun 26 09:58:20 host kernel: isp0: skip ourselves @ PortID 0x0103ef Jun 26 09:58:20 host kernel: isp0: FC Scan Fabric Done Jun 26 09:58:20 host kernel: isp0: Synchronizing PDBs Jun 26 09:58:20 host kernel: isp0: PortID 0x010000 handle 0x81 role =20 Target arrived at tgt 0 Jun 26 09:58:20 host kernel: isp0: PortID 0x010100 handle 0x82 role =20 (none) arrived Jun 26 09:58:20 host kernel: isp0: PortID 0xfffffe handle 0x7fe role =20 (none) stayed Jun 26 09:58:20 host kernel: isp0: isp_kthread: FC state OK Jun 26 09:58:20 host kernel: isp0: isp_kthread: sleep time 0 %