From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 3 11:07: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 249D41065693 for ; Mon, 3 Aug 2009 11:07:07 +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 079988FC33 for ; Mon, 3 Aug 2009 11:07:07 +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 n73B76vt088780 for ; Mon, 3 Aug 2009 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n73B76Vx088776 for freebsd-scsi@FreeBSD.org; Mon, 3 Aug 2009 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Aug 2009 11:07:06 GMT Message-Id: <200908031107.n73B76Vx088776@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, 03 Aug 2009 11:07:08 -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/136718 scsi [ciss] ciss driver issue on HP DL585 o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device 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 38 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 4 11:50:33 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 6B3AE1065670 for ; Tue, 4 Aug 2009 11:50:33 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.freebsd.org (Postfix) with SMTP id B41C48FC13 for ; Tue, 4 Aug 2009 11:50:32 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: (qmail 12615 invoked from network); 4 Aug 2009 11:23:49 -0000 Received: from bizet.nethelp.no (HELO localhost) (195.1.209.33) by bizet.nethelp.no with SMTP; 4 Aug 2009 11:23:49 -0000 Date: Tue, 04 Aug 2009 13:23:49 +0200 (CEST) Message-Id: <20090804.132349.112551733.sthaug@nethelp.no> To: freebsd-scsi@freebsd.org From: sthaug@nethelp.no X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Dell 1850/PERC 4e/Si (Megaraid) with "too many retries" error 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, 04 Aug 2009 11:50:33 -0000 I have a FreeBSD 7.2-STABLE server which is physically a Dell 1850 with a PERC 4e/Si (Megaraid) controller and 2 x 73 GB disk in a RAID 1 configuration: amr0: mem 0xf80f0000-0xf80fffff,0xfe9e0000-0xfe9fffff irq 46 at device 14.0 on pci2 amr0: [ITHREAD] amr0: delete logical drives supported by controller amr0: Firmware 521X, BIOS H430, 256MB RAM ... amr0: delete logical drives supported by controller amrd0: on amr0 amrd0: 69880MB (143114240 sectors) RAID 1 (optimal) Occasionally the Megaraid controller will report the followin to syslog: May 6 19:59:07 dhcp2 kernel: amr0: Too many retries on command 0xc3d31738. Controller is likely dead May 21 11:58:58 dhcp2 kernel: amr0: Too many retries on command 0xc3d311b8. Controller is likely dead Jul 24 22:22:34 dhcp2 kernel: amr0: Too many retries on command 0xc3d2fa58. Controller is likely dead Aug 1 07:52:30 dhcp2 kernel: amr0: Too many retries on command 0xc3d31318. Controller is likely dead However, there are no apparent ill effects, and the machine just keeps running with no other sign of problems. My question is: Should I be worried about these error messages? Steinar Haug, Nethelp consulting, sthaug@nethelp.no From owner-freebsd-scsi@FreeBSD.ORG Wed Aug 5 01:58:56 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 80705106564A for ; Wed, 5 Aug 2009 01:58:56 +0000 (UTC) (envelope-from tim-projects@sentinelchicken.org) Received: from sentinelchicken.org (mail.sentinelchicken.org [69.168.48.72]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF7F8FC18 for ; Wed, 5 Aug 2009 01:58:55 +0000 (UTC) (envelope-from tim-projects@sentinelchicken.org) Received: (qmail 29448 invoked from network); 5 Aug 2009 01:32:15 -0000 Received: from unknown (HELO pascal.sentinelchicken.org) (10.81.64.2) by feynman.sentinelchicken.org with ESMTPS (DHE-RSA-AES256-SHA encrypted); 5 Aug 2009 01:32:15 -0000 Received: (qmail 14397 invoked from network); 5 Aug 2009 01:32:14 -0000 Received: from shannon.sentinelchicken.org (10.81.64.4) by pascal.sentinelchicken.org with SMTP; 5 Aug 2009 01:32:14 -0000 Received: (nullmailer pid 14683 invoked by uid 1000); Wed, 05 Aug 2009 01:32:14 -0000 Date: Tue, 4 Aug 2009 18:32:14 -0700 From: Tim To: freebsd-scsi@freebsd.org Message-ID: <20090805013213.GF2654@sentinelchicken.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: "Inappropriate ioctl for device" when using scsi_sg 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, 05 Aug 2009 01:58:56 -0000 Hello, I'm trying to port a small piece of software from Linux to FreeBSD which utilizes the Linux SCSI sg interface. I saw that FreeBSD offers a similar interface in version 7 and later, so I thought I would give it a try. Please pardon my ignorance as I haven't seriously worked with FreeBSD since 4.x. After searching for hours trying to find a recent (7.x-based) downloadable live CD (I lack a good system for a full install), I settled on trying out TrueBSD (version 2.0 RC2) to do my testing. The software I'm porting (http://projects.sentinelchicken.org/tableau-parm/) sends nonstandard SCSI commands to proprietary devices over USB or Firewire. Under Linux, these commands are handled in either case using the same sg interface. I was able to compile my software fine on FreeBSD after a few minor header file and symbol fixes, but when I attempt to send one of these commands to the disk device file (/dev/da0 for instance), I simply receive the error "Inappropriate ioctl for device". Any ideas what I'm doing wrong? I can provide source code, though it is almost identical to the current release version (see link above). Initially I mostly just wanted to ensure I wasn't missing something obvious. If this isn't the appropriate mailing list, please direct me to the correct one. Thanks! tim From owner-freebsd-scsi@FreeBSD.ORG Wed Aug 5 23:48:32 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 0C29E106566C for ; Wed, 5 Aug 2009 23:48:32 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id A5A418FC1E for ; Wed, 5 Aug 2009 23:48:31 +0000 (UTC) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 7EF505C070 for ; Thu, 6 Aug 2009 07:48:30 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 2360955CDB0C; Thu, 6 Aug 2009 07:48:30 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id 5P3mn1owJXXm; Thu, 6 Aug 2009 07:47:29 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 62B2755CDB0A; Thu, 6 Aug 2009 07:47:20 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=XYM6CXp12gwqoTT+xH5KVijRP0fGHcogIBGQEHS0FqTiclNhlKaB3GxsKHKReUl49 +RrhkPoSvlAoYHQyMPs8w== Message-ID: <4A7A19F3.1040207@delphij.net> Date: Wed, 05 Aug 2009 16:46:59 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.22 (X11/20090803) MIME-Version: 1.0 To: Tim References: <20090805013213.GF2654@sentinelchicken.org> In-Reply-To: <20090805013213.GF2654@sentinelchicken.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: "Inappropriate ioctl for device" when using scsi_sg X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 23:48:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Tim, Tim wrote: > Hello, > > I'm trying to port a small piece of software from Linux to FreeBSD > which utilizes the Linux SCSI sg interface. I saw that FreeBSD offers > a similar interface in version 7 and later, so I thought I would give > it a try. [...] > Any ideas what I'm doing wrong? I can provide source code, though it > is almost identical to the current release version (see link above). > Initially I mostly just wanted to ensure I wasn't missing something > obvious. If this isn't the appropriate mailing list, please direct me > to the correct one. My understanding is that, by default (GENERIC), sg device is not compiled into the kernel, so, in order to use it, you may have to compile your own kernel and add: device sg In the configuration. The device would appear as "/dev/sg0", etc.; Linux style "/dev/sga /dev/sgb" would appear as symlinks. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkp6GfIACgkQi+vbBBjt66DTKwCfe8I/ijSY4LifmqRghfd9Gbmi 424AoItYL9LxrUOEdi2JGMSHAGEMX5Qs =AHh0 -----END PGP SIGNATURE----- From owner-freebsd-scsi@FreeBSD.ORG Thu Aug 6 00:01:30 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 B4DE71065672 for ; Thu, 6 Aug 2009 00:01:30 +0000 (UTC) (envelope-from tim-projects@sentinelchicken.org) Received: from sentinelchicken.org (mail.sentinelchicken.org [69.168.48.72]) by mx1.freebsd.org (Postfix) with ESMTP id 52F0A8FC0C for ; Thu, 6 Aug 2009 00:01:30 +0000 (UTC) Received: (qmail 5317 invoked from network); 6 Aug 2009 00:01:27 -0000 Received: from unknown (HELO pascal.sentinelchicken.org) (10.81.64.2) by feynman.sentinelchicken.org with ESMTPS (DHE-RSA-AES256-SHA encrypted); 6 Aug 2009 00:01:27 -0000 Received: (qmail 17398 invoked from network); 6 Aug 2009 00:01:23 -0000 Received: from shannon.sentinelchicken.org (10.81.64.4) by pascal.sentinelchicken.org with SMTP; 6 Aug 2009 00:01:23 -0000 Received: (nullmailer pid 16939 invoked by uid 1000); Thu, 06 Aug 2009 00:01:23 -0000 Date: Wed, 5 Aug 2009 17:01:23 -0700 From: Tim To: d@delphij.net Message-ID: <20090806000123.GJ2654@sentinelchicken.org> References: <20090805013213.GF2654@sentinelchicken.org> <4A7A19F3.1040207@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A7A19F3.1040207@delphij.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-scsi@freebsd.org Subject: Re: "Inappropriate ioctl for device" when using scsi_sg 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, 06 Aug 2009 00:01:30 -0000 Xin, Thanks much for your response. > My understanding is that, by default (GENERIC), sg device is not > compiled into the kernel, so, in order to use it, you may have to > compile your own kernel and add: > > device sg > > In the configuration. The device would appear as "/dev/sg0", etc.; > Linux style "/dev/sga /dev/sgb" would appear as symlinks. I figured it might be something like that. Oddly, Linux allows me to send these special SCSI commands directly to the original disk devices (such as /dev/sd{a,b,c,..}) without the need for using any sg-specific device files. Using /dev/sg{0,...} is not a problem though. I'll have to find a system to do a full install on and get that compiled in. Thanks again, tim From owner-freebsd-scsi@FreeBSD.ORG Thu Aug 6 22:57:08 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 12CFF1065670 for ; Thu, 6 Aug 2009 22:57:08 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id C7C858FC1B for ; Thu, 6 Aug 2009 22:57:07 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id C8F811E0030E; Fri, 7 Aug 2009 00:40:30 +0200 (CEST) Received: from triton.kn-bremen.de (noident@localhost [127.0.0.1]) by triton.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n76Mc6De006516; Fri, 7 Aug 2009 00:38:06 +0200 (CEST) (envelope-from nox@triton.kn-bremen.de) Received: (from nox@localhost) by triton.kn-bremen.de (8.14.3/8.14.3/Submit) id n76Mc6Pv006515; Fri, 7 Aug 2009 00:38:06 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 7 Aug 2009 00:38:06 +0200 To: Juergen Lock Message-ID: <20090806223806.GA6332@triton.kn-bremen.de> References: <20090806184510.GA12039@triton.kn-bremen.de> <4A7B3328.5020307@FreeBSD.org> <20090806200715.GA16313@triton.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090806200715.GA16313@triton.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-scsi@FreeBSD.org, Alexander Motin , freebsd-current@FreeBSD.org Subject: Re: cd(4) vs bluray ... 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, 06 Aug 2009 22:57:08 -0000 On Thu, Aug 06, 2009 at 10:07:15PM +0200, Juergen Lock wrote: > On Thu, Aug 06, 2009 at 10:46:48PM +0300, Alexander Motin wrote: > > Juergen Lock wrote: > > > So I put the problematic optical drive on a siis pcie card now because > > > I wanted to play with esata too which seems to be kinda broken on the > > > jmicron that I used before at least with _this_ esata drive (hw issue > > > most likely, has been reported by users of other OSes too) - and I > > > noticed two things: > > > > > > 1. cd(4) (which the new ahci and siis drivers now also use) fails to do > > > any reads when a drive fails the read toc command as seems to happen > > > with bluray (data) discs at least; I was able to work around this > > > by moving the bailout: label up a few lines in scsi_cd.c:cdcheckmedia(): > > > > > > Index: sys/cam/scsi/scsi_cd.c > > > @@ -2868,12 +2868,18 @@ > > > } > > > > > > softc->flags |= CD_FLAG_VALID_TOC; > > > + > > > +bailout: > > > softc->disk->d_maxsize = DFLTPHYS; > > > softc->disk->d_sectorsize = softc->params.blksize; > > > softc->disk->d_mediasize = > > > (off_t)softc->params.blksize * softc->params.disksize; > > > > > > +/* if > > > bailout: > > > + * is here read requests will fail when the toc cant be read although > > > + * CD_FLAG_VALID_MEDIA is set. > > > + */ > > > > > > /* > > > * We unconditionally (re)set the blocksize each time the > > > > > > (I say work around because I don't know if there might be stuff > > > somewhere that depends on the old behaviour, although thats probably > > > unlikely; also acd(4) seems to behave similarly.) > > > > I have no idea about this, ... > > > Btw with `acd(4) seems to behave similarly' I meant a drive on acd > _can_ read bluray. Ok what do the -scsi folks say about this? Should it check for the disc (or drive?) to be bluray on only accept read toc failure in that case? Or is the patch fine as it is? As I said the old acd(4) driver seems not to care i.e. reads from bluray discs just fine... Wondering, Juergen From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 7 18:39: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 D9FDF1065670; Fri, 7 Aug 2009 18:39:11 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-gx0-f217.google.com (mail-gx0-f217.google.com [209.85.217.217]) by mx1.freebsd.org (Postfix) with ESMTP id 88FDF8FC1D; Fri, 7 Aug 2009 18:39:11 +0000 (UTC) Received: by gxk17 with SMTP id 17so2081228gxk.19 for ; Fri, 07 Aug 2009 11:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=hhjFpA4D8mQmOaA6aqyCyFjW2EpY4f1/4OhORCJSJ5Y=; b=ORQF0TzzEDI5rhPivOYIa/bs569UOxMO2xOp5n+WkhVK16V+vEMS9vJZKuyU8AjQmc 0+sWzzJnzmGkAYI77YH2Bj5cqUx6B+BrGWJxAs/XoI7MoLKVhOVMXz1ia0ecS1CcJk17 1+gK6HHaHTXdWTT+jBBc98o1dI65zca9sjQHI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Qj4MwSw1m2x1GberuHljaKsbcohj9UNhH8WHa5G9SByT/CJtKfOzv950JA64Fhkqi5 oOR7C8quTujFf0r3rt+S8KFqkqYqIFRyirE6wAxO04hM+VdALurSXQvXVugeeS7Pj2Gg WKhLA4bNq6H3Pk3/BVk1vfqRiqFUNqt2pfUDQ= MIME-Version: 1.0 Received: by 10.90.113.11 with SMTP id l11mr1135597agc.61.1249668363524; Fri, 07 Aug 2009 11:06:03 -0700 (PDT) Date: Fri, 7 Aug 2009 11:06:03 -0700 Message-ID: From: Artem Belevich To: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: mpt errors - UNIT ATTENTION asc:29,0 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, 07 Aug 2009 18:39:12 -0000 Hi, I'm running 8.0-BETA2 on Asus p5BV/SAS with built-in LSI1068 controller with 8 SATA ports. 6 of the ports hooked up to 1TB WD Green drives. The drives are used as a single raidz2 ZFS pool: NAME STATE READ WRITE CKSUM z2 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 da1 ONLINE 0 0 0 da0 ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 da4 ONLINE 0 0 0 da5 ONLINE 0 0 0 I'm runing a simple stress test that copies 10GB file until it fills the volume and then runs "zfs scrub" on it. dd if=/dev/urandom of=/z2/f.0 bs=1m count=10240 for f in {1..350}; do echo $f; cp f.$[$f-1] f.$f; done; zpool scrub z2 What concerns me is that I'm periodically getting error messages from MPT driver. They usually start few hours after the start of the script and by the end of it they are happening every few minutes seemingly randomly on all six drives. Aug 7 10:25:32 buz kernel: mpt0: mpt_cam_event: 0x16 Aug 7 10:25:32 buz kernel: mpt0: mpt_cam_event: 0x16 Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): READ(10). CDB: 28 0 46 32 97 c0 0 0 80 0 Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): CAM Status: SCSI Status Error Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): SCSI Status: Check Condition Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): UNIT ATTENTION asc:29,0 Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): Power on, reset, or bus device reset occurred Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): Retrying Command (per Sense Data) ZFS scrub does not seem to report any issues so far - no checksum or read/write errors. WD's hard drive diagnostics tools didn't find any issues with te drives either. Sould somebody shed some light on why would such error happen? Is that some sort of hardware issue? Driver bug? Issue with compatibility between controller and the drives? System configuration issue (some sysctl/tunable needs tweaking, perhaps)? I'd appreciate any hints on what could be going on and what should be done about it. Thanks, --Artem From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 7 19:42: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 0DDFA1065673; Fri, 7 Aug 2009 19:42:39 +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 7C9FC8FC31; Fri, 7 Aug 2009 19:42:38 +0000 (UTC) Received: from volatile.chemikals.org (adsl-67-112-194.shv.bellsouth.net [98.67.112.194]) (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 94BCD8E48207; Fri, 7 Aug 2009 14:42:36 -0500 (CDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id n77JgNbq042879; Fri, 7 Aug 2009 14:42:23 -0500 (CDT) (envelope-from morganw@chemikals.org) Date: Fri, 7 Aug 2009 14:42:22 -0500 (CDT) From: Wes Morgan To: Artem Belevich In-Reply-To: Message-ID: References: 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, freebsd-current@freebsd.org Subject: Re: mpt errors - UNIT ATTENTION asc:29,0 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, 07 Aug 2009 19:42:39 -0000 On Fri, 7 Aug 2009, Artem Belevich wrote: > Hi, > > I'm running 8.0-BETA2 on Asus p5BV/SAS with built-in LSI1068 > controller with 8 SATA ports. 6 of the ports hooked up to 1TB WD Green > drives. The drives are used as a single raidz2 ZFS pool: > > NAME STATE READ WRITE CKSUM > z2 ONLINE 0 0 0 > raidz2 ONLINE 0 0 0 > da1 ONLINE 0 0 0 > da0 ONLINE 0 0 0 > da2 ONLINE 0 0 0 > da3 ONLINE 0 0 0 > da4 ONLINE 0 0 0 > da5 ONLINE 0 0 0 > > I'm runing a simple stress test that copies 10GB file until it fills > the volume and then runs "zfs scrub" on it. > > dd if=/dev/urandom of=/z2/f.0 bs=1m count=10240 > for f in {1..350}; do echo $f; cp f.$[$f-1] f.$f; done; > zpool scrub z2 > > What concerns me is that I'm periodically getting error messages from > MPT driver. They usually start few hours after the start of the script > and by the end of it they are happening every few minutes seemingly > randomly on all six drives. > > Aug 7 10:25:32 buz kernel: mpt0: mpt_cam_event: 0x16 > Aug 7 10:25:32 buz kernel: mpt0: mpt_cam_event: 0x16 > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): READ(10). CDB: 28 0 46 > 32 97 c0 0 0 80 0 > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): CAM Status: SCSI Status Error > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): SCSI Status: Check Condition > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): UNIT ATTENTION asc:29,0 > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): Power on, reset, or bus > device reset occurred > Aug 7 10:25:32 buz kernel: (da4:mpt0:0:4:0): Retrying Command (per Sense Data) > > ZFS scrub does not seem to report any issues so far - no checksum or > read/write errors. WD's hard drive diagnostics tools didn't find any > issues with te drives either. > > Sould somebody shed some light on why would such error happen? Is that > some sort of hardware issue? Driver bug? Issue with compatibility > between controller and the drives? System configuration issue (some > sysctl/tunable needs tweaking, perhaps)? I have that same board with 8 500gb drives in a raidz2. I used to be using a SATA backplane and I would see those timeouts fairly regularly when moving lots of data around. To eliminate the cable mess I switched to an SAS backplane with fanout cables and since then I have not seen the timeouts. From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 8 10:06:25 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 4FF7A106566C for ; Sat, 8 Aug 2009 10:06:25 +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 0AAC68FC19 for ; Sat, 8 Aug 2009 10:06:24 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1MZiog-000GRx-V9; Sat, 08 Aug 2009 13:06:22 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 08 Aug 2009 13:06:22 +0300 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: request test drivers for iscsi_initiator 2.2.3 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, 08 Aug 2009 10:06:25 -0000 This new version: o - has some bug fixes. o - has full header/data digest support, thanks to Daisuke Aoyama . o - the limit for the number of sessions is now 64, but can be raised - eventually via a sysctl call. o - the number of LUNs is unlimited, but things might get hairy over 128. o - now compiles & works under -current (8.0). The tag option is supported, but by default is set very low (0), if someone knows of a way to figure the optimal value I'll gladly add it. If it works for you, please let me know the model/make of the target so I can update the list. cheers, danny From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 8 10:11: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 27C01106566B for ; Sat, 8 Aug 2009 10:11: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 D4ECC8FC24 for ; Sat, 8 Aug 2009 10:11:43 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1MZitq-000GUu-FA; Sat, 08 Aug 2009 13:11:42 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Comments: In-reply-to Danny Braniss message dated "Sat, 08 Aug 2009 13:06:22 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 08 Aug 2009 13:11:41 +0300 From: Danny Braniss Message-ID: Cc: Subject: Re: request test drivers for iscsi_initiator 2.2.3 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, 08 Aug 2009 10:11:44 -0000 wups, forgot a small little detail: ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.2.3.tar.gz danny From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 8 15:37:37 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 C89B6106566B; Sat, 8 Aug 2009 15:37:37 +0000 (UTC) (envelope-from mav@mavhome.dp.ua) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id E57CB8FC33; Sat, 8 Aug 2009 15:37:36 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 251030557; Sat, 08 Aug 2009 17:37:32 +0300 Message-ID: <4A7D8D7A.5030303@mavhome.dp.ua> Date: Sat, 08 Aug 2009 17:36:42 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 Newsgroups: lucky.freebsd.current,lucky.freebsd.hackers,lucky.freebsd.scsi To: Danny Braniss References: <1249741381.00149226.1249729205@10.7.7.3> In-Reply-To: <1249741381.00149226.1249729205@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: request test drivers for iscsi_initiator 2.2.3 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, 08 Aug 2009 15:37:38 -0000 Hi. Danny Braniss wrote: > wups, forgot a small little detail: > ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.2.3.tar.gz Is there reason why cpi->transport = XPORT_ISCSI; covered by #if defined(KNOB_VALID_ADDRESS) ? -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 8 15:46:08 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 620F5106564A; Sat, 8 Aug 2009 15:46:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id B53F68FC32; Sat, 8 Aug 2009 15:46:07 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 251030757; Sat, 08 Aug 2009 17:46:02 +0300 Message-ID: <4A7D8F72.8090905@FreeBSD.org> Date: Sat, 08 Aug 2009 17:45:06 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: Danny Braniss References: <1249741381.00149226.1249729205@10.7.7.3> <4A7D8D7A.5030303@mavhome.dp.ua> In-Reply-To: <4A7D8D7A.5030303@mavhome.dp.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: request test drivers for iscsi_initiator 2.2.3 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, 08 Aug 2009 15:46:08 -0000 Alexander Motin wrote: > Danny Braniss wrote: >> wups, forgot a small little detail: >> ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.2.3.tar.gz > > Is there reason why > cpi->transport = XPORT_ISCSI; > covered by > #if defined(KNOB_VALID_ADDRESS) > ? Sorry, wrong question. But those who will test on CURRENT should take care about it. -- Alexander Motin