From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 13 01:27:58 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 3C6941065746 for ; Mon, 13 Apr 2009 01:27:58 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id D97CB8FC23 for ; Mon, 13 Apr 2009 01:27:57 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 2C69C78C3B for ; Mon, 13 Apr 2009 10:27:57 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 11B6478C34 for ; Mon, 13 Apr 2009 10:27:57 +0900 (JST) Message-ID: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> From: "Daisuke Aoyama" To: Date: Mon, 13 Apr 2009 10:27:53 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: ClamAV using ClamSMTP Subject: iSCSI initiator questions 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: Mon, 13 Apr 2009 01:28:00 -0000 Hi all, I have a trouble that FreeBSD initiator caused to panic when umount after writing many files to the iSCSI disk. (w/softupdate) It seems that my istgt corrupted. Then, when I was going to have made the digest function effective for diagnostic, I encountered a further problem. iSCSI initiator(2.1.1) crashed when HeaderDigest was specified and the connection was tried. (DataDigest caused the system to hang) Has not it been supported yet? Note: istgt's digest function was tested by Microsoft's initiators. HeaderDigest was also tested by Open-iSCSI initiator (CentOS 5.2). This is another question. Is the following code an expected code? Why is Head of Queue tag mapped to Ordered Queue tag attribute? /usr/src/sys/dev/iscsi/initiator/iscsi_subr.c > case MSG_SIMPLE_Q_TAG: cmd->attr = iSCSI_TASK_SIMPLE; break; > case MSG_HEAD_OF_Q_TAG: cmd->attr = iSCSI_TASK_ORDER; break; > case MSG_ORDERED_Q_TAG: cmd->attr = iSCSI_TASK_HOFQ; break; > case MSG_ACA_TASK: cmd->attr = iSCSI_TASK_ACA; break; Thanks, -- Daisuke Aoyama From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 13 09:28:44 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 5BC34106566B for ; Mon, 13 Apr 2009 09:28:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 0EBA48FC14 for ; Mon, 13 Apr 2009 09:28:43 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1LtIT3-0006iC-LG; Mon, 13 Apr 2009 12:28:41 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: "Daisuke Aoyama" In-reply-to: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> References: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> Comments: In-reply-to "Daisuke Aoyama" message dated "Mon, 13 Apr 2009 10:27:53 +0900." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Apr 2009 12:28:41 +0300 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI initiator questions 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: Mon, 13 Apr 2009 09:28:44 -0000 > Hi all, > > I have a trouble that FreeBSD initiator caused to panic when umount > after writing many files to the iSCSI disk. (w/softupdate) can you tell me where is panic'ed? > It seems that my istgt corrupted. Then, when I was going to have > made the digest function effective for diagnostic, I encountered > a further problem. > > iSCSI initiator(2.1.1) crashed when HeaderDigest was specified and > the connection was tried. (DataDigest caused the system to hang) > Has not it been supported yet? was never finished!, I guess I need to get on with it. > > Note: istgt's digest function was tested by Microsoft's initiators. > HeaderDigest was also tested by Open-iSCSI initiator (CentOS 5.2). > > This is another question. Is the following code an expected code? > Why is Head of Queue tag mapped to Ordered Queue tag attribute? > > /usr/src/sys/dev/iscsi/initiator/iscsi_subr.c > > case MSG_SIMPLE_Q_TAG: cmd->attr = iSCSI_TASK_SIMPLE; break; > > case MSG_HEAD_OF_Q_TAG: cmd->attr = iSCSI_TASK_ORDER; break; > > case MSG_ORDERED_Q_TAG: cmd->attr = iSCSI_TASK_HOFQ; break; > > case MSG_ACA_TASK: cmd->attr = iSCSI_TASK_ACA; break; > the above is a cut-n-paste error it should be: case MSG_HEAD_OF_Q_TAG: cmd->attr = iSCSI_TASK_HOFQ; break; case MSG_ORDERED_Q_TAG: cmd->attr = iSCSI_TASK_ORDER; break; goot catch! danny From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 13 11:07:00 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 E6C961065686 for ; Mon, 13 Apr 2009 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CBC568FC23 for ; Mon, 13 Apr 2009 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3DB702D085081 for ; Mon, 13 Apr 2009 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3DB70Vr085077 for freebsd-scsi@FreeBSD.org; Mon, 13 Apr 2009 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Apr 2009 11:07:00 GMT Message-Id: <200904131107.n3DB70Vr085077@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org 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: Mon, 13 Apr 2009 11:07:01 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/132394 scsi [isp] - bad underruns with QLogic qla2300 and amd64 o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri o kern/131032 scsi [panic] hald causing panic in scsi_sg o kern/130735 scsi [cam] [patch] pass M_NOWAIT to the malloc() call insid o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/126866 scsi [isp] [panic] kernel panic on card initialization o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123666 scsi [aac] attach fails with Adaptec SAS RAID 3805 controll o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/38828 scsi [dpt] [request] DPT PM2012B/90 doesn't work o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 36 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 14 04:41:29 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 3CB46106564A for ; Tue, 14 Apr 2009 04:41:29 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id D62DE8FC12 for ; Tue, 14 Apr 2009 04:41:28 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id C5C1A78C3B; Tue, 14 Apr 2009 13:41:27 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 86A2378C34; Tue, 14 Apr 2009 13:41:27 +0900 (JST) Message-ID: <07B5ECD1779A4B1C9AF932252EE74EC8@artemis> From: "Daisuke Aoyama" To: "Danny Braniss" References: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> Date: Tue, 14 Apr 2009 13:41:20 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI initiator questions 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: Tue, 14 Apr 2009 04:41:29 -0000 >> I have a trouble that FreeBSD initiator caused to panic when umount >> after writing many files to the iSCSI disk. (w/softupdate) >can you tell me where is panic'ed? I solved it that was caused by istgt LBA handling issue. I will update ports version ASAP. -- Daisuke Aoyama From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 17 13:54:20 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 B81B31065672 for ; Fri, 17 Apr 2009 13:54:20 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 6D6298FC13 for ; Fri, 17 Apr 2009 13:54:20 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1LuoWI-0005R2-DK; Fri, 17 Apr 2009 16:54:18 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: "Daisuke Aoyama" In-reply-to: <07B5ECD1779A4B1C9AF932252EE74EC8@artemis> References: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> <07B5ECD1779A4B1C9AF932252EE74EC8@artemis> Comments: In-reply-to "Daisuke Aoyama" message dated "Tue, 14 Apr 2009 13:41:20 +0900." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 17 Apr 2009 16:54:18 +0300 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI initiator questions 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, 17 Apr 2009 13:54:21 -0000 > >> I have a trouble that FreeBSD initiator caused to panic when umount > >> after writing many files to the iSCSI disk. (w/softupdate) > >can you tell me where is panic'ed? > > I solved it that was caused by istgt LBA handling issue. > I will update ports version ASAP. > -- > Daisuke Aoyama > Hi Daisuke Aoyama, I fixed the header digest stuff, and it seems to work, can you give it a spin? Make sure to recompile iscontrol too. ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.1.2.tar.gz thanks, danny From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 17 19:40:07 2009 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E983D1065672 for ; Fri, 17 Apr 2009 19:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D7EE38FC0A for ; Fri, 17 Apr 2009 19:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3HJe7kI098180 for ; Fri, 17 Apr 2009 19:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3HJe7U4098179; Fri, 17 Apr 2009 19:40:07 GMT (envelope-from gnats) Date: Fri, 17 Apr 2009 19:40:07 GMT Message-Id: <200904171940.n3HJe7U4098179@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org From: Geoffrey Lassner Cc: Subject: Re: i386/132206: mpt driver: system panics on boot when mirroring and 2nd drive is resyncing X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Geoffrey Lassner List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2009 19:40:08 -0000 The following reply was made to PR kern/132206; it has been noted by GNATS. From: Geoffrey Lassner To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-i386@FreeBSD.org Cc: Geoffrey Lassner Subject: Re: i386/132206: mpt driver: system panics on boot when mirroring and 2nd drive is resyncing Date: Fri, 17 Apr 2009 13:12:13 -0600 7.2 RC1 also panics with a similar error: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x14 fault code = supervisor read, page not present instruction pointer = 0x20:0xc046f77b stack pointer = 0x28:0xc75d8b80 frame pointer = 0x28:0xc75d8b9c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 18 (swi2: cambio) trap number = 12 panic: page fault From owner-freebsd-scsi@FreeBSD.ORG Sat Apr 18 00:27:52 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 4927D106566B for ; Sat, 18 Apr 2009 00:27:52 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id E47988FC1A for ; Sat, 18 Apr 2009 00:27:51 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id A688878C3B; Sat, 18 Apr 2009 09:27:50 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 7EFF078C34; Sat, 18 Apr 2009 09:27:50 +0900 (JST) Message-ID: <7B6C12AFB0774E5EB10D98303E8CA838@artemis> From: "Daisuke Aoyama" To: "Danny Braniss" References: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> <07B5ECD1779A4B1C9AF932252EE74EC8@artemis> Date: Sat, 18 Apr 2009 09:27:43 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI initiator questions 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: Sat, 18 Apr 2009 00:27:52 -0000 Hi danny, I got an error at isc_soc.c when compile. It should use 'z' length modifier for size_t in C99. (usually '%zu' for size_t) ---------------------------------------------------------------------- cc -c -O1 -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param arge-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror ../../../dev/iscsi/initiator/isc_soc.c cc1: warnings being treated as errors ../../../dev/iscsi/initiator/isc_soc.c: In function 'so_recv': ../../../dev/iscsi/initiator/isc_soc.c:438: warning: format '%ld' expects type 'long int', but argument 3 has type 'size_t' *** Error code 1 ---------------------------------------------------------------------- I try to use 2.1.2 with istgt 20090416. (this version send-pr as 133782. check http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133782) It seems to work at first connection but reconnection does not work. It seems to receive digest with Login Request PDU. Even if digest was used on previous connection, reset is reuqired on new connection. (I tried simply "/usr/local/etc/rc.d/istgt restart") Please check it when reconnection has occurred. See also RFC3720 10.12 and 10.13 for Login Request/Response PDU format. Thanks, -- Daisuke Aoyama