From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 11:07:05 2008 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 8A376106564A for ; Mon, 14 Jul 2008 11:07:05 +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 7E82E8FC0A for ; Mon, 14 Jul 2008 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6EB75gw014549 for ; Mon, 14 Jul 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6EB7475014545 for freebsd-scsi@FreeBSD.org; Mon, 14 Jul 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Jul 2008 11:07:04 GMT Message-Id: <200807141107.m6EB7475014545@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, 14 Jul 2008 11:07:05 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi 15 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [dpt] [request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/120487 scsi [sg] scsi_sg incompatible with scanners o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/123666 scsi [aac] aac(4) will not work with Adaptec SAS RAID 3805 o kern/123674 scsi [ahc] ahc driver dumping 10 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 12:33:17 2008 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 210011065687 for ; Mon, 14 Jul 2008 12:33:17 +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 D93978FC0A for ; Mon, 14 Jul 2008 12:33:16 +0000 (UTC) (envelope-from freebsd-scsi@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KINEw-0006PU-86 for freebsd-scsi@freebsd.org; Mon, 14 Jul 2008 12:33:14 +0000 Received: from borg.bfh.ch ([147.87.102.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 12:33:14 +0000 Received: from ktk by borg.bfh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 12:33:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-scsi@freebsd.org From: Adrian Gschwend Date: Mon, 14 Jul 2008 14:37:01 +0200 Organization: netlabs.org Lines: 34 Message-ID: <487B486D.3000206@netlabs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: borg.bfh.ch User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: iSCSI performance 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, 14 Jul 2008 12:33:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Danny Braniss wrote: > the patches were for -STABLE, and I haven't seen them, but > before the patches, try increasing the tag opening, ie > camcontrol tags daX -N128 > or via iscontrol (and yes it's not idiot proof, nor is is it > developer proof :-) ok ;) Did that (camcontrol), with the following result: Operations performed: 6006 Read, 3994 Write, 12800 Other = 22800 Total Read 93.844Mb Written 62.406Mb Total transferred 156.25Mb (1.4742Mb/sec) 94.35 Requests/sec executed which is already a lot better but still below the IO of the local disk. Should I try more right now or should I wait for more progress in that? Does it make sense to switch to -CURRENT for that? cu Adrian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIe0htqpMUYrZbQBERAvBpAJ9eTtDCdTJYcF2v1DtAr3vTSdartgCgoL1G aWEdX1ZHHl8pUZ5O87xJf2g= =EvmR -----END PGP SIGNATURE----- From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 12:45:53 2008 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 B130E106564A for ; Mon, 14 Jul 2008 12:45:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7141C8FC18 for ; Mon, 14 Jul 2008 12:45:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1KINR5-000H9k-PG; Mon, 14 Jul 2008 15:45:47 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Adrian Gschwend Sbject: Re: iSCSI performance In-reply-to: Your message of Mon, 14 Jul 2008 14:37:01 +0200 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Jul 2008 15:45:47 +0300 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: (no subject) 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, 14 Jul 2008 12:45:53 -0000 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Danny Braniss wrote: > > > the patches were for -STABLE, and I haven't seen them, but > > before the patches, try increasing the tag opening, ie > > camcontrol tags daX -N128 > > or via iscontrol (and yes it's not idiot proof, nor is is it > > developer proof :-) > > ok ;) Did that (camcontrol), with the following result: > > Operations performed: 6006 Read, 3994 Write, 12800 Other = 22800 Total > Read 93.844Mb Written 62.406Mb Total transferred 156.25Mb (1.4742Mb/sec) > 94.35 Requests/sec executed > > which is already a lot better but still below the IO of the local disk. > Should I try more right now or should I wait for more progress in that? > The numbers should be close to what you get via NFS :-( a) sysctl debug.iscsi_initiator should be <= 3 b) can you send me the command line to run sysbench? > Does it make sense to switch to -CURRENT for that? no, it's runing ok on -stable and have not tried it on -current yet. > > cu > > Adrian > danny From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 12:50:19 2008 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 BF20B1065670 for ; Mon, 14 Jul 2008 12:50:19 +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 8470F8FC21 for ; Mon, 14 Jul 2008 12:50:19 +0000 (UTC) (envelope-from freebsd-scsi@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KINVQ-0007HO-Op for freebsd-scsi@freebsd.org; Mon, 14 Jul 2008 12:50:16 +0000 Received: from borg.bfh.ch ([147.87.102.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 12:50:16 +0000 Received: from ktk by borg.bfh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 12:50:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-scsi@freebsd.org From: Adrian Gschwend Date: Mon, 14 Jul 2008 14:54:09 +0200 Organization: netlabs.org Lines: 40 Message-ID: <487B4C71.9040505@netlabs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: borg.bfh.ch User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: iSCSI performance 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, 14 Jul 2008 12:50:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Danny Braniss wrote: > The numbers should be close to what you get via NFS :-( ok so we are quite far away :) > a) sysctl debug.iscsi_initiator should be <= 3 it is "1" > b) can you send me the command line to run sysbench? sure, took it from the sample from the sysbech documentation: To generate some files: $ sysbench --num-threads=16 --test=fileio --file-total-size=3G - --file-test-mode=rndrw prepare Once this is done to run the test: $ sysbench --num-threads=16 --test=fileio --file-total-size=3G - --file-test-mode=rndrw run And cleanup would be: $ sysbench --num-threads=16 --test=fileio --file-total-size=3G - --file-test-mode=rndrw cleanup cu Adrian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIe0xxqpMUYrZbQBERAmXwAKCu2OV8AUnzKDx9IUfMO+zN9aaPgwCeP5Zn SuDmtybu5wj3YR3FKuCoyXo= =BW0j -----END PGP SIGNATURE----- From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 16:21:41 2008 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 5A4051065679 for ; Mon, 14 Jul 2008 16:21:41 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 413E18FC1C for ; Mon, 14 Jul 2008 16:21:41 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 69B0F1A90BE; Mon, 14 Jul 2008 09:21:07 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9cALs5vVVZmr; Mon, 14 Jul 2008 09:21:07 -0700 (PDT) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id F3D791A90B7; Mon, 14 Jul 2008 09:21:06 -0700 (PDT) Message-ID: <487B7D14.8020505@miralink.com> Date: Mon, 14 Jul 2008 09:21:40 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Ross References: <1557532186.20080710145356@connection.ca> <48767C9B.3060804@miralink.com> <477336220.20080710172453@connection.ca> In-Reply-To: <477336220.20080710172453@connection.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: isp - error/scsi message 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, 14 Jul 2008 16:21:41 -0000 Ross wrote: >>> -= >>> kernel: (da0:isp0:0:0:1): WRITE(10). CDB: 2a 0 1 10 eb bf 0 0 20 0 >>> kernel: (da0:isp0:0:0:1): CAM Status: SCSI Status Error >>> kernel: (da0:isp0:0:0:1): SCSI Status: Check Condition >>> kernel: (da0:isp0:0:0:1): UNIT ATTENTION asc:2a,6 >>> kernel: (da0:isp0:0:0:1): Reserved ASC/ASCQ pair >>> kernel: (da0:isp0:0:0:1): Retrying Command (per Sense Data) >>> -= >>> >>> A quick google of the ASC/ASCQ code gives the message "ASYMMETRIC >>> ACCESS STATE CHANGED", which I'm wondering has something to do with >>> the fact that the corresponding lun is accessible via multiple paths >>> (4 paths - 2x isp QHM2432 adapters). >>> >>> If anyone can help shed some light on this, I'd be grateful! >>> > > SB> What version of FreeBSD is this related to? > > Sorry, forgot that details - it's running Freebsd 7.0, with the > included isp driver on a custom kernel (ie: trimmed and with PAE/ULE) > > Biggest thing to note is that the isp firmware is 4.00.90 - which is > the builtin fw for the card (newer than the OS included one). And a > small correction: it's a QHM2462 card. > > > Is it possible that something in one of the PATH's is failing? Moreover, is the LUN failing due to this message, or is this just a message that you are seeing now and again? Sean -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Phone 503-621-5143 Fax 503-621-5199 From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 14 16:31:52 2008 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 8FBD0106567A for ; Mon, 14 Jul 2008 16:31:52 +0000 (UTC) (envelope-from westr@connection.ca) Received: from nc-tor-mail1.connection.ca (nc-tor-mail1.connection.ca [205.207.122.26]) by mx1.freebsd.org (Postfix) with ESMTP id 819278FC20 for ; Mon, 14 Jul 2008 16:31:52 +0000 (UTC) (envelope-from westr@connection.ca) Received: from localhost (external.tor.connection.ca [216.234.38.18]) by nc-tor-mail1.connection.ca (Postfix) with ESMTP id C18A544B426; Mon, 14 Jul 2008 12:31:51 -0400 (EDT) Date: Mon, 14 Jul 2008 12:31:28 -0400 From: Ross Organization: Network Connection X-Priority: 3 (Normal) Message-ID: <1511139894.20080714123128@connection.ca> To: Sean Bruno In-Reply-To: <487B7D14.8020505@miralink.com> References: <1557532186.20080710145356@connection.ca> <48767C9B.3060804@miralink.com> <477336220.20080710172453@connection.ca> <487B7D14.8020505@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-scsi@freebsd.org Subject: Re[2]: isp - error/scsi message X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ross List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 16:31:52 -0000 SB> Ross wrote: >>>> -= >>>> kernel: (da0:isp0:0:0:1): WRITE(10). CDB: 2a 0 1 10 eb bf 0 0 20 0 >>>> kernel: (da0:isp0:0:0:1): CAM Status: SCSI Status Error >>>> kernel: (da0:isp0:0:0:1): SCSI Status: Check Condition >>>> kernel: (da0:isp0:0:0:1): UNIT ATTENTION asc:2a,6 >>>> kernel: (da0:isp0:0:0:1): Reserved ASC/ASCQ pair >>>> kernel: (da0:isp0:0:0:1): Retrying Command (per Sense Data) >>>> -= SB> Is it possible that something in one of the PATH's is failing? Might be possible, but I don't think so - everything is heavily monitored (HP c7000 blade w/brocade switch into dual controller EVA). We're also using the gmultipath geom package to handle path failure, and it hasn't triggered at all. (it fails over nicely in testing at least). SB> Moreover, is the LUN failing due to this message, or is this just a SB> message that you are seeing now and again? It's just an occasional message and doesn't seem to cause any performance degradation - I'm wondering if it's the dual active/active controller on the EVA trying to force some load balancing or something. Basically I'm just trying to find out what the actual message means or in what circumstances it would be generated, so I can do some more hunting. Cheers, Ross. -- Ross From owner-freebsd-scsi@FreeBSD.ORG Wed Jul 16 08:00:32 2008 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 312EE1065682 for ; Wed, 16 Jul 2008 08:00:32 +0000 (UTC) (envelope-from sureshpoornam@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id E8F428FC13 for ; Wed, 16 Jul 2008 08:00:31 +0000 (UTC) (envelope-from sureshpoornam@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so2201319wra.27 for ; Wed, 16 Jul 2008 01:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=bnI6YcI4Z3f4qe+NWpNY6xSe19jUR9wMde9uOkPypHQ=; b=qx345JvFTH/G/jvTOe92XbuaGAKh8vLTxQhXSZksj4JREL4JCz63cA0M59x05zGnAM 7U+uxbflTcKejxr7E4Uam9f/B676g9wo/3pBomPOvd0rDm+i56ANunV/awaTO6HcsiLJ PVEKb2Na3I+ycx1WNrWoZek1UZxrjgWcSUQgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=XTX1S08S+smsc61vP+bE2H9NUU34bWqidYxYrFaVgqYATyyrOFCalq9JhYPBG31NYu PktJ5SuevOuRjM96F4Tzqbb9ekg1aopLyu0FLvKuOz8eJHtMdJ0+Q5NpZgGfkvWm7tXf mUAhEZjrxqNuJ1Tz1bRR0rhTKcLPUNOuAmpvU= Received: by 10.100.225.19 with SMTP id x19mr1323080ang.151.1216193635955; Wed, 16 Jul 2008 00:33:55 -0700 (PDT) Received: by 10.100.197.14 with HTTP; Wed, 16 Jul 2008 00:33:55 -0700 (PDT) Message-ID: <35d53dbf0807160033l6380a537o1e4051136e9ca438@mail.gmail.com> Date: Wed, 16 Jul 2008 13:03:55 +0530 From: "Suresh M" To: freebsd-scsi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Need help 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, 16 Jul 2008 08:00:32 -0000 Hello, I have a Dell machine with FreeBSD 6.2 with Seagate SCSI disk. After a prolonged time, one of the partitions got 3% of fragmentation. Can anyone help; how can we check the fragmentation level of partitions ? Is there any utility for de-fragmenting it ? Thank you. From owner-freebsd-scsi@FreeBSD.ORG Fri Jul 18 05:30:34 2008 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 24C98106566C for ; Fri, 18 Jul 2008 05:30:34 +0000 (UTC) (envelope-from nick-freebsd-scsi@triantos.com) Received: from smtp117.sbc.mail.sp1.yahoo.com (smtp117.sbc.mail.sp1.yahoo.com [69.147.64.90]) by mx1.freebsd.org (Postfix) with SMTP id EB7008FC17 for ; Fri, 18 Jul 2008 05:30:33 +0000 (UTC) (envelope-from nick-freebsd-scsi@triantos.com) Received: (qmail 57517 invoked from network); 18 Jul 2008 05:03:53 -0000 Received: from unknown (HELO bsd.triantos.com) (nicktriantos@sbcglobal.net@71.139.190.64 with login) by smtp117.sbc.mail.sp1.yahoo.com with SMTP; 18 Jul 2008 05:03:52 -0000 X-YMail-OSG: t.PVwmcVM1nFau8spf_0ToRmyYP98K9ZNDbkYsHh6M.w9BarYYedXfUsAzwXbYJMD2pkaSmX7_rGRLlZ.dCuBKSU5tdfWoMe.XNAmi7FNTNzTfeArlZnno9oLNbB5C6sYcc- X-Yahoo-Newman-Property: ymail-3 Received: by bsd.triantos.com (Postfix, from userid 1001) id 0886A8443D; Thu, 17 Jul 2008 22:03:54 -0700 (PDT) Received: from [192.168.0.7] (192.168.0.7) by bsd.triantos.com (tmda-ofmipd) with ESMTP; Thu, 17 Jul 2008 22:03:53 -0700 Message-Id: <666B9AF1-FDD9-4CAE-AB8B-874494DE587B@triantos.com> To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Thu, 17 Jul 2008 22:03:29 -0700 X-Mailer: Apple Mail (2.926) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Nick Triantos Subject: Errors on QLogic 2200 w/ FC SAN 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, 18 Jul 2008 05:30:34 -0000 Hi all, I'm seeing a huge number of errors in /var/log/messages of the form: Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): SYNCHRONIZE CACHE. CDB: 35 40 0 0 0 0 0 0 0 0 Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): CAM Status: SCSI Status Error Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): SCSI Status: Check Condition Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): ILLEGAL REQUEST asc:20,0 Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): Invalid command operation code Jul 17 20:54:14 bsd kernel: (da2:isp0:0:0:2): Unretryable error This is on FreeBSD 7.0 with a slightly trimmed down kernel. I'm running both the 'isp' and 'ispfw' drivers. I've got a QLogic QLA2200 card with a StorCase (Kingston) S10K102 (12-disk SATA-to-FC) SAN device attached. The second number of the "SYNCHRONIZE CACHE" line ('40' in the example above) changes between 0, 20, 40, and 60. This occurs on all 5 disks currently installed in the StorCase device. I'm using the device in NRAID (non-RAID) mode and then using FreeBSD's ZFS. The device seems to be working very well, as far as I can tell the files are being written without error, but these messages are clogging up /var/log/messages to the point where I can't see if other stuff is going wrong. Is there any straightforward way for me to fix the problem, or at least suppress these errors? I would like to know if other major errors are occurring, but these just don't appear to be useful. Any guidance welcome. thanks in advance! regards, -Nick From owner-freebsd-scsi@FreeBSD.ORG Fri Jul 18 05:42:37 2008 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 89A19106566B for ; Fri, 18 Jul 2008 05:42:37 +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 2CABA8FC12 for ; Fri, 18 Jul 2008 05:42:37 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local ([192.168.254.200]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id m6I5gXkZ039895; Thu, 17 Jul 2008 23:42:33 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <48802D49.5080002@samsco.org> Date: Thu, 17 Jul 2008 23:42:33 -0600 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: Suresh M References: <35d53dbf0807160033l6380a537o1e4051136e9ca438@mail.gmail.com> In-Reply-To: <35d53dbf0807160033l6380a537o1e4051136e9ca438@mail.gmail.com> 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: Need help 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, 18 Jul 2008 05:42:37 -0000 Suresh M wrote: > Hello, > > I have a Dell machine with FreeBSD 6.2 with Seagate SCSI disk. After a > prolonged time, one of the partitions got 3% of fragmentation. > > Can anyone help; > how can we check the fragmentation level of partitions ? Is there any > utility for de-fragmenting it ? > While any fragmentation is quite undesirable in MSDOS, it's mostly normal and expected in UFS. 3% fragmentation for a large volume is not unusual or particularly bad. Scott From owner-freebsd-scsi@FreeBSD.ORG Fri Jul 18 19:11:22 2008 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 D6DD21065685 for ; Fri, 18 Jul 2008 19:11:22 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32702.mail.mud.yahoo.com (web32702.mail.mud.yahoo.com [68.142.207.246]) by mx1.freebsd.org (Postfix) with SMTP id A4B8A8FC19 for ; Fri, 18 Jul 2008 19:11:22 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 67898 invoked by uid 60001); 18 Jul 2008 18:44:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=2wJ8VOLXts1czud3Sgz38+kkGMDT9fXbnxyanc0fMGVysdWoNTzM59NWYj0MXMTwxi0sk6WSgFRRqejlstgdG0JcLkuZ3ne7XnyDDIlLtW95dgSmfW792rss0TM6+ta4A+7+8m3/QmeFg47TGC3h9tpdCn7p4kN/kEkruymfo8Y=; Received: from [190.157.193.96] by web32702.mail.mud.yahoo.com via HTTP; Fri, 18 Jul 2008 11:44:40 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Fri, 18 Jul 2008 11:44:40 -0700 (PDT) From: Pedro Giffuni To: freebsd-scsi@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <37593.67811.qm@web32702.mail.mud.yahoo.com> Cc: Subject: CAM bugs found in DragonFly X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2008 19:11:22 -0000 (I sent some private mail about this but maybe it is of more general intere= st) Hi; Matt Dillon has been doing some robustness "don't try this at home" experim= ents with his new filesystem : basically unplugging the USB cord while maki= ng use of it. Our code has diverged a lot but surely some of his enhancements would impro= ve FreeBSD too: http://leaf.dragonflybsd.org/mailarchive/commits/2008-07/msg00242.html ___________ dillon 2008/07/17 17:07:23 PDT DragonFly src repository Modified files: sys/bus/cam cam_periph.c cam_periph.h cam_sim.c=20 cam_sim.h cam_xpt.c=20 sys/bus/cam/scsi scsi_cd.c scsi_ch.c scsi_da.c scsi_sa.c=20 scsi_target.c=20 Log: Fix multiple bugs in CAM related devices which go away unexpectedly. Thi= s fixes numerous panics when pulling a USB mass media device in the midst o= f heavy I/O. =20 * The SIM lock was being unlocked via the periph->sim path after periph was unheld. periph can become free and blow up the unlock, so get the sim into a local variable first, then release periph. =20 * The code which waits for CCB completion needs to be a while loop, not an if. It worked anyway, but wasn't very robust. =20 * Add CAM_SIM_DEREGISTERED to flag when a sim is undergoing deregistratio= n. =20 * Beef up cam_dead_sim so it works more like a real sim. =20 * Properly install &cam_dead_sim in the device and periph structures related to a SCSI bus, when deregistering the bus. =20 * Disallow the addition of new devices when deregistering a bus. =20 * NULL out periph->softc when freeing it. =20 Revision Changes Path 1.41 +13 -6 src/sys/bus/cam/cam_periph.c 1.12 +1 -1 src/sys/bus/cam/cam_periph.h 1.13 +18 -4 src/sys/bus/cam/cam_sim.c 1.9 +2 -0 src/sys/bus/cam/cam_sim.h 1.67 +96 -24 src/sys/bus/cam/cam_xpt.c 1.44 +5 -11 src/sys/bus/cam/scsi/scsi_cd.c 1.28 +4 -6 src/sys/bus/cam/scsi/scsi_ch.c 1.58 +4 -5 src/sys/bus/cam/scsi/scsi_da.c 1.36 +14 -18 src/sys/bus/cam/scsi/scsi_sa.c 1.20 +1 -1 src/sys/bus/cam/scsi/scsi_target.c=0A=0A=0A Pos= ta, news, sport, oroscopo: tutto in una sola pagina. =0ACrea l'home pag= e che piace a te!=0Awww.yahoo.it/latuapagina From owner-freebsd-scsi@FreeBSD.ORG Fri Jul 18 22:01:43 2008 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 CDAA1106566C for ; Fri, 18 Jul 2008 22:01:43 +0000 (UTC) (envelope-from sureshpoornam@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 92C118FC15 for ; Fri, 18 Jul 2008 22:01:43 +0000 (UTC) (envelope-from sureshpoornam@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so300650ana.13 for ; Fri, 18 Jul 2008 15:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=z0EkuL04X2016lV+APz3huEk8ip5V37qxLDzWbHIwhk=; b=TB1/zS2LusJ5H78BQ8QQX+2K4hFX7E0gchFGQjyxrAOuc41KBCBCxJifHARPqOp9Bh +nGzgXYPBlBNlvlINMAdOC/aKbXMy0DnvikorQBx9NlJIckqUJG10fcIpu15P/B0Zntx bVwLs3scINBz70a0lg3HD2NOZClJeBNNuWD6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=wE1OmLxWy8x7y9RjfvzegBPpYL9xAr6cemEFBRxTzRtkUtM/NFJQmaEzy0EFNYlgKo 0/WddlUKJ9YVhQ8Ypcfeeu2IhST/klGriEY+McHNqjVIZK12x7T+BAYq4t1NdBLENna8 j7dJLf24gF2j5lLlTUaehIUnc1cia8QUsspB8= Received: by 10.101.71.9 with SMTP id y9mr654516ank.127.1216418502578; Fri, 18 Jul 2008 15:01:42 -0700 (PDT) Received: by 10.100.197.14 with HTTP; Fri, 18 Jul 2008 15:01:42 -0700 (PDT) Message-ID: <35d53dbf0807181501p365adc0v4360c897223df0b4@mail.gmail.com> Date: Sat, 19 Jul 2008 03:31:42 +0530 From: "Suresh M" To: freebsd-scsi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: DNS query failed/res_mkquery failed 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, 18 Jul 2008 22:01:44 -0000 We have been using FreeBSD as server last 5 years without any problems at all. My formerly beautiful NIS system is now acting strangely. I'm getting lots of res_mkquery failures, and now ypserv will often refuse to start up, giving me the message: unable to register (YPPROG, YPOLDVERS, udp) man pages don't seem to be helpful on these errors (unless I'm missing something?). Jul 18 18:13:41 ypserv[470]: res_mkquery failed for 159607157543155842159299158288157898157829 1578301553671564461556201571651578461584561575851564611601731572791552241591261584611579151603671596 64158616160527161226157327159332161840160713160382161611 type 1 Jul 18 18:13:41 ypserv[470]: DNS query failed Jul 18 18:13:41 ypserv[470]: res_mkquery failed for 159607157543155842159299158288157898157829 1578301553671564461556201571651578461584561575851564611601731572791552241591261584611579151603671596 64158616160527161226157327159332161840160713160382161611 type 1 Jul 18 18:13:41 ypserv[470]: DNS query failed Jul 18 18:13:41 ypserv[470]: res_mkquery failed for 159607157543155842159299158288157898157829 1578301553671564461556201571651578461584561575851564611601731572791552241591261584611579151603671596 64158616160527161226157327159332161840160713160382161611 type 1 DNS query failed Mine is a FreeBSD 6.2 OS. Any ideas ? The machine got stuck frequently after getting these errors in a large volume. Any ideas ?