From owner-freebsd-usb@FreeBSD.ORG Mon Jan 24 09:34:02 2011 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 46945106566C for ; Mon, 24 Jan 2011 09:34:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id C8F678FC08 for ; Mon, 24 Jan 2011 09:34:01 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=Vlw5OJcoxCC473z5moizI40ESYe+BpcMN2hU0iQoJwI= c=1 sm=1 a=P5NE3bt0QbgA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6VzlcDemQHa2h7P_gzcA:9 a=p5QnFmPc-T0awdpgg7Bn3EyFMkIA:4 a=PUjeQqilurYA:10 a=_GDCB4lJuz3jrGs4:21 a=P2Fn2vW8b-BM6lhF:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 78839554; Mon, 24 Jan 2011 10:33:59 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 24 Jan 2011 10:34:07 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4D3CAE4E.2040407@gmail.com> <5253D900-7A8F-43D7-8E86-88C0A14EF0B8@gsoft.com.au> <4D3D3FC5.9010205@gmail.com> In-Reply-To: <4D3D3FC5.9010205@gmail.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201101241034.07591.hselasky@c2i.net> Cc: Subject: Re: System lockups caused by USB external HDD 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: Mon, 24 Jan 2011 09:34:02 -0000 On Monday 24 January 2011 10:00:53 CDP wrote: > On 01/24/11 01:56, Daniel O'Connor wrote: > > On 24/01/2011, at 9:10, CDP wrote: > >> g_vfs_done():da0s2[WRITE(offset=xxxxxxxxxxxx, length=16384)]error = 5 > >> [several more lines similar to the above] > >> panic: softdep_move_dependencies: need merge code > >> cpuid = 0 > >> KDB: stack backtrace: > >> #0 0x... at kdb_backtrace+0x5e > >> #1 0x... at panic+0x182 > > > > It looks like the disk is dying, or the FS is corrupt (the former might > > cause the later). > > > > Can you run smartctl on the disk? Unfortunately a lot of enclosures > > reject SMART commands so you might not be able to :( > > I have attached the output of smartctl -d sat -a /dev/da0. I didn't yet > run a SMART long test for the simple reason that the disk is going into > sleep mode and interrupts it. Haven't bothered to keep it alive for a > long test but I might just do that. > > Although, I doubt it's a disk failure, since I do backups on it without > problems by using FreeBSD 7.3, on the same space where FreeBSD 8.x > fails. And I am talking about over 150GB of data in one run, while > 8.2-RC2 crashes after 5-10GB. I have experienced disk failure in the > past, on SATA, and a few read/write errors never caused a system lockup. > > My feeling is that enough traffic on USB causes the problem, and that > this problem is only present in the new USB stack. > Unfortunately downgrading to 7.x is not an option because there are > things that won't work on this notebook. If you run a simple test like this: dd if=/dev/da0 of=/dev/null bs=65536 dd if=/dev/da0 of=/dev/null bs=16384 Do you then see any errors? Do you have a spare USB memory stick which you could run similar write tests on? --HPS