From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 11:02:23 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5159216A42D for ; Mon, 5 Sep 2005 11:02:23 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CAF543D48 for ; Mon, 5 Sep 2005 11:02:23 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j85B2Mqj077007 for ; Mon, 5 Sep 2005 11:02:22 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j85B2KEk077001 for freebsd-scsi@freebsd.org; Mon, 5 Sep 2005 11:02:20 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 5 Sep 2005 11:02:20 GMT Message-Id: <200509051102.j85B2KEk077001@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 05 Sep 2005 11:02:23 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/05/03] kern/27059 scsi (symbios) SCSI subsystem hangs under heav o [2001/06/29] kern/28508 scsi problems with backup to Tandberg SLR40 st o [2002/06/17] kern/39388 scsi ncr/sym drivers fail with 53c810 and more o [2002/07/22] kern/40895 scsi wierd kernel / device driver bug s [2003/09/30] kern/57398 scsi Current fails to install on mly(4) based o [2003/12/26] kern/60598 scsi wire down of scsi devices conflicts with a [2004/01/10] kern/61165 scsi [panic] kernel page fault after calling c o [2004/09/15] kern/71778 scsi 5.3 BETA3 doesnt see Adaptec 2015S FW Rev o [2004/12/02] kern/74607 scsi FreeBSD 5.3 install CD crashes on SCSI de o [2004/12/02] kern/74627 scsi Adaptec 2940U2W Can't boot 5.3 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/12/06] kern/23314 scsi aic driver fails to detect Adaptec 1520B o [2001/08/15] kern/29727 scsi [amr] [patch] amr_enquiry3 structure in a o [2002/02/23] kern/35234 scsi World access to /dev/pass? (for scanner) o [2002/06/02] kern/38828 scsi [feature request] DPT PM2012B/90 doesn't o [2002/10/29] kern/44587 scsi dev/dpt/dpt.h is missing defines required o [2003/10/01] kern/57469 scsi [patch] Quirk for Conner CP3500 6 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 17:00:13 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7676316A41F for ; Mon, 5 Sep 2005 17:00:13 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAAF943D48 for ; Mon, 5 Sep 2005 17:00:12 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so844149rna for ; Mon, 05 Sep 2005 10:00:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ix8Hpk8U00NVGnSxgi10nP60i+8w0BKSbkDdaiBcAVIGGiLndcgO5XJhU5fhylQ+xh1P3cEDLdtJ/0AtqEdRQbYvSpYEKUZz3oG77kJpDsfM8pMJjjv4w+iEdPDKDISd4nrL1P601GcdCGdwrO677mExUFCyqp4e1+O8yNKCkcM= Received: by 10.38.24.60 with SMTP id 60mr291127rnx; Mon, 05 Sep 2005 10:00:11 -0700 (PDT) Received: by 10.38.12.59 with HTTP; Mon, 5 Sep 2005 10:00:11 -0700 (PDT) Message-ID: <17db6d3a0509051000622868bc@mail.gmail.com> Date: Mon, 5 Sep 2005 22:30:11 +0530 From: Nikhil Dharashivkar To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-scsi@freebsd.org Subject: Adding new option to ktrace 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, 05 Sep 2005 17:00:13 -0000 Hi, i want to hack the ktrace system call. Basically, I want to monitor scsi disk IO through dastrategy() routine. It seems that kern_ktrace.c implements different functions for ktrace options like -tc / -ti ... etc (see man page). So, is it possible to add new option for disk IO with new structure object containing disk io information which will be pass to ktr_submittrequest thr' ktr_request structure. Will data will be written correctly in ktrace.out and will kdump analyze that ? --=20 Thanks and Regards, Nikhil. From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 18:24:28 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BE1616A41F; Mon, 5 Sep 2005 18:24:28 +0000 (GMT) (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 B0FB243D48; Mon, 5 Sep 2005 18:24:27 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j85IOQ2b017816; Mon, 5 Sep 2005 12:24:26 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <431C8D5B.7080309@samsco.org> Date: Mon, 05 Sep 2005 12:24:27 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikhil Dharashivkar References: <17db6d3a0509051000622868bc@mail.gmail.com> In-Reply-To: <17db6d3a0509051000622868bc@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 05 Sep 2005 18:24:28 -0000 Nikhil Dharashivkar wrote: > Hi, > i want to hack the ktrace system call. Basically, I want to monitor > scsi disk IO through dastrategy() routine. > It seems that kern_ktrace.c implements different functions for > ktrace options like -tc / -ti ... etc (see man page). So, is it > possible to add new option for disk IO with new structure object > containing disk io information which will be pass to > ktr_submittrequest thr' ktr_request structure. > Will data will be written correctly in ktrace.out and will > kdump analyze that ? > > > What are you trying to monitor? Would the existing devstat interface work? Scott From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 18:46:27 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D71C816A420; Mon, 5 Sep 2005 18:46:27 +0000 (GMT) (envelope-from rajesh_ghanekar@persistent.co.in) Received: from smtp.persistent.co.in (smtp.persistent.co.in [202.54.11.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52CBB43D72; Mon, 5 Sep 2005 18:46:25 +0000 (GMT) (envelope-from rajesh_ghanekar@persistent.co.in) Received: from [10.33.50.40] ([10.33.50.40]) (authenticated bits=0) by smtp.persistent.co.in (8.12.9/8.12.9) with ESMTP id j85IrCOM001735; Tue, 6 Sep 2005 00:23:12 +0530 Message-ID: <431C92F2.9090104@persistent.co.in> Date: Tue, 06 Sep 2005 00:18:18 +0530 From: "Rajesh S. Ghanekar" User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Scott Long References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> In-Reply-To: <431C8D5B.7080309@samsco.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAQ= X-Whitelist: TRUE Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 05 Sep 2005 18:46:28 -0000 Scott Long wrote: > Nikhil Dharashivkar wrote: > >> Hi, >> i want to hack the ktrace system call. Basically, I want to monitor >> scsi disk IO through dastrategy() routine. >> It seems that kern_ktrace.c implements different functions for >> ktrace options like -tc / -ti ... etc (see man page). So, is it >> possible to add new option for disk IO with new structure object >> containing disk io information which will be pass to >> ktr_submittrequest thr' ktr_request structure. >> Will data will be written correctly in ktrace.out and will >> kdump analyze that ? >> >> >> > > What are you trying to monitor? Would the existing devstat interface > work? May be he requires how many bytes transferred (read/write) while a process is executing. I guess devstat doesn't do it from process context, it gives total IO read/writes from a device, if registred via devstat. Please correct me if I am wrong. - Rajesh > > Scott > _______________________________________________ > 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" -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 18:52:16 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A8D916A41F; Mon, 5 Sep 2005 18:52:16 +0000 (GMT) (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 CB39243D48; Mon, 5 Sep 2005 18:52:13 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j85IqClm017944; Mon, 5 Sep 2005 12:52:12 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <431C93DD.20402@samsco.org> Date: Mon, 05 Sep 2005 12:52:13 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Rajesh S. Ghanekar" References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> In-Reply-To: <431C92F2.9090104@persistent.co.in> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 05 Sep 2005 18:52:16 -0000 Rajesh S. Ghanekar wrote: > Scott Long wrote: > >> Nikhil Dharashivkar wrote: >> >>> Hi, >>> i want to hack the ktrace system call. Basically, I want to monitor >>> scsi disk IO through dastrategy() routine. >>> It seems that kern_ktrace.c implements different functions for >>> ktrace options like -tc / -ti ... etc (see man page). So, is it >>> possible to add new option for disk IO with new structure object >>> containing disk io information which will be pass to >>> ktr_submittrequest thr' ktr_request structure. >>> Will data will be written correctly in ktrace.out and will >>> kdump analyze that ? >>> >>> >>> >> >> What are you trying to monitor? Would the existing devstat interface >> work? > > > May be he requires how many bytes transferred (read/write) while a > process is executing. > I guess devstat doesn't do it from process context, it gives total IO > read/writes from a device, > if registred via devstat. Please correct me if I am wrong. > > > - Rajesh > There isn't a 1:1 correlation between the bytes that the userland program writes, and the bytes that actually get written to disk. Filesystem metadata writes will happen if the file needs to be extended, not to mention the access time being updated. Some writes won't even originate from a userland program, like swap writes. GEOM also decouples the I/O path, so it's not the user process that will actually do the write, it's the g_down kthread. I would think that this would make tracking I/O via ktrace very hard. Scott From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 04:49:23 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9689316A421 for ; Tue, 6 Sep 2005 04:49:23 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1046D43D48 for ; Tue, 6 Sep 2005 04:49:21 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so929922rna for ; Mon, 05 Sep 2005 21:49:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LcV1R2HbewQmEt2p7nLehbUW2AzhUpEGSotNftzoFlOTuP3uNKjExtwDZxWCScVkm9jve+kYH60kkJDoCOGSGw5Xl8TrA4vCncUUk28ncgCWkn2CMnO1ca8ENDuqsYvJNPOY+WzYr1GsFACvhzEOrxhmaN4SI0CgQ8s/AX70W8g= Received: by 10.38.76.51 with SMTP id y51mr469541rna; Mon, 05 Sep 2005 21:49:21 -0700 (PDT) Received: by 10.38.12.59 with HTTP; Mon, 5 Sep 2005 21:49:21 -0700 (PDT) Message-ID: <17db6d3a05090521494a284c01@mail.gmail.com> Date: Tue, 6 Sep 2005 10:19:21 +0530 From: Nikhil Dharashivkar To: Scott Long In-Reply-To: <431C93DD.20402@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> <431C93DD.20402@samsco.org> Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 06 Sep 2005 04:49:23 -0000 Yes, what rajesh saying is right , i want to print IO Bytes. On 9/6/05, Scott Long wrote: > Rajesh S. Ghanekar wrote: > > Scott Long wrote: > > > >> Nikhil Dharashivkar wrote: > >> > >>> Hi, > >>> i want to hack the ktrace system call. Basically, I want to monito= r > >>> scsi disk IO through dastrategy() routine. > >>> It seems that kern_ktrace.c implements different functions for > >>> ktrace options like -tc / -ti ... etc (see man page). So, is it > >>> possible to add new option for disk IO with new structure object > >>> containing disk io information which will be pass to > >>> ktr_submittrequest thr' ktr_request structure. > >>> Will data will be written correctly in ktrace.out and will > >>> kdump analyze that ? > >>> > >>> > >>> > >> > >> What are you trying to monitor? Would the existing devstat interface > >> work? > > > > > > May be he requires how many bytes transferred (read/write) while a > > process is executing. > > I guess devstat doesn't do it from process context, it gives total IO > > read/writes from a device, > > if registred via devstat. Please correct me if I am wrong. > > > > > > - Rajesh > > >=20 > There isn't a 1:1 correlation between the bytes that the userland > program writes, and the bytes that actually get written to disk. > Filesystem metadata writes will happen if the file needs to be > extended, not to mention the access time being updated. Some writes > won't even originate from a userland program, like swap writes. > GEOM also decouples the I/O path, so it's not the user process that > will actually do the write, it's the g_down kthread. I would think > that this would make tracking I/O via ktrace very hard. >=20 > Scott >=20 --=20 Thanks and Regards, Nikhil. From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 04:58:38 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC98816A41F; Tue, 6 Sep 2005 04:58:38 +0000 (GMT) (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 265D543D46; Tue, 6 Sep 2005 04:58:37 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j864wakS020533; Mon, 5 Sep 2005 22:58:36 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <431D21FE.4080305@samsco.org> Date: Mon, 05 Sep 2005 22:58:38 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikhil Dharashivkar References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> <431C93DD.20402@samsco.org> <17db6d3a05090521494a284c01@mail.gmail.com> In-Reply-To: <17db6d3a05090521494a284c01@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 06 Sep 2005 04:58:38 -0000 Nikhil Dharashivkar wrote: > Yes, what rajesh saying is right , i want to print IO Bytes. You want to capture writes coming from userland, or you want to capture all low-level disk writes? Are you trying to correlate these writes with a particular user process? Consider an mmaped file. A userland program will modify the memory fronting the file, at at some point the pagedaemon kthread will come in and flush those dirty pages, independent of the user process. Also, like I said, device strategy routines are decoupled from the syscall callers by the g_down kthread. Trying to figure out the userland thread from dastrategy that is responsible for the I/O is going to be tricky, if even possible at all. Scott > > On 9/6/05, Scott Long wrote: > >>Rajesh S. Ghanekar wrote: >> >>>Scott Long wrote: >>> >>> >>>>Nikhil Dharashivkar wrote: >>>> >>>> >>>>>Hi, >>>>> i want to hack the ktrace system call. Basically, I want to monitor >>>>>scsi disk IO through dastrategy() routine. >>>>> It seems that kern_ktrace.c implements different functions for >>>>>ktrace options like -tc / -ti ... etc (see man page). So, is it >>>>>possible to add new option for disk IO with new structure object >>>>>containing disk io information which will be pass to >>>>>ktr_submittrequest thr' ktr_request structure. >>>>> Will data will be written correctly in ktrace.out and will >>>>>kdump analyze that ? >>>>> >>>>> >>>>> >>>> >>>>What are you trying to monitor? Would the existing devstat interface >>>>work? >>> >>> >>>May be he requires how many bytes transferred (read/write) while a >>>process is executing. >>>I guess devstat doesn't do it from process context, it gives total IO >>>read/writes from a device, >>>if registred via devstat. Please correct me if I am wrong. >>> >>> >>>- Rajesh >>> >> >>There isn't a 1:1 correlation between the bytes that the userland >>program writes, and the bytes that actually get written to disk. >>Filesystem metadata writes will happen if the file needs to be >>extended, not to mention the access time being updated. Some writes >>won't even originate from a userland program, like swap writes. >>GEOM also decouples the I/O path, so it's not the user process that >>will actually do the write, it's the g_down kthread. I would think >>that this would make tracking I/O via ktrace very hard. >> >>Scott >> > > > From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 05:03:54 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C50B16A420 for ; Tue, 6 Sep 2005 05:03:54 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB1BA43D55 for ; Tue, 6 Sep 2005 05:03:53 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so931039rna for ; Mon, 05 Sep 2005 22:03:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sbSG28rNpKgyg1Glb70yDYJFxdDz28NsWu0nCjzIlP9FCjfeHqkskZ2gbRftJVyEx4Ai1DSj32POq8BTdDsXa6+ROGwuqTLIfnFAqAUnwOPjQPq5AAyAj1jHfp+oG8beypatVxZQDQZLh2KhdRc9cb7FFQn7bxX3UE4yHSsa3/c= Received: by 10.38.73.47 with SMTP id v47mr474921rna; Mon, 05 Sep 2005 22:03:53 -0700 (PDT) Received: by 10.38.12.59 with HTTP; Mon, 5 Sep 2005 22:03:53 -0700 (PDT) Message-ID: <17db6d3a0509052203b1da14a@mail.gmail.com> Date: Tue, 6 Sep 2005 10:33:53 +0530 From: Nikhil Dharashivkar To: Scott Long In-Reply-To: <431C93DD.20402@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> <431C93DD.20402@samsco.org> Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 06 Sep 2005 05:03:54 -0000 Hi Scott and Rajesh, Thanks for replying me. Basically what happend, while testing scsi driver on freebsd, at some point it crashes. So, there is no way to know how much IO is performed. To know the IO state just before the driver fails, i selected ktrace to print IO information whatever i ll get from dastrategy routine. On 9/6/05, Scott Long wrote: > Rajesh S. Ghanekar wrote: > > Scott Long wrote: > > > >> Nikhil Dharashivkar wrote: > >> > >>> Hi, > >>> i want to hack the ktrace system call. Basically, I want to monito= r > >>> scsi disk IO through dastrategy() routine. > >>> It seems that kern_ktrace.c implements different functions for > >>> ktrace options like -tc / -ti ... etc (see man page). So, is it > >>> possible to add new option for disk IO with new structure object > >>> containing disk io information which will be pass to > >>> ktr_submittrequest thr' ktr_request structure. > >>> Will data will be written correctly in ktrace.out and will > >>> kdump analyze that ? > >>> > >>> > >>> > >> > >> What are you trying to monitor? Would the existing devstat interface > >> work? > > > > > > May be he requires how many bytes transferred (read/write) while a > > process is executing. > > I guess devstat doesn't do it from process context, it gives total IO > > read/writes from a device, > > if registred via devstat. Please correct me if I am wrong. > > > > > > - Rajesh > > >=20 > There isn't a 1:1 correlation between the bytes that the userland > program writes, and the bytes that actually get written to disk. > Filesystem metadata writes will happen if the file needs to be > extended, not to mention the access time being updated. Some writes > won't even originate from a userland program, like swap writes. > GEOM also decouples the I/O path, so it's not the user process that > will actually do the write, it's the g_down kthread. I would think > that this would make tracking I/O via ktrace very hard. >=20 > Scott >=20 --=20 Thanks and Regards, Nikhil. From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 06:33:49 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E54E16A41F; Tue, 6 Sep 2005 06:33:49 +0000 (GMT) (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 9D60943D45; Tue, 6 Sep 2005 06:33:46 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j866XhYA020937; Tue, 6 Sep 2005 00:33:44 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <431D3849.3050706@samsco.org> Date: Tue, 06 Sep 2005 00:33:45 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikhil Dharashivkar References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> <431C93DD.20402@samsco.org> <17db6d3a0509052203b1da14a@mail.gmail.com> In-Reply-To: <17db6d3a0509052203b1da14a@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 06 Sep 2005 06:33:49 -0000 Nikhil Dharashivkar wrote: > Hi Scott and Rajesh, > Thanks for replying me. Basically what happend, while testing > scsi driver on freebsd, at some point it crashes. So, there is no way > to know how much IO is performed. To know the IO state just before the > driver fails, i selected ktrace to print IO information whatever i ll > get from dastrategy routine. You have reason to believe that certain I/O patterns cause the crash? What driver is being used? What is the crash? Scott From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 06:47:11 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5977116A41F for ; Tue, 6 Sep 2005 06:47:11 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 754CF43D45 for ; Tue, 6 Sep 2005 06:47:09 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so938327rna for ; Mon, 05 Sep 2005 23:47:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VoPrW1OIEzVvBkN4hfT48Ck5stzrPrDQQSKUJoH9fwcjwosaHogOU9FzUqBSurCqaSKeZzHIDE6J7t+Aoks0luE03eAeBqNG/F+USoXgIi1ZPUrbb+H9LAeJdfcOP5n1nz8jrjjcWDoIpGnHNvwDJ764EKAVwNFelnTHJraFb3k= Received: by 10.38.74.43 with SMTP id w43mr502892rna; Mon, 05 Sep 2005 23:47:08 -0700 (PDT) Received: by 10.38.12.59 with HTTP; Mon, 5 Sep 2005 23:47:08 -0700 (PDT) Message-ID: <17db6d3a05090523474f5385be@mail.gmail.com> Date: Tue, 6 Sep 2005 12:17:08 +0530 From: Nikhil Dharashivkar To: Scott Long In-Reply-To: <431D3849.3050706@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org> <431C92F2.9090104@persistent.co.in> <431C93DD.20402@samsco.org> <17db6d3a0509052203b1da14a@mail.gmail.com> <431D3849.3050706@samsco.org> Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace 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, 06 Sep 2005 06:47:11 -0000 Crashed occured only once at client side, for some long duration test. But it is informed that at some point to monitor the testing report should have some IO trace. =20 On 9/6/05, Scott Long wrote: > Nikhil Dharashivkar wrote: > > Hi Scott and Rajesh, > > Thanks for replying me. Basically what happend, while testing > > scsi driver on freebsd, at some point it crashes. So, there is no way > > to know how much IO is performed. To know the IO state just before the > > driver fails, i selected ktrace to print IO information whatever i ll > > get from dastrategy routine. >=20 > You have reason to believe that certain I/O patterns cause the crash? > What driver is being used? What is the crash? >=20 > Scott >=20 >=20 >=20 --=20 Thanks and Regards, Nikhil. From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 6 12:48:27 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D09316A41F for ; Tue, 6 Sep 2005 12:48:27 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [70.88.158.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 800A143D6D for ; Tue, 6 Sep 2005 12:48:24 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (winter@sasami.jurai.net [70.88.158.93]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id j86CmKGB063415; Tue, 6 Sep 2005 08:48:23 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Tue, 6 Sep 2005 08:48:20 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "Antonio Nati - Inter@zioni" In-Reply-To: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> Message-ID: <20050906084747.A84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [70.88.158.93]); Tue, 06 Sep 2005 08:48:23 -0400 (EDT) Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: camcontrol and IDAD0 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, 06 Sep 2005 12:48:27 -0000 On Thu, 1 Sep 2005, Antonio Nati - Inter@zioni wrote: > What can I do? Is there any other resource/command available in order to > solve this problem? ftp://ftp.jurai.net/users/winter/idacontrol.tar -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 14:41:20 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 181D516A41F for ; Wed, 7 Sep 2005 14:41:20 +0000 (GMT) (envelope-from a.nati@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E1C243D53 for ; Wed, 7 Sep 2005 14:41:18 +0000 (GMT) (envelope-from a.nati@interazioni.it) Received: (qmail 80140 invoked by uid 85); 7 Sep 2005 14:41:17 -0000 Received: from a.nati@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1210 (20050906)/. Clear:. Processed in 0.050989 secs); 07 Sep 2005 14:41:17 -0000 X-Qmail-Scanner-Mail-From: a.nati@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.050989 secs) Received: from unknown (HELO IATonino.interazioni.it) (a.nati@interazioni.it@213.233.2.94) by myrelay.interazioni.net with SMTP; 7 Sep 2005 14:41:17 -0000 Message-Id: <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 07 Sep 2005 15:41:12 +0100 To: freebsd-scsi@FreeBSD.ORG From: "Antonio Nati - Inter@zioni" In-Reply-To: <20050906084747.A84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 14:41:20 -0000 This program is wonderful, thanks!!! I've tried it detaching disks dorm a RAID set and reattaching them, and it displays perfectly the situation! Why is it not included in standard distribution? It would solve a lot of problems! Thanks again. Tonino At 13.48 06/09/2005, Matthew N. Dodd wrote: >On Thu, 1 Sep 2005, Antonio Nati - Inter@zioni wrote: >>What can I do? Is there any other resource/command available in >>order to solve this problem? > >ftp://ftp.jurai.net/users/winter/idacontrol.tar > >-- >10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 ------------------------------------------------------------ Inter@zioni Tel. +39 06 77203704 Interazioni di Antonio Nati Fax +39 06 77260035 a.nati@interazioni.it Cell. +39 349 8920334 ------------------------------------------------------------ From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 15:39:54 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1C4F16A41F for ; Wed, 7 Sep 2005 15:39:54 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id E326643D49 for ; Wed, 7 Sep 2005 15:39:53 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 90215 invoked by uid 85); 7 Sep 2005 15:39:52 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1210 (20050906)/. Clear:. Processed in 0.099806 secs); 07 Sep 2005 15:39:52 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.099806 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 7 Sep 2005 15:39:52 -0000 Message-Id: <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 07 Sep 2005 16:39:45 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 15:39:54 -0000 Just to deny previous satistaction, after joking on RAID, system hangups over SCSI channel, and I've continuosly soft errors (obviously problem is not on idadcontrol, that I like a lot :-)). FreeBSD stable 5.4, cvsup'ed a few days ago (now I'm cvsup'ing to latest stable). I don't have time to study the code, but if anyone is willing to examine IDAD controllers, I can setup a dedicated access to this machine, where any attempt can be made on this kind of controller. Tonino At 15.41 07/09/2005, Antonio Nati - Inter@zioni wrote: >This program is wonderful, thanks!!! > >I've tried it detaching disks dorm a RAID set and reattaching them, >and it displays perfectly the situation! > >Why is it not included in standard distribution? It would solve a >lot of problems! > >Thanks again. > >Tonino > >At 13.48 06/09/2005, Matthew N. Dodd wrote: >>On Thu, 1 Sep 2005, Antonio Nati - Inter@zioni wrote: >>>What can I do? Is there any other resource/command available in >>>order to solve this problem? >> >>ftp://ftp.jurai.net/users/winter/idacontrol.tar >> >>-- >>10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 > >------------------------------------------------------------ > Inter@zioni Tel. +39 06 77203704 > Interazioni di Antonio Nati Fax +39 06 77260035 > a.nati@interazioni.it Cell. +39 349 8920334 >------------------------------------------------------------ > >_______________________________________________ >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 Sep 7 15:53:15 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2033716A420 for ; Wed, 7 Sep 2005 15:53:15 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1151A43D45 for ; Wed, 7 Sep 2005 15:53:13 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 92342 invoked by uid 85); 7 Sep 2005 15:53:12 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1210 (20050906)/. Clear:. Processed in 0.086108 secs); 07 Sep 2005 15:53:12 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.086108 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 7 Sep 2005 15:53:12 -0000 Message-Id: <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 07 Sep 2005 16:53:06 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 15:53:15 -0000 System is continuosly hanging. This is the screen shot of system hanging, with details on IDAD error. ida0: soft error ida_command: out of QCBsida0: ida_timeout() qactive 256 ida0: IDA_INTERRUPTS ida0: R_CMD_FIFO: 00000000 R_DONE_FIFO: 00000000 R_INT_MASK: 00000000 R_STATUS: 00000000 R_INT_PENDING: 00000000 Tonino At 16.39 07/09/2005, tonix (Antonio Nati) wrote: >Just to deny previous satistaction, after joking on RAID, system >hangups over SCSI channel, and I've continuosly soft errors >(obviously problem is not on idadcontrol, that I like a lot :-)). > >FreeBSD stable 5.4, cvsup'ed a few days ago (now I'm cvsup'ing to >latest stable). > >I don't have time to study the code, but if anyone is willing to >examine IDAD controllers, I can setup a dedicated access to this >machine, where any attempt can be made on this kind of controller. > >Tonino > >At 15.41 07/09/2005, Antonio Nati - Inter@zioni wrote: > >>This program is wonderful, thanks!!! >> >>I've tried it detaching disks dorm a RAID set and reattaching them, >>and it displays perfectly the situation! >> >>Why is it not included in standard distribution? It would solve a >>lot of problems! >> >>Thanks again. >> >>Tonino >> >>At 13.48 06/09/2005, Matthew N. Dodd wrote: >>>On Thu, 1 Sep 2005, Antonio Nati - Inter@zioni wrote: >>>>What can I do? Is there any other resource/command available in >>>>order to solve this problem? >>> >>>ftp://ftp.jurai.net/users/winter/idacontrol.tar >>> >>>-- >>>10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 >> >>------------------------------------------------------------ >> Inter@zioni Tel. +39 06 77203704 >> Interazioni di Antonio Nati Fax +39 06 77260035 >> a.nati@interazioni.it Cell. +39 349 8920334 >>------------------------------------------------------------ >> >>_______________________________________________ >>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" > > >_______________________________________________ >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 Sep 7 16:05:50 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0705116A420 for ; Wed, 7 Sep 2005 16:05:50 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 982B143D4C for ; Wed, 7 Sep 2005 16:05:48 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 94715 invoked by uid 85); 7 Sep 2005 16:05:47 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1210 (20050906)/. Clear:. Processed in 0.093037 secs); 07 Sep 2005 16:05:47 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.093037 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 7 Sep 2005 16:05:47 -0000 Message-Id: <6.2.3.4.0.20050907170341.0533dd10@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 07 Sep 2005 17:05:41 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 16:05:50 -0000 Just to complete the picture, at each run of idacontrol a "ida0: soft error" comes out on console. Tonino At 16.53 07/09/2005, tonix (Antonio Nati) wrote: >System is continuosly hanging. > >This is the screen shot of system hanging, with details on IDAD error. > >ida0: soft error >ida_command: out of QCBsida0: ida_timeout() qactive 256 >ida0: IDA_INTERRUPTS >ida0: R_CMD_FIFO: 00000000 > R_DONE_FIFO: 00000000 > R_INT_MASK: 00000000 > R_STATUS: 00000000 > R_INT_PENDING: 00000000 > >Tonino > >At 16.39 07/09/2005, tonix (Antonio Nati) wrote: > >>Just to deny previous satistaction, after joking on RAID, system >>hangups over SCSI channel, and I've continuosly soft errors >>(obviously problem is not on idadcontrol, that I like a lot :-)). >> >>FreeBSD stable 5.4, cvsup'ed a few days ago (now I'm cvsup'ing to >>latest stable). >> >>I don't have time to study the code, but if anyone is willing to >>examine IDAD controllers, I can setup a dedicated access to this >>machine, where any attempt can be made on this kind of controller. >> >>Tonino >> >>At 15.41 07/09/2005, Antonio Nati - Inter@zioni wrote: >> >>>This program is wonderful, thanks!!! >>> >>>I've tried it detaching disks dorm a RAID set and reattaching >>>them, and it displays perfectly the situation! >>> >>>Why is it not included in standard distribution? It would solve a >>>lot of problems! >>> >>>Thanks again. >>> >>>Tonino >>> >>>At 13.48 06/09/2005, Matthew N. Dodd wrote: >>>>On Thu, 1 Sep 2005, Antonio Nati - Inter@zioni wrote: >>>>>What can I do? Is there any other resource/command available in >>>>>order to solve this problem? >>>> >>>>ftp://ftp.jurai.net/users/winter/idacontrol.tar >>>> >>>>-- >>>>10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 >>> >>>------------------------------------------------------------ >>> Inter@zioni Tel. +39 06 77203704 >>> Interazioni di Antonio Nati Fax +39 06 77260035 >>> a.nati@interazioni.it Cell. +39 349 8920334 >>>------------------------------------------------------------ >>> >>>_______________________________________________ >>>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" >> >> >>_______________________________________________ >>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" > > >_______________________________________________ >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 Sep 7 17:38:28 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7668D16A41F for ; Wed, 7 Sep 2005 17:38:28 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [70.88.158.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id E92B143D55 for ; Wed, 7 Sep 2005 17:38:27 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (winter@sasami.jurai.net [70.88.158.93]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id j87HcO2E038428; Wed, 7 Sep 2005 13:38:26 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Wed, 7 Sep 2005 13:38:24 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> Message-ID: <20050907133723.P84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [70.88.158.93]); Wed, 07 Sep 2005 13:38:27 -0400 (EDT) Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 17:38:28 -0000 On Wed, 7 Sep 2005, tonix (Antonio Nati) wrote: > Just to deny previous satistaction, after joking on RAID, system hangups > over SCSI channel, and I've continuosly soft errors (obviously problem > is not on idadcontrol, that I like a lot :-)). If you access a volume that is rebuilding you'll get soft errors. The driver isn't currently smart enough to rate limit or otherwise display the root cause. Soft errors aren't really anything to be concerned with. -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 17:41:20 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D13D16A41F for ; Wed, 7 Sep 2005 17:41:20 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [70.88.158.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9E4A43D48 for ; Wed, 7 Sep 2005 17:41:19 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (winter@sasami.jurai.net [70.88.158.93]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id j87HfGnT038702; Wed, 7 Sep 2005 13:41:18 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Wed, 7 Sep 2005 13:41:16 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> Message-ID: <20050907133856.C84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [70.88.158.93]); Wed, 07 Sep 2005 13:41:19 -0400 (EDT) Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 17:41:20 -0000 On Wed, 7 Sep 2005, tonix (Antonio Nati) wrote: > System is continuosly hanging. > > This is the screen shot of system hanging, with details on IDAD error. > > ida0: soft error > ida_command: out of QCBsida0: ida_timeout() qactive 256 > ida0: IDA_INTERRUPTS > ida0: R_CMD_FIFO: 00000000 > R_DONE_FIFO: 00000000 > R_INT_MASK: 00000000 > R_STATUS: 00000000 > R_INT_PENDING: 00000000 Ah, yes. I believe you've run into a firmware crash. Make sure your cards have the latest firmware running. I've seen cases where hot swapping drives causes the firmware to reset and lock up (based on the LED pattern of the diagnostic lights on my cards.) I added command timeout detection to the driver as a means of detecting this condition. I don't have any good leads on recovinging from it though as my test hardware failed and I haven't replaced it yet. -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 18:00:26 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A48DF16A41F for ; Wed, 7 Sep 2005 18:00:26 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA23E43D46 for ; Wed, 7 Sep 2005 18:00:25 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 6607 invoked by uid 85); 7 Sep 2005 18:00:23 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1210 (20050906)/. Clear:. Processed in 0.135848 secs); 07 Sep 2005 18:00:23 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.135848 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 7 Sep 2005 18:00:23 -0000 Message-Id: <6.2.3.4.0.20050907185955.0546ec68@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 07 Sep 2005 19:00:17 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <20050907133856.C84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> <20050907133856.C84118@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 07 Sep 2005 18:00:26 -0000 At 18.41 07/09/2005, you wrote: >On Wed, 7 Sep 2005, tonix (Antonio Nati) wrote: >>System is continuosly hanging. >> >>This is the screen shot of system hanging, with details on IDAD error. >> >>ida0: soft error >>ida_command: out of QCBsida0: ida_timeout() qactive 256 >>ida0: IDA_INTERRUPTS >>ida0: R_CMD_FIFO: 00000000 >> R_DONE_FIFO: 00000000 >> R_INT_MASK: 00000000 >> R_STATUS: 00000000 >> R_INT_PENDING: 00000000 > >Ah, yes. I believe you've run into a firmware crash. > >Make sure your cards have the latest firmware running. I've the latest firmware available (Integrated Smart Array, version 1.50) >I've seen cases where hot swapping drives causes the firmware to >reset and lock up (based on the LED pattern of the diagnostic lights >on my cards.) Recovery started correctly, and I started my "makeworld" compilation, then at half work done machine hang. Tonino >-- >10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 8 08:44:58 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FEAD16A41F for ; Thu, 8 Sep 2005 08:44:58 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BC6943D4C for ; Thu, 8 Sep 2005 08:44:56 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 19070 invoked by uid 85); 8 Sep 2005 08:44:55 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1211 (20050907)/. Clear:. Processed in 0.13428 secs); 08 Sep 2005 08:44:55 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.13428 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 8 Sep 2005 08:44:55 -0000 Message-Id: <6.2.3.4.0.20050908094033.04dd4af8@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 08 Sep 2005 09:44:14 +0100 To: freebsd-scsi@freebsd.org From: "tonix (Antonio Nati)" In-Reply-To: <20050907133856.C84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> <20050907133856.C84118@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: camcontrol and IDAD0 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, 08 Sep 2005 08:44:58 -0000 At 18.41 07/09/2005, you wrote: Ah, yes. I believe you've run into a firmware crash. >Make sure your cards have the latest firmware running. Is this FreeBSD 5.4 ida driver the latest version or is there any linux version more updated? >I've seen cases where hot swapping drives causes the firmware to >reset and lock up (based on the LED pattern of the diagnostic lights >on my cards.) > >I added command timeout detection to the driver as a means of >detecting this condition. I don't have any good leads on >recovinging from it though as my test hardware failed and I haven't >replaced it yet. I can give you full remote access on my machine (using Remote Insight Card) and you can make what you want (it's a DL360 G1 with a Integrated Smart Array and double disks; I can add also a 4200 controller if you want). Tonino >-- >10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Fri Sep 9 11:05:03 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D04EE16A41F for ; Fri, 9 Sep 2005 11:05:03 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBBDE43D53 for ; Fri, 9 Sep 2005 11:04:59 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 35312 invoked by uid 85); 9 Sep 2005 11:04:58 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1212 (20050908)/. Clear:. Processed in 0.096208 secs); 09 Sep 2005 11:04:58 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.096208 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 9 Sep 2005 11:04:58 -0000 Message-Id: <6.2.3.4.0.20050909120032.053cc160@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Fri, 09 Sep 2005 12:04:56 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <20050907133856.C84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> <20050907133856.C84118@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 09 Sep 2005 11:05:03 -0000 At 18.41 07/09/2005, Matthew N. Dodd wrote: >Ah, yes. I believe you've run into a firmware crash. > >Make sure your cards have the latest firmware running. > >I've seen cases where hot swapping drives causes the firmware to >reset and lock up (based on the LED pattern of the diagnostic lights >on my cards.) > >I added command timeout detection to the driver as a means of >detecting this condition. I don't have any good leads on >recovinging from it though as my test hardware failed and I haven't >replaced it yet. Finally, these controllers seems to be unusable in a production environment with FreeBSD. Are new drivers (like ciss) and related controllers (Smart Array 5300 and following) exempt from these errors? Tonino From owner-freebsd-scsi@FreeBSD.ORG Fri Sep 9 17:58:50 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A190F16A41F for ; Fri, 9 Sep 2005 17:58:50 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [70.88.158.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A9943D45 for ; Fri, 9 Sep 2005 17:58:50 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (winter@sasami.jurai.net [70.88.158.93]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id j89Hwh3H002868; Fri, 9 Sep 2005 13:58:49 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Fri, 9 Sep 2005 13:58:43 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "tonix (Antonio Nati)" In-Reply-To: <6.2.3.4.0.20050909120032.053cc160@pop.ufficiopostale.it> Message-ID: <20050909135705.O84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> <20050907133856.C84118@sasami.jurai.net> <6.2.3.4.0.20050909120032.053cc160@pop.ufficiopostale.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [70.88.158.93]); Fri, 09 Sep 2005 13:58:49 -0400 (EDT) Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: camcontrol and IDAD0 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, 09 Sep 2005 17:58:50 -0000 On Fri, 9 Sep 2005, tonix (Antonio Nati) wrote: > Finally, these controllers seems to be unusable in a production > environment with FreeBSD. I don't think anyone has really tested rebuilding a volume while the system is running. I'd be interested in the results of changing the definition of IDA_QCB_MAX from 256 to 128. See sys/dev/ida/idavar.h: #define IDA_QCB_MAX 256 -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Fri Sep 9 18:59:36 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8BDF16A420; Fri, 9 Sep 2005 18:59:36 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4599943D49; Fri, 9 Sep 2005 18:59:36 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id A7AA8D9834; Fri, 9 Sep 2005 11:59:35 -0700 (PDT) Date: Fri, 9 Sep 2005 11:59:35 -0700 From: Danny Howard To: freebsd-questions@freebsd.org Message-ID: <20050909185935.GI31865@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu Cc: freebsd-scsi@freebsd.org Subject: Fibre Channel disks to two Systems? 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, 09 Sep 2005 18:59:37 -0000 [NOTE: If posting followup, please mind the cross-post to -questions and -scsi.] Hello, We host our PostgreSQL database on FreeBSD. Until now, we have just built the beefiest DB server we can spec, and then dump the data every thirty minutes to a backup DB server, so if the primary DB server fails, we load the database on the backup and fail over to the backup server. But I'd rather offload the disk to an external storage device, then I can have two identical DB servers, and if one fails, I swap the disks over to the other DB server, mount the filesystem, possibly run data consistency checks, and proceed from there. >From my research, I am thus far most impressed with the SANbloc 2Gb, which holds fourteen FC drives in a 3U rackmount. It can be had with redundant RAID controllers, or as a JBOD. There are similar products from other vendors as well. I could concievably do the RAID in software by running a gstripe across a set of gmirrors. As I understand it, I can have an FC loop with one or more drives, connected to two servers, and either server can talk to one or the other drives exclusively. My QUESTION is: how is the arbitration done in FreeBSD? You run camcontrol on either server and activate / deactivate drives in the loop? What happens if say, the primary server locks up in some weird manner? Can it block the backup server from talking to the drives? (We can always have a NOC tech turn off a badly failed primary database, and power-cycle the disk array, if needed ...) A really far-out idea I had was that with fourteen drive bays I could have two hot spares, and then set up a stripe across four mirrored pairs (4x2 = 8-disk RAID10) and then with the remaining four drives assign each to be a third component of the gmirrored pairs, let the gmirrors sync up, then detach those drives from the gmirrors, mount them on the backup database, gstripe those containers together, and have a point-in-time "snapshot" of the drive array that could be mounted on the backup server, from which I could run database dumps, or conduct failover tests, etc. (I could kick this around -geom. :) Uhmmm, has anyone done similar? Suggestions? Feedback? Advice? Or, should I try to get a NetApp, or similar device, even though FreeBSD does not support iSCSI, because NFS performance over GigE may still beat FC? Also, does anyone have a FreeBSD-friendly storage systems integrator or other vendor they can reccomend, particularly one near the San Francisco area? I keep contacting various vendors who then fail to get back to me. :( Thanks for all feedback and suggestions! Sincerely, -danny -- http://dannyman.toldme.com/ From owner-freebsd-scsi@FreeBSD.ORG Fri Sep 9 20:47:32 2005 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD12316A420 for ; Fri, 9 Sep 2005 20:47:32 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: from smtp.ufficiopostale.it (servizi.interazioni.it [194.183.4.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E7CE43D45 for ; Fri, 9 Sep 2005 20:47:30 +0000 (GMT) (envelope-from tonix@interazioni.it) Received: (qmail 93863 invoked by uid 85); 9 Sep 2005 20:47:26 -0000 Received: from tonix@interazioni.it by avsmtp.ufficiopostale.it by uid 88 with qmail-scanner-1.12 (nod32: 1.1212 (20050908)/. Clear:. Processed in 0.130222 secs); 09 Sep 2005 20:47:26 -0000 X-Qmail-Scanner-Mail-From: tonix@interazioni.it via avsmtp.ufficiopostale.it X-Qmail-Scanner: 1.12 (Clear:. Processed in 0.130222 secs) Received: from unknown (HELO IATonino.interazioni.it) (tonix@interazioni.it@213.233.2.94) by relay.interazioni.net with SMTP; 9 Sep 2005 20:47:26 -0000 Message-Id: <6.2.3.4.0.20050909214532.053cd8b0@pop.ufficiopostale.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Fri, 09 Sep 2005 21:47:25 +0100 To: freebsd-scsi@FreeBSD.ORG From: "tonix (Antonio Nati)" In-Reply-To: <20050909135705.O84118@sasami.jurai.net> References: <6.2.3.4.0.20050901172618.0532ecb0@pop.ufficiopostale.it> <20050906084747.A84118@sasami.jurai.net> <6.2.3.4.0.20050907153854.04c36bc8@pop.ufficiopostale.it> <6.2.3.4.0.20050907163520.05554a30@pop.ufficiopostale.it> <6.2.3.4.0.20050907164953.0548c070@pop.ufficiopostale.it> <20050907133856.C84118@sasami.jurai.net> <6.2.3.4.0.20050909120032.053cc160@pop.ufficiopostale.it> <20050909135705.O84118@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: camcontrol and IDAD0 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, 09 Sep 2005 20:47:32 -0000 At 18.58 09/09/2005, Matthew N. Dodd wrote: >On Fri, 9 Sep 2005, tonix (Antonio Nati) wrote: >>Finally, these controllers seems to be unusable in a production >>environment with FreeBSD. > >I don't think anyone has really tested rebuilding a volume while the >system is running. > >I'd be interested in the results of changing the definition of >IDA_QCB_MAX from 256 to 128. > >See sys/dev/ida/idavar.h: > > #define IDA_QCB_MAX 256 Great! You will be happy to know that the same small test suite that always hang up before, with this "128" value has never hang! On Monday I'll do heavier tests. Do you want me to try other? Thanks, Tonino >-- >10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-scsi@FreeBSD.ORG Sat Sep 10 03:58:13 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D27116A41F; Sat, 10 Sep 2005 03:58:13 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C358543D45; Sat, 10 Sep 2005 03:58:12 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j8A3w61t010761; Fri, 9 Sep 2005 22:58:06 -0500 (CDT) (envelope-from dan) Date: Fri, 9 Sep 2005 22:58:06 -0500 From: Dan Nelson To: Danny Howard Message-ID: <20050910035805.GH84582@dan.emsphone.com> References: <20050909185935.GI31865@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050909185935.GI31865@ratchet.nebcorp.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.10i Cc: freebsd-scsi@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Fibre Channel disks to two Systems? 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, 10 Sep 2005 03:58:13 -0000 In the last episode (Sep 09), Danny Howard said: > As I understand it, I can have an FC loop with one or more drives, > connected to two servers, and either server can talk to one or the > other drives exclusively. My QUESTION is: how is the arbitration > done in FreeBSD? You run camcontrol on either server and activate / > deactivate drives in the loop? Easiest way is with something like ports/sysutils/heartbeat. No device locking is needed. Have the start script do a quick fsck, mount the device, and start your server processes (or if pgsql can use raw disk devices like Oracle, skip the fsck and mount steps). -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-scsi@FreeBSD.ORG Sat Sep 10 08:39:13 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3A1416A41F; Sat, 10 Sep 2005 08:39:13 +0000 (GMT) (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 D113C43D58; Sat, 10 Sep 2005 08:39:12 +0000 (GMT) (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 1EE0tD-000IXW-4V; Sat, 10 Sep 2005 11:39:11 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Danny Howard In-reply-to: Your message of Fri, 9 Sep 2005 11:59:35 -0700 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Sep 2005 11:39:11 +0300 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Fibre Channel disks to two Systems? 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, 10 Sep 2005 08:39:13 -0000 hi danny you are asking too many questions :-), but w/r to netapp: same computer, 1gbE, NFS is about 50% slower than FC. btw, iSCSI (still beta) is only slightly faster than NFS (note NFS is UDP, iSCSI is TCP). as to reliability, the netapp is worth avery penny (actualy K$ :-), had only one major breakdown in over 10 years. for backup, concider (depends on the size of your database), copying the WAL to the backup host/disc, and running it at some interval to update the backup. and another thing, from experiance, disks break more often than cpus, so offloading the db might give you only 'some' backup. danny > [NOTE: If posting followup, please mind the > cross-post to -questions and -scsi.] > > Hello, > > We host our PostgreSQL database on FreeBSD. Until now, we have just > built the beefiest DB server we can spec, and then dump the data every > thirty minutes to a backup DB server, so if the primary DB server fails, > we load the database on the backup and fail over to the backup server. > > But I'd rather offload the disk to an external storage device, then I > can have two identical DB servers, and if one fails, I swap the disks > over to the other DB server, mount the filesystem, possibly run data > consistency checks, and proceed from there. > > >From my research, I am thus far most impressed with the SANbloc 2Gb, > which holds fourteen FC drives in a 3U rackmount. It can be had with > redundant RAID controllers, or as a JBOD. There are similar products > from other vendors as well. > > I could concievably do the RAID in software by running a gstripe across a > set of gmirrors. > > As I understand it, I can have an FC loop with one or more drives, > connected to two servers, and either server can talk to one or the other > drives exclusively. My QUESTION is: how is the arbitration done in > FreeBSD? You run camcontrol on either server and activate / deactivate > drives in the loop? > > What happens if say, the primary server locks up in some weird manner? > Can it block the backup server from talking to the drives? (We can > always have a NOC tech turn off a badly failed primary database, and > power-cycle the disk array, if needed ...) > > A really far-out idea I had was that with fourteen drive bays I could > have two hot spares, and then set up a stripe across four mirrored pairs > (4x2 = 8-disk RAID10) and then with the remaining four drives assign > each to be a third component of the gmirrored pairs, let the gmirrors > sync up, then detach those drives from the gmirrors, mount them on the > backup database, gstripe those containers together, and have a > point-in-time "snapshot" of the drive array that could be mounted on the > backup server, from which I could run database dumps, or conduct > failover tests, etc. (I could kick this around -geom. :) > > Uhmmm, has anyone done similar? Suggestions? Feedback? Advice? > > Or, should I try to get a NetApp, or similar device, even though FreeBSD > does not support iSCSI, because NFS performance over GigE may still beat > FC? > > Also, does anyone have a FreeBSD-friendly storage systems integrator or > other vendor they can reccomend, particularly one near the San Francisco > area? I keep contacting various vendors who then fail to get back to > me. :( > > Thanks for all feedback and suggestions! > > Sincerely, > -danny > > -- > http://dannyman.toldme.com/ > _______________________________________________ > 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" >