From owner-freebsd-usb@FreeBSD.ORG Thu Sep 9 06:57:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FD9B1065695; Thu, 9 Sep 2010 06:57:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 80E758FC17; Thu, 9 Sep 2010 06:57:45 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=69M7SDRZ/3ZqjvOQolLkvw049hoMKehWXnTrnU8tixs= c=1 sm=1 a=y0JmmP_JomgA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=RZUZx5khAAAA:8 a=6I5d2MoRAAAA:8 a=g09wn4CP3X_gWSkkrXoA:9 a=78ChAAlm8BSlSWqgOiYA:7 a=YsUGyMTjqXLwjLo76ioP8ewtKzEA:4 a=PUjeQqilurYA:10 a=SV7veod9ZcQA:10 a=Epv78O3J94XV9K1D:21 a=Kz8N61K37L67kMQe:21 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 18803678; Thu, 09 Sep 2010 08:57:24 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Decibel!" Date: Thu, 9 Sep 2010 08:53:41 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100909023713.135C056560@noel.decibel.org> In-Reply-To: <20100909023713.135C056560@noel.decibel.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009090853.41382.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/150401: Errors from USB drives mixed between UFS and ZFS X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 06:57:47 -0000 On Monday 06 September 2010 05:33:09 Decibel! wrote: > >Number: 150401 > >Category: usb > >Synopsis: Errors from USB drives mixed between UFS and ZFS > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Sep 09 03:00:08 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Decibel! > >Release: FreeBSD 8.1-RELEASE amd64 > >Organization: > > >Environment: > System: FreeBSD noel.decibel.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Thu > Sep 2 19:38:40 CDT 2010 root@noel.decibel.org:/usr/obj/usr/src/sys/GENERIC > amd64 > > >Description: > I have a system with 3 USB drives: 2 are in a zpool mirror (though I've > seen the same behavior with them in a simple zpool stripe), one is > stand-alone UFS. > > I can hit either ZFS or the UFS drive hard (running bonnie++) and things > are fine. But as soon as I start hitting both of them, I start getting > errors: > > Sep 6 03:16:31 noel kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Sep 6 03:16:31 noel root: ZFS: vdev I/O failure, zpool=zsb path=/dev/da0 > offset=1145095418880 size=1024 error=5 (I'll get some number of the second > error, usually between 5 and 20 per incident). > > The frequency of these errors is dependent on workload. I've been rsyncing > some data at a rate of ~500kB/s (rsync --bwlimit=500) and that's > generating roughly 3 events per hour: > > Sep 6 00:36:00 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 01:37:11 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 01:38:25 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 01:40:02 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 01:41:03 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 01:41:34 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 02:18:27 noel kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Sep 6 02:37:36 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 02:42:30 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 03:13:30 noel kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Sep 6 03:15:38 noel kernel: (da1:umass-sim1:1:0:0): AutoSense failed > Sep 6 03:16:31 noel kernel: (da0:umass-sim0:0:0:0): AutoSense failed > > The errors are always on the ZFS drives (da0, da1); I haven't seen any on > the UFS drive. > > decibel@noel.2[22:32]~:15>sudo usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON ugen1.2: at usbus1, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON ugen1.3: at usbus1, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON ugen1.4: at > usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: Logitech> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > >How-To-Repeat: > Hopefully someone else can repeat this with a similar setup. > > >Fix: > >Release-Note: > >Audit-Trail: > > >Unformatted: > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" Hi, Try to enable quirks on your USB mass storage device, for example no synchronize cache. See man usbconfig and usbconfig -h and kldload usb_quirk.ko --HPS