From owner-freebsd-usb@FreeBSD.ORG Sun Nov 27 06:30:11 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 86291106566B for ; Sun, 27 Nov 2011 06:30:11 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id D38428FC15 for ; Sun, 27 Nov 2011 06:30:10 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id pAR61lAr000692 for ; Sat, 26 Nov 2011 23:01:50 -0700 From: Erich Dollansky To: freebsd-usb@freebsd.org Date: Sun, 27 Nov 2011 13:01:43 +0700 User-Agent: KMail/1.13.7 (FreeBSD/8.2-STABLE; KDE/4.6.5; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201111271301.44065.erichfreebsdlist@ovitrap.com> Subject: 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 06:30:11 -0000 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 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. Erich