From owner-freebsd-usb@FreeBSD.ORG Sun Nov 27 13:49:52 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 99E59106564A for ; Sun, 27 Nov 2011 13:49:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 06E2C8FC0C for ; Sun, 27 Nov 2011 13:49:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 208095743; Sun, 27 Nov 2011 14:49:49 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 27 Nov 2011 14:47:10 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201111271301.44065.erichfreebsdlist@ovitrap.com> In-Reply-To: <201111271301.44065.erichfreebsdlist@ovitrap.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-1" Content-Transfer-Encoding: 7bit Message-Id: <201111271447.10218.hselasky@c2i.net> Cc: Subject: Re: Freeze while USB hard disk died while calling umount 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: Sun, 27 Nov 2011 13:49:52 -0000 On Sunday 27 November 2011 07:01:43 Erich Dollansky wrote: > Hi, > > I think that the following is just a note for the developers working on the > USB section dealing with hard disks. > > I just have had a total freeze of a FreeBSD machine running on 8.2 from > yesterday. > > How it happened: > > I got an old backup disk back. It was not used for more than a year. I > plugged into the usual USB port and ran the backup script. It seemed to > work but gave soon errors like this: > > Nov 27 12:07:28 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=37180145664, length=16384)]error > = 5 Nov 27 12:07:28 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=577945600, length=16384)]error = > 5 Nov 27 12:07:28 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=770588672, length=16384)]error = > 5 Nov 27 12:07:31 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=770588672, length=16384)]error = > 5 Nov 27 12:07:33 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583558144, length=16384)]error > = 5 Nov 27 12:07:33 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54524133376, length=16384)]error > = 5 Nov 27 12:07:33 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583541760, length=16384)]error > = 5 Nov 27 12:07:36 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583541760, length=16384)]error > = 5 Nov 27 12:07:36 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583558144, length=16384)]error > = 5 Nov 27 12:07:36 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54524133376, length=16384)]error > = 5 Nov 27 12:07:38 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583541760, length=16384)]error > = 5 Nov 27 12:07:38 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583558144, length=16384)]error > = 5 Nov 27 12:07:38 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54524133376, length=16384)]error > = 5 Nov 27 12:07:40 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583541760, length=16384)]error > = 5 Nov 27 12:07:40 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54583558144, length=16384)]error > = 5 Nov 27 12:07:40 AMD620 kernel: > g_vfs_done():ufs/USB80GBDisk[WRITE(offset=54524133376, length=16384)]error > = 5 > > After I noticed the problems I interrupted the backup program and tried to > un-mount the disk. umount was successful but never returned to the prompt. > > A check with mount in a second console showed that the disk was not mounted > anymore. > > I was then interrupted. When I came back to the machine, the machine was > totally frozen. umount did still not return to the prompt. A telnet from a > second machine did not work. No lights were blinking anymore. > > I restarted the machine afterwards. > > Nov 27 12:27:13 AMD620 syslogd: kernel boot file is /boot/kernel/kernel > Nov 27 12:27:13 AMD620 kernel: Copyright (c) 1992-2011 The FreeBSD Project. > Nov 27 12:27:13 AMD620 kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, > 1989, 1991, 1992, 1993, 1994 Nov 27 12:27:13 AMD620 kernel: The Regents of > the University of California. All rights reserved. Nov 27 12:27:13 AMD620 > kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Nov > 27 12:27:13 AMD620 kernel: FreeBSD 8.2-STABLE #18: Sat Nov 26 10:22:39 WIT > 2011 Hi, > I know that this is not really helpful information for locating an error. > You might just take it as an hint that the USB stack is not perfect yet. Thanks for your report. The problem is most likely not in the USB stack. Try looking at GEOM (know to freeze while probing devices) or the file system code. --HPS