Bug 128035

Summary: [ata] unexpexted detach of external SATA drive
Product: Base System Reporter: Mark Jacobs <jacobsm>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.4-PRERELEASE   
Hardware: Any   
OS: Any   

Description Mark Jacobs 2008-10-13 00:20:00 UTC
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 <Hitachi HDS721010KLA330 GKAOA70M> 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: <SiI SiI 3512 SATA150 controller> 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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:41 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped