From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 12 10:05:07 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 0B66A106564A for ; Mon, 12 Jan 2009 10:05:07 +0000 (UTC) (envelope-from freebsd-scsi@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id AD7A88FC1C for ; Mon, 12 Jan 2009 10:05:06 +0000 (UTC) (envelope-from freebsd-scsi@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LMJH8-0007RV-V2 for freebsd-scsi@freebsd.org; Mon, 12 Jan 2009 09:40:02 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jan 2009 09:40:02 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jan 2009 09:40:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-scsi@freebsd.org From: Ivan Voras Date: Mon, 12 Jan 2009 10:33:18 +0100 Lines: 39 Message-ID: References: <6c1e076a0901070247l7c006efajda8fddee84c337a@mail.gmail.com> <49653A7D.30906@modulus.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig896FE1AB13EAA89F0C9B6A61" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: <49653A7D.30906@modulus.org> X-Enigmail-Version: 0.95.0 Sender: news Cc: freebsd-fs@freebsd.org Subject: Re: iscsi client hangs performing I/O on a dead target 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, 12 Jan 2009 10:05:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig896FE1AB13EAA89F0C9B6A61 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Andrew Snow wrote: > Danny Braniss wrote: >> freebsd likes to >> panic if a disc goes away, so don't hold your breath for a solution so= on. >=20 >=20 > You hit the nail on the head. This is going to be a increasingly bad > problem as we continue pushing in this of networked storage. >=20 > It would be REALLY nice, if an I/O fails, to simply have the process > attempting the I/O to be killed, instead of bringing the machine to its= > knees and locking up or panic the kernel. There have been some commits recently related to this problem - you could try running 8-CURRENT and see if it's addressed. --------------enig896FE1AB13EAA89F0C9B6A61 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJaw5fldnAQVacBcgRAhVmAKDS1z05/eY5ZZGhBzMMwbmQTWEgkwCgmoEh d/0u1TAeJQ0rtwzxgEsTb1I= =wjgD -----END PGP SIGNATURE----- --------------enig896FE1AB13EAA89F0C9B6A61-- From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 12 11:06:59 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 55C7C1065670 for ; Mon, 12 Jan 2009 11:06:59 +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 282D78FC2B for ; Mon, 12 Jan 2009 11:06:59 +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 n0CB6xOg092122 for ; Mon, 12 Jan 2009 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0CB6wor092118 for freebsd-scsi@FreeBSD.org; Mon, 12 Jan 2009 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Jan 2009 11:06:58 GMT Message-Id: <200901121106.n0CB6wor092118@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, 12 Jan 2009 11:07:00 -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 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 30 problems total. From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 11:56:39 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 B147A1065672 for ; Wed, 14 Jan 2009 11:56:39 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id 0A3B98FC12 for ; Wed, 14 Jan 2009 11:56:37 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: (qmail 81465 invoked by uid 89); 14 Jan 2009 11:56:36 -0000 Received: by simscan 1.1.0 ppid: 81449, pid: 81461, t: 0.4711s scanners:none X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on web.dotcom.ts.it X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.2) by test.dotcom.ts.it with SMTP; 14 Jan 2009 11:56:36 -0000 Message-ID: <496DD248.1020502@dotcom.ts.it> Date: Wed, 14 Jan 2009 12:53:44 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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, 14 Jan 2009 11:56:40 -0000 Danny Braniss wrote: >> Danny Braniss wrote: >> >>>> Danny Braniss wrote: >>>> >>>> >>>>> wups, didn't read all your mail, sorry, >>>>> try increasing tht tag opening, in the config file add >>>>> tag = 64 >>>>> for example, or via camcontrol >>>>> >>>>> danny >>>>> >>>>> >>>>> >>>> I modify my iscsi.conf by adding tags = 64 (and no tag). Now works fine, >>>> about 43MB/s. Thank You very match. >>>> >>>> > RTFM :-) > > [...] > danny > In last 2-3 months I searched the (F) manual, but I didn't find any! Where is the manual?... In this week I did many tests on ISCSI and found another problem with slow writing. I created 7 virtual disk on my NAS server. The first 4 disks (/dev/da0 - /dev/da3) work fine, the other 3 (/dev/da4 - /dev/da6) are slow. I found this depends from parameter ISCSI_MAX_LUNS defined in file iscsi.h, set 4. I tried to increase this value, but with all values higher of 4 the initiator prints error: iscontrol[602]: ISCSIGETCAM failed: 25 Is it possible to manage more than 4 disk without degrading the performance? Thanks in advance. -- Sossi Andrej ------------------------- DotCom Information technology Via Biancospino, 9 34151 - Opicina (TS) Italy tel: +39 040 2158191 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 12:23:38 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 199CE1065674 for ; Wed, 14 Jan 2009 12:23:37 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from warped.bluecherry.net (unknown [IPv6:2001:440:eeee:fffb::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6AB328FC1A for ; Wed, 14 Jan 2009 12:23:37 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (morganw-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:47e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by warped.bluecherry.net (Postfix) with ESMTPSA id 3A9DEA35870F for ; Wed, 14 Jan 2009 06:23:35 -0600 (CST) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id n0ECNUg3015023 for ; Wed, 14 Jan 2009 06:23:30 -0600 (CST) (envelope-from morganw@chemikals.org) Date: Wed, 14 Jan 2009 06:23:30 -0600 (CST) From: Wes Morgan To: freebsd-scsi@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: SMART status of SATA drives on SAS controller 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, 14 Jan 2009 12:23:38 -0000 I've got 8 SATA2 drives in an zfs raidz2 on an LSI controller (1068 I believe, mpt driver), and one of them seems to be acting strangely. I'd like to get the smart status without pulling it out of the array and dropping it onto an ATA controller, but I don't seem to be able to for any of the drives. Using the device type as both "SAT" and "SCSI", neither will successfully show the full output. Is there any way around this? Error below... === START OF INFORMATION SECTION === Device Model: WDC WD5002ABYS-01B1B0 Serial Number: WD-WCASY3240847 Firmware Version: 02.03B02 User Capacity: 500,107,862,016 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Wed Jan 14 06:14:18 2009 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled. (pass4:mpt0:0:4:0): ATA COMMAND PASS THROUGH(16). CDB: 85 6 2c 0 da 0 0 0 0 0 4f 0 c2 0 b0 0 (pass4:mpt0:0:4:0): CAM Status: SCSI Status Error (pass4:mpt0:0:4:0): SCSI Status: Check Condition (pass4:mpt0:0:4:0): RECOVERED ERROR asc:0,1d (pass4:mpt0:0:4:0): ATA pass through information available SMART Disabled. Use option -s with argument 'on' to enable it. From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 13:10:05 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 A22841065673 for ; Wed, 14 Jan 2009 13:10:05 +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 53B838FC0C for ; Wed, 14 Jan 2009 13:10:05 +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 1LN5VT-000N2X-NH; Wed, 14 Jan 2009 15:10:03 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Sossi Andrej In-reply-to: <496DD248.1020502@dotcom.ts.it> References: <496DD248.1020502@dotcom.ts.it> Comments: In-reply-to Sossi Andrej message dated "Wed, 14 Jan 2009 12:53:44 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Jan 2009 15:10:03 +0200 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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, 14 Jan 2009 13:10:13 -0000 > Danny Braniss wrote: > >> Danny Braniss wrote: > >> > >>>> Danny Braniss wrote: > >>>> > >>>> > >>>>> wups, didn't read all your mail, sorry, > >>>>> try increasing tht tag opening, in the config file add > >>>>> tag = 64 > >>>>> for example, or via camcontrol > >>>>> > >>>>> danny > >>>>> > >>>>> > >>>>> > >>>> I modify my iscsi.conf by adding tags = 64 (and no tag). Now works fine, > >>>> about 43MB/s. Thank You very match. > >>>> > >>>> > > RTFM :-) > > > > [...] > > danny > > > In last 2-3 months I searched the (F) manual, but I didn't find any! > Where is the manual?... > man -k iscsi iscontrol(8) - login/negotiator/control for an iSCSI initiator session iscsi.conf(5) - key options to be negotiated in an iSCSI session iscsi_initiator(4) - kernel driver for the iSCSI protocol iscsi-target(8) - service remote iSCSI requests targets(5) - configuration file for iSCSI targets > In this week I did many tests on ISCSI and found another problem with > slow writing. I created 7 virtual disk on my NAS server. The first 4 > disks (/dev/da0 - /dev/da3) work fine, the other 3 (/dev/da4 - /dev/da6) > are slow. > I found this depends from parameter ISCSI_MAX_LUNS defined in file > iscsi.h, set 4. I tried to increase this value, but with all values > higher of 4 the initiator prints error: > iscontrol[602]: ISCSIGETCAM failed: 25 > did you recompile the driver? > Is it possible to manage more than 4 disk without degrading the performance? > are you sure that da4,5,6 actually are disks? they might be just files ... ls -ls /dev/da? > Thanks in advance. > chiao :-) danny > -- > Sossi Andrej > ------------------------- > DotCom Information technology > > Via Biancospino, 9 > 34151 - Opicina (TS) > Italy > > tel: +39 040 2158191 > fax: +39 040 0641954 > E-mail: asossi@dotcom.ts.it > ---------------------------- > > Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie > > This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. > From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 13:31:11 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 BBC531065673 for ; Wed, 14 Jan 2009 13:31:11 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id 129338FC1E for ; Wed, 14 Jan 2009 13:31:10 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: (qmail 95820 invoked by uid 89); 14 Jan 2009 13:31:10 -0000 Received: by simscan 1.1.0 ppid: 95805, pid: 95816, t: 0.5669s scanners:none X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on web.dotcom.ts.it X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.2) by test.dotcom.ts.it with SMTP; 14 Jan 2009 13:31:09 -0000 Message-ID: <496DE872.70900@dotcom.ts.it> Date: Wed, 14 Jan 2009 14:28:18 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Danny Braniss References: <496DD248.1020502@dotcom.ts.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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, 14 Jan 2009 13:31:12 -0000 Danny Braniss wrote: >> Danny Braniss wrote: >> >>>> Danny Braniss wrote: >>>> >>>> >>>>>> Danny Braniss wrote: >>>>>> >>>>>> >>>>>> >>>>>>> wups, didn't read all your mail, sorry, >>>>>>> try increasing tht tag opening, in the config file add >>>>>>> tag = 64 >>>>>>> for example, or via camcontrol >>>>>>> >>>>>>> danny >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> I modify my iscsi.conf by adding tags = 64 (and no tag). Now works fine, >>>>>> about 43MB/s. Thank You very match. >>>>>> >>>>>> >>>>>> >>> RTFM :-) >>> >>> [...] >>> danny >>> >>> >> In last 2-3 months I searched the (F) manual, but I didn't find any! >> Where is the manual?... >> >> > > man -k iscsi > iscontrol(8) - login/negotiator/control for an iSCSI initiator > session > iscsi.conf(5) - key options to be negotiated in an iSCSI session > iscsi_initiator(4) - kernel driver for the iSCSI protocol > iscsi-target(8) - service remote iSCSI requests > targets(5) - configuration file for iSCSI targets > > >> In this week I did many tests on ISCSI and found another problem with >> slow writing. I created 7 virtual disk on my NAS server. The first 4 >> disks (/dev/da0 - /dev/da3) work fine, the other 3 (/dev/da4 - /dev/da6) >> are slow. >> I found this depends from parameter ISCSI_MAX_LUNS defined in file >> iscsi.h, set 4. I tried to increase this value, but with all values >> higher of 4 the initiator prints error: >> iscontrol[602]: ISCSIGETCAM failed: 25 >> >> > did you recompile the driver? > Yes, I recompiled all kernel source. I do many test whit and without module. Is it necessary to post my kernel configuration? > >> Is it possible to manage more than 4 disk without degrading the performance? >> >> > are you sure that da4,5,6 actually are disks? they might be just files ... > ls -ls /dev/da? > # ls -ls /dev/da* 0 crw-r----- 1 root operator 0, 87 Jan 14 12:12 /dev/da0 0 crw-r----- 1 root operator 0, 92 Jan 14 12:12 /dev/da0s1 0 crw-r----- 1 root operator 0, 95 Jan 14 12:12 /dev/da0s1c 0 crw-r----- 1 root operator 0, 96 Jan 14 12:12 /dev/da0s1d 0 crw-r----- 1 root operator 0, 93 Jan 14 12:12 /dev/da1 0 crw-r----- 1 root operator 0, 99 Jan 14 12:12 /dev/da1s1 0 crw-r----- 1 root operator 0, 106 Jan 14 12:12 /dev/da1s1c 0 crw-r----- 1 root operator 0, 107 Jan 14 12:12 /dev/da1s1d 0 crw-r----- 1 root operator 0, 94 Jan 14 12:12 /dev/da2 0 crw-r----- 1 root operator 0, 100 Jan 14 12:12 /dev/da2s1 0 crw-r----- 1 root operator 0, 108 Jan 14 12:12 /dev/da2s1c 0 crw-r----- 1 root operator 0, 109 Jan 14 12:12 /dev/da2s1d 0 crw-r----- 1 root operator 0, 97 Jan 14 12:12 /dev/da3 0 crw-r----- 1 root operator 0, 104 Jan 14 12:12 /dev/da3s1 0 crw-r----- 1 root operator 0, 112 Jan 14 12:12 /dev/da3s1c 0 crw-r----- 1 root operator 0, 113 Jan 14 12:12 /dev/da3s1d 0 crw-r----- 1 root operator 0, 98 Jan 14 12:12 /dev/da4 0 crw-r----- 1 root operator 0, 105 Jan 14 12:12 /dev/da4s1 0 crw-r----- 1 root operator 0, 114 Jan 14 12:12 /dev/da4s1c 0 crw-r----- 1 root operator 0, 115 Jan 14 12:12 /dev/da4s1d 0 crw-r----- 1 root operator 0, 101 Jan 14 12:12 /dev/da5 0 crw-r----- 1 root operator 0, 110 Jan 14 12:12 /dev/da5s1 0 crw-r----- 1 root operator 0, 116 Jan 14 12:12 /dev/da5s1c 0 crw-r----- 1 root operator 0, 117 Jan 14 12:12 /dev/da5s1d 0 crw-r----- 1 root operator 0, 102 Jan 14 12:12 /dev/da6 0 crw-r----- 1 root operator 0, 111 Jan 14 12:12 /dev/da6s1 0 crw-r----- 1 root operator 0, 118 Jan 14 12:12 /dev/da6s1c 0 crw-r----- 1 root operator 0, 119 Jan 14 12:12 /dev/da6s1d Initially I work with 4 disks for real data and then create another 3 for tests data. Disks da4,5,6 is identical configured on the NAS as first 4. > >> Thanks in advance. >> >> > > chiao :-) > > danny > >> [...] -- Sossi Andrej ------------------------- DotCom Information technology Via Biancospino, 9 34151 - Opicina (TS) Italy tel: +39 040 2158191 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 13:36:45 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 D2FC31065679 for ; Wed, 14 Jan 2009 13:36:45 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id 24D888FC49 for ; Wed, 14 Jan 2009 13:36:44 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: (qmail 96672 invoked by uid 89); 14 Jan 2009 13:36:44 -0000 Received: by simscan 1.1.0 ppid: 96655, pid: 96664, t: 0.7199s scanners:none X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on web.dotcom.ts.it X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.2) by test.dotcom.ts.it with SMTP; 14 Jan 2009 13:36:43 -0000 Message-ID: <496DE9BF.9020007@dotcom.ts.it> Date: Wed, 14 Jan 2009 14:33:51 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: rc script for I SCSI 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, 14 Jan 2009 13:36:46 -0000 Hello, I have NAS server with ISCSI. I must mount ISCSI disks at boot time, but I didn't find any article on how to do this. Then I wrote a rc script to help me to mount disks at boot time. ----------------- #!/bin/sh # # PROVIDE: iscsi # REQUIRE: NETWORKING # BEFORE: mountlate iscontrol_enable=${iscontrol_enable-"NO"} iscontrol_flags=${iscontrol_flags-""} iscontrol_pidfile=${iscontrol_pidfile-"/var/run/iscontrol.pid"} . /etc/rc.subr name="iscontrol" rcvar=`set_rcvar` command="/sbin/${name}" load_rc_config $name pidfile="${iscontrol_pidfile}" start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} ${iscontrol_flags} ${command_args}; sleep 2" run_rc_command "$1" ----------------- The disk to mount must be in fstab file with the 'late' option. Eg: /dev/da0s1d /mnt/iscsi ufs rw,late 0 0 Is this the correct way to do this? If yes, is it possible to insert this script in the future version of FreeBSD? Thanks. -- Sossi Andrej ------------------------- DotCom Information technology Via Biancospino, 9 34151 - Opicina (TS) Italy tel: +39 040 2158191 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 14:42:10 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 BEC3B106566B for ; Wed, 14 Jan 2009 14:42:10 +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 79EA48FC27 for ; Wed, 14 Jan 2009 14:42:10 +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 1LN6wa-000Nyo-Rv; Wed, 14 Jan 2009 16:42:08 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Sossi Andrej In-reply-to: Your message of Wed, 14 Jan 2009 14:33:51 +0100 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Jan 2009 16:42:08 +0200 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: rc script for I SCSI 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, 14 Jan 2009 14:42:11 -0000 this is an early attempt: #!/bin/sh # PROVIDE: iscsi # REQUIRE: NETWORKING # BEFORE: DAEMON # KEYWORD: nojail shutdown # # Add the following lines to /etc/rc.conf to enable iscsi: # # iscsi_enable="YES" # iscsi_fstab="/etc/fstab.iscsi" . /etc/rc.subr . /cs/share/etc/rc.subr name=iscsi rcvar=`set_rcvar` command=/sbin/iscontrol iscsi_enable=${iscsi_enable:-"NO"} iscsi_fstab=${iscsi_fstab:-"/etc/fstab.iscsi"} iscsi_exports=${iscsi_exports:-"/etc/exports.iscsi"} iscsi_debug=${iscsi_debug:-0} start_cmd="iscsi_start" faststop_cmp="iscsi_stop" stop_cmd="iscsi_stop" start_precmd="iscontrol_precmd" iscontrol_prog=${iscontrol_prog:-"iscontrol"} iscontrol_log=${iscontrol_log:-"/var/log/$iscontrol_prog"} iscontrol_syslog=${iscontrol_syslog:-"644 3 100 * JC"} iscontrol_precmd() { setup_syslog "$iscontrol_prog" "$iscontrol_log" "$iscontrol_syslog" } iscsi_wait() { dev=$1 trap "echo 'wait loop cancelled'; exit 1" 2 count=0 while true; do if [ -c $dev ]; then break; fi if [ $count -eq 0 ]; then echo -n Waiting for ${dev}': ' fi count=$((${count} + 1)) if [ $count -eq 6 ]; then echo " Failed for dev=$dev" return 0 break fi echo -n '.' sleep 5; done echo "$dev ok." return 1 } iscsi_start() { # # load needed modules for m in iscsi_initiator geom_label; do kldstat -qm $m || kldload $m done sysctl debug.iscsi_initiator=$iscsi_debug # # start iscontrol for each target if [ -n "${iscsi_targets}" ]; then for target in ${iscsi_targets}; do ${command} ${rc_flags} -n ${target} done fi if [ -f "${iscsi_fstab}" ]; then while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) if iscsi_wait ${spec}; then break; fi echo type=$type spec=$spec file=$file fsck -p ${spec} && mkdir -p ${file} && mount ${spec} ${file} chmod 755 ${file} ;; esac done < ${iscsi_fstab} fi if [ -f "${iscsi_exports}" ]; then cat ${iscsi_exports} >> /etc/exports #/etc/rc.d/mountd reload kill -1 `cat /var/run/mountd.pid` fi if checkyesno zfs_enable; then if checkyesno iscsi_zfs; then sleep 4 zpool import -d /dev/label -a # presumably we can ignore zfs mount -a share -a and swapon # some zfs dataset may be exported "legacy", so hup mountd kill -1 `cat /var/run/mountd.pid` fi fi } iscsi_stop() { echo 'iscsi stopping' while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) echo iscsi: umount $spec umount -fv $spec ;; esac done < ${iscsi_fstab} } load_rc_config $name run_rc_command "$1" From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 14:56:48 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 D4BC1106578B for ; Wed, 14 Jan 2009 14:56:48 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF088FC18 for ; Wed, 14 Jan 2009 14:56:48 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local ([192.168.254.200]) (authenticated bits=0) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id n0EEZfWS096908; Wed, 14 Jan 2009 07:35:41 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <496DF83D.4090904@samsco.org> Date: Wed, 14 Jan 2009 07:35:41 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Wes Morgan References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.8 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: SMART status of SATA drives on SAS controller 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, 14 Jan 2009 14:56:50 -0000 A tweak is needed to smartctl to make this work. See below. FreeBSD needs to become more aware of the ATA Passthrough feature of SCSI, but for now this patch with let smartctl work correctly. --- os_freebsd.cpp.orig 2008-03-04 15:09:47.000000000 -0700 +++ os_freebsd.cpp 2008-09-23 09:43:01.000000000 -0600 @@ -525,7 +524,7 @@ return -1; } - if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { + if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) { #if __FreeBSD_version > 500000 cam_error_print(cam_dev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); #endif Scott Wes Morgan wrote: > I've got 8 SATA2 drives in an zfs raidz2 on an LSI controller (1068 I > believe, mpt driver), and one of them seems to be acting strangely. I'd > like to get the smart status without pulling it out of the array and > dropping it onto an ATA controller, but I don't seem to be able to for > any of the drives. Using the device type as both "SAT" and "SCSI", > neither will successfully show the full output. Is there any way around > this? Error below... > > > === START OF INFORMATION SECTION === > Device Model: WDC WD5002ABYS-01B1B0 > Serial Number: WD-WCASY3240847 > Firmware Version: 02.03B02 > User Capacity: 500,107,862,016 bytes > Device is: Not in smartctl database [for details use: -P showall] > ATA Version is: 8 > ATA Standard is: Exact ATA specification draft version not indicated > Local Time is: Wed Jan 14 06:14:18 2009 CST > SMART support is: Available - device has SMART capability. > SMART support is: Enabled > > === START OF ENABLE/DISABLE COMMANDS SECTION === > SMART Enabled. > (pass4:mpt0:0:4:0): ATA COMMAND PASS THROUGH(16). CDB: 85 6 2c 0 da 0 0 > 0 0 0 4f 0 c2 0 b0 0 > (pass4:mpt0:0:4:0): CAM Status: SCSI Status Error > (pass4:mpt0:0:4:0): SCSI Status: Check Condition > (pass4:mpt0:0:4:0): RECOVERED ERROR asc:0,1d > (pass4:mpt0:0:4:0): ATA pass through information available > SMART Disabled. Use option -s with argument 'on' to enable it. > _______________________________________________ > 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" From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 14 15:24:27 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 136361065680 for ; Wed, 14 Jan 2009 15:24:26 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id 590DE8FC16 for ; Wed, 14 Jan 2009 15:24:25 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: (qmail 14986 invoked by uid 89); 14 Jan 2009 15:24:24 -0000 Received: by simscan 1.1.0 ppid: 14972, pid: 14977, t: 0.9137s scanners:none X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on web.dotcom.ts.it X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.2) by test.dotcom.ts.it with SMTP; 14 Jan 2009 15:24:23 -0000 Message-ID: <496E02FB.9090000@dotcom.ts.it> Date: Wed, 14 Jan 2009 16:21:31 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Gary Palmer References: <496634BB.9050902@dotcom.ts.it> <4966A25E.4070803@modulus.org> <20090109061324.GD81380@in-addr.com> In-Reply-To: <20090109061324.GD81380@in-addr.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI and multipath 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, 14 Jan 2009 15:24:27 -0000 Gary Palmer wrote: > On Fri, Jan 09, 2009 at 12:03:26PM +1100, Andrew Snow wrote: > >> Sossi Andrej wrote: >> >>> Another question about MD3000i. >>> My MD3000i have 2 controller and every controller have 2 net interface. >>> My FreeBSD server is connect on NAS server with 2 network cards throw >>> out 2 switch on th 2 networks. (192.168.253.X and 192.168.252.X). >>> In the official manual is written if the primary controller (or net) >>> have a problem the NAS automatically switch disks drive on second >>> controller. For this is required MPIO on Windows or MPP on Linux. It is >>> supported also on FreeBSD? >>> >> If you only wanted to do failover at the network level with shared IP >> address, you could use lagg. >> >> However, since you have different IP subnets for each network, you >> probably want to look at using geom_fox. You set up two iSCSI >> connections, one to each controller, and geom_fox on top to make it >> appear as a single disk device. >> > > FreeBSD 7.0 and later also has geom_multipath, which I've been > told (no experience) is a better approach. I suggest you > review documentation for both and make your own decision > > Regards, > > Gary > I read geom_fox an geom_mirror man pages. I think the geom_mirror is best way, but not everything is clear for me. This is scenario: NAS server: controller 0 interface 0: 192.168.253.254 controller 1 interface 0: 192.168.253.253 controller 0 interface 1: 192.168.252.254 controller 1 interface 1: 192.168.252.253 FreeBSD: re0: 192.168.253.1 re1: 192.168.252.1 FreeBSD is connected through 2 switches, one for net 192.168.253.X and one for 192.168.252.X. In the iscsi.conf file my target is 192.168.253.254. ISCSI initiator creates only one device for disk. If I will use geom_multipath, I must launch initiator 2 times (or 4 times), each for one interface. Then I must configure geom_multipart device for /dev/da0 , /dev/da5, ... Is this correct? If yes, I plan some tests and then I will write the results. Thanks -- Sossi Andrej ------------------------- DotCom Information technology Via Biancospino, 9 34151 - Opicina (TS) Italy tel: +39 040 2158191 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Thu Jan 15 03:20:59 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 178E11065690 for ; Thu, 15 Jan 2009 03:20:59 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from warped.bluecherry.net (unknown [IPv6:2001:440:eeee:fffb::2]) by mx1.freebsd.org (Postfix) with ESMTP id 849648FC12 for ; Thu, 15 Jan 2009 03:20:58 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (morganw-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:47e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by warped.bluecherry.net (Postfix) with ESMTPSA id 738B384CA913; Wed, 14 Jan 2009 21:20:56 -0600 (CST) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id n0F3KmW3028425; Wed, 14 Jan 2009 21:20:50 -0600 (CST) (envelope-from morganw@chemikals.org) Date: Wed, 14 Jan 2009 21:20:48 -0600 (CST) From: Wes Morgan To: Scott Long In-Reply-To: <496DF83D.4090904@samsco.org> Message-ID: References: <496DF83D.4090904@samsco.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org Subject: Re: SMART status of SATA drives on SAS controller 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: Thu, 15 Jan 2009 03:21:00 -0000 On Wed, 14 Jan 2009, Scott Long wrote: > A tweak is needed to smartctl to make this work. See below. FreeBSD needs > to become more aware of the ATA Passthrough feature of SCSI, but > for now this patch with let smartctl work correctly. Thanks, this works great. > --- os_freebsd.cpp.orig 2008-03-04 15:09:47.000000000 -0700 > +++ os_freebsd.cpp 2008-09-23 09:43:01.000000000 -0600 > @@ -525,7 +524,7 @@ > return -1; > } > > - if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { > + if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && > ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) { > #if __FreeBSD_version > 500000 > cam_error_print(cam_dev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); > #endif > > > > Scott > > > Wes Morgan wrote: >> I've got 8 SATA2 drives in an zfs raidz2 on an LSI controller (1068 I >> believe, mpt driver), and one of them seems to be acting strangely. I'd >> like to get the smart status without pulling it out of the array and >> dropping it onto an ATA controller, but I don't seem to be able to for any >> of the drives. Using the device type as both "SAT" and "SCSI", neither will >> successfully show the full output. Is there any way around this? Error >> below... >> >> >> === START OF INFORMATION SECTION === >> Device Model: WDC WD5002ABYS-01B1B0 >> Serial Number: WD-WCASY3240847 >> Firmware Version: 02.03B02 >> User Capacity: 500,107,862,016 bytes >> Device is: Not in smartctl database [for details use: -P showall] >> ATA Version is: 8 >> ATA Standard is: Exact ATA specification draft version not indicated >> Local Time is: Wed Jan 14 06:14:18 2009 CST >> SMART support is: Available - device has SMART capability. >> SMART support is: Enabled >> >> === START OF ENABLE/DISABLE COMMANDS SECTION === >> SMART Enabled. >> (pass4:mpt0:0:4:0): ATA COMMAND PASS THROUGH(16). CDB: 85 6 2c 0 da 0 0 0 0 >> 0 4f 0 c2 0 b0 0 >> (pass4:mpt0:0:4:0): CAM Status: SCSI Status Error >> (pass4:mpt0:0:4:0): SCSI Status: Check Condition >> (pass4:mpt0:0:4:0): RECOVERED ERROR asc:0,1d >> (pass4:mpt0:0:4:0): ATA pass through information available >> SMART Disabled. Use option -s with argument 'on' to enable it. >> _______________________________________________ >> 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" > From owner-freebsd-scsi@FreeBSD.ORG Thu Jan 15 15:58: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 A66C31065689 for ; Thu, 15 Jan 2009 15:58:44 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: from mail.dotcom.ts.it (89-96-242-204.ip14.fastwebnet.it [89.96.242.204]) by mx1.freebsd.org (Postfix) with SMTP id 053918FC13 for ; Thu, 15 Jan 2009 15:58:43 +0000 (UTC) (envelope-from asossi@dotcom.ts.it) Received: (qmail 63472 invoked by uid 89); 15 Jan 2009 15:58:42 -0000 Received: by simscan 1.1.0 ppid: 63415, pid: 63447, t: 5.2527s scanners:none X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on web.dotcom.ts.it X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from unknown (HELO ?192.168.0.2?) (asossi@dotcom.ts.it@192.168.254.2) by test.dotcom.ts.it with SMTP; 15 Jan 2009 15:58:37 -0000 Message-ID: <496F5C80.9030406@dotcom.ts.it> Date: Thu, 15 Jan 2009 16:55:44 +0100 From: Sossi Andrej Organization: DotCom Information technology User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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: Thu, 15 Jan 2009 15:58:45 -0000 Danny Braniss write: > [...] > >>>> In this week I did many tests on ISCSI and found another problem with >>>> slow writing. I created 7 virtual disk on my NAS server. The first 4 >>>> disks (/dev/da0 - /dev/da3) work fine, the other 3 (/dev/da4 - /dev/da6) >>>> are slow. >>>> I found this depends from parameter ISCSI_MAX_LUNS defined in file >>>> iscsi.h, set 4. I tried to increase this value, but with all values >>>> higher of 4 the initiator prints error: >>>> iscontrol[602]: ISCSIGETCAM failed: 25 >>>> >>>> > arg, I will fix this in the next release, but for now, recompile iscontrol too. > > [...] > > danny > I forgot to compile iscontrol. Sorry. Now it works fine. R/W speed is now ~48Mb/s on disks da0-3 and ~32Mb/s on disks da4-6. I set ISCSI_MAX_LUNS at value 16. Speed 32Mb/s is good for my job, but... why is there this difference? Thanks for another reply. -- Sossi Andrej ------------------------- DotCom Information technology Via Biancospino, 9 34151 - Opicina (TS) Italy tel: +39 040 2158191 fax: +39 040 0641954 E-mail: asossi@dotcom.ts.it ---------------------------- Ai sensi del D.lgs n. 196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie This message, for the D.lgs n. 196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From owner-freebsd-scsi@FreeBSD.ORG Thu Jan 15 16:17:06 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 EF3DD106572E for ; Thu, 15 Jan 2009 16:17:06 +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 A66B98FC1B for ; Thu, 15 Jan 2009 16:17:06 +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 1LNUu1-000EXj-94; Thu, 15 Jan 2009 18:17:05 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Sossi Andrej In-reply-to: <496F5C80.9030406@dotcom.ts.it> References: <496F5C80.9030406@dotcom.ts.it> Comments: In-reply-to Sossi Andrej message dated "Thu, 15 Jan 2009 16:55:44 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Jan 2009 18:17:05 +0200 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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: Thu, 15 Jan 2009 16:17:09 -0000 > Danny Braniss write: > > [...] > > > >>>> In this week I did many tests on ISCSI and found another problem with > >>>> slow writing. I created 7 virtual disk on my NAS server. The first 4 > >>>> disks (/dev/da0 - /dev/da3) work fine, the other 3 (/dev/da4 - /dev/da6) > >>>> are slow. > >>>> I found this depends from parameter ISCSI_MAX_LUNS defined in file > >>>> iscsi.h, set 4. I tried to increase this value, but with all values > >>>> higher of 4 the initiator prints error: > >>>> iscontrol[602]: ISCSIGETCAM failed: 25 > >>>> > >>>> > > arg, I will fix this in the next release, but for now, recompile iscontrol too. > > > > [...] > > > > danny > > > I forgot to compile iscontrol. Sorry. don't be sorry, it's my fault. > Now it works fine. > R/W speed is now ~48Mb/s on disks da0-3 and ~32Mb/s on disks da4-6. I > set ISCSI_MAX_LUNS at value 16. Speed 32Mb/s is good for my job, but... > why is there this difference? don't know, there shouldn't be any difference, make sure they all have the same tag opening, > Thanks for another reply. thank you for testing! danny PS: the email I sent you before was almost correct answer to the wrong question.