Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Nov 2011 14:47:10 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: Freeze while USB hard disk died while calling umount
Message-ID:  <201111271447.10218.hselasky@c2i.net>
In-Reply-To: <201111271301.44065.erichfreebsdlist@ovitrap.com>
References:  <201111271301.44065.erichfreebsdlist@ovitrap.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111271447.10218.hselasky>