From: Bart Van Assche Subject: Re: SRPT and SCST Date: Fri, 6 Nov 2009 15:53:43 +0100 Message-ID: References: <3142CEFB1403044F9954E2DF6C85660FBB34BD@orca.penguincomputing.com> <654FA770A883FB43BAF3CB0B1E1DAC8C01C8C4DD@orca.penguincomputing.com> <4AF29201.6000606@penguincomputing.com> <4AF2D2B8.5080304@vlnb.net> <654FA770A883FB43BAF3CB0B1E1DAC8C01C8C4F9@orca.penguincomputing.com> <4AF40FBC.9080004@vlnb.net> <654FA770A883FB43BAF3CB0B1E1DAC8C01C8C4FA@orca.penguincomputing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <654FA770A883FB43BAF3CB0B1E1DAC8C01C8C4FA-/U8SqUwOx9/OOpeOfUw7maQk6oIRg43YAL8bYrjMMd8@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Philip Pokorny Cc: Vladislav Bolkhovitin , scst-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Arend Dittmer , Vu Pham List-Id: linux-rdma@vger.kernel.org On Fri, Nov 6, 2009 at 3:39 PM, Philip Pokorny wrote: > > >> This tells me that there is a pending I/O waiting to be completed = but it > >> seems to have been lost on the server, because this is taking much= too > >> long.=A0 There are 7 seconds "between" each line of output above s= o that's > >> almost 30 seconds of output with *no* change in the I/O status. > >> > >> The "gzip | tar -x" I was running is "hung" > > Upon further investigation, I found that the clients had actually abo= rted SCSI commands that took too long: > > sd 7:0:0:1: timing out command, waited 180s > sd 7:0:0:1: SCSI error: return code =3D 0x06000000 > end_request: I/O error, dev sdb, sector 60377910 > Buffer I/O error on device sdb1, logical block 30188699 > lost page write due to I/O error on sdb1 > sd 7:0:0:1: timing out command, waited 180s > sd 7:0:0:1: SCSI error: return code =3D 0x06000000 > end_request: I/O error, dev sdb, sector 186810934 > EXT3-fs error (device sdb1): ext3_get_inode_loc: unable to read inode= block - inode=3D11675841, block=3D93405211 > Aborting journal on device sdb1. > > I should point out that the IB_SRP CLIENT we are using is from OFED 1= =2E3.2 > > [root@head0 ~]# modinfo ib_srp > filename:=A0=A0=A0=A0=A0=A0 /lib/modules/2.6.18-128.1.1.el5.530g0000/= kernel/drivers/infiniband/ulp/srp/ib_srp.ko > license:=A0=A0=A0=A0=A0=A0=A0 Dual BSD/GPL > description:=A0=A0=A0 InfiniBand SCSI RDMA Protocol initiator v0.2 (N= ovember 1, 2005) > > These are Red Hat 5 clients and we can upgrade to Red Hat 5.4 with th= e Red Hat IB_SRP, but it may be the same code.=A0 Anything else will be= more work. It might be a good idea to repeat the test with the SRP initiator included with RHEL 5 instead of the OFED SRP initiator. At least one bug that is present in the OFED SRP initiator is not present in the RHEL 5 SRP initiator. See also https://bugs.openfabrics.org/show_bug.cgi?id=3D1745 for an example. > > Can you please post the SCST target logs available for the above sc= enario ? > > Yes, and please make sure you are running the debug build. > > =3D=3D=3D=3D=3D > Sure.=A0 We *are* running the CONFIG_SCST_DEBUG build. > > How do I collect the target logs?=A0 I don't see anything obvious in = /proc/scsi_tgt/... The following commands will enable lots of additional tracing information (probably way too much): cat /proc/scsi_tgt/help echo all >/proc/scsi_tgt/trace_level echo all >/proc/scsi_tgt/vdisk/trace_level echo all >/proc/scsi_tgt/ib_srpt/trace_level Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html