From nobody@FreeBSD.org Sun Oct 12 23:10:04 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B304106569A for ; Sun, 12 Oct 2008 23:10:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id EB4298FC14 for ; Sun, 12 Oct 2008 23:10:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9CNA3AN022777 for ; Sun, 12 Oct 2008 23:10:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9CNA3ab022775; Sun, 12 Oct 2008 23:10:03 GMT (envelope-from nobody) Message-Id: <200810122310.m9CNA3ab022775@www.freebsd.org> Date: Sun, 12 Oct 2008 23:10:03 GMT From: Mark Jacobs To: freebsd-gnats-submit@FreeBSD.org Subject: Detach of External SATA drive X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 128035 >Category: kern >Synopsis: [ata] unexpexted detach of external SATA drive >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 12 23:20:00 UTC 2008 >Closed-Date: >Last-Modified: Mon Oct 13 00:25:31 UTC 2008 >Originator: Mark Jacobs >Release: FreeBSD 6.4-PRERELEASE #0: Wed Oct 8 21:57:31 EDT 2008 >Organization: >Environment: FreeBSD server.jacobs.org 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #0: Wed Oct 8 21:57:31 EDT 2008 root@server.jacobs.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: I have a Lacie 1tb External Harddrive attached via its ESATA interface. When I attempt to access it in a high i/o mode of operation (rsync read or write via an ssh connection) I receive the following messages in the log. FreeBSD sees the drive as; ad4: 953869MB at ata2-master SATA150 Oct 12 18:23:56 server kernel: ad4: FAILURE - device detached Oct 12 18:23:56 server kernel: subdisk4: detached Oct 12 18:23:56 server kernel: ad4: detached Oct 12 18:23:56 server kernel: g_vfs_done():ad4s1a[WRITE(offset=144404217856, length=4096)]error = 6 Oct 12 18:23:56 server kernel: g_vfs_done():ad4s1a[WRITE(offset=144326606848, length=16384)]error = 6 Oct 12 18:23:56 server kernel: g_vfs_done():ad4s1a[WRITE(offset=144404217856, length=4096)]error = 6 Oct 12 18:23:56 server kernel: g_vfs_done():ad4s1a[WRITE(offset=144326606848, length=16384)]error = 6 Lots more g_vfs_done messages follow and eventually the server reboots itself. I am attaching this drive to this SATA controller; atapci0: port 0xdda0-0xdda7,0xdd98-0xdd9b,0xdda8-0xddaf,0xdd9c-0xdd9f,0xddb0-0xddbf mem 0xfe9dee00-0xfe9defff irq 22 at device 1.0 on pci2 When I used the drive's USB interface I experienced no problems with RSYNC. I'm also not seeing the problem with more normal I/O rates. >How-To-Repeat: Attach LaCie drive to an ESATA interface and flood the device with I/O operations. >Fix: >Release-Note: >Audit-Trail: >Unformatted: