From owner-freebsd-fs@FreeBSD.ORG Mon Jan 12 02:59:59 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66935106566B for ; Mon, 12 Jan 2009 02:59:59 +0000 (UTC) (envelope-from gtodd@bellanet.org) Received: from smtp123.rog.mail.re2.yahoo.com (smtp123.rog.mail.re2.yahoo.com [206.190.53.28]) by mx1.freebsd.org (Postfix) with SMTP id EBE5A8FC17 for ; Mon, 12 Jan 2009 02:59:58 +0000 (UTC) (envelope-from gtodd@bellanet.org) Received: (qmail 74980 invoked from network); 12 Jan 2009 02:33:17 -0000 Received: from unknown (HELO wawanesa.iciti.ca) (gtodd@99.246.4.156 with login) by smtp123.rog.mail.re2.yahoo.com with SMTP; 12 Jan 2009 02:33:17 -0000 X-YMail-OSG: vRzcrfgVM1lmL5xxL3.zBkEKqy2daZsFHSQzxYtxKzBDhr4UaOM6pBKvDI6G6kaIAw-- X-Yahoo-Newman-Property: ymail-3 Received: from wawanesa.iciti.ca (wawanesa.iciti.ca [192.168.2.4]) by wawanesa.iciti.ca (Postfix) with ESMTP id EFCBB99 for ; Sun, 11 Jan 2009 21:33:31 -0500 (EST) Message-ID: <496AABFB.4060404@bellanet.org> Date: Sun, 11 Jan 2009 21:33:31 -0500 From: Graham Todd User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: RE: iscsi client hangs performing I/O on a dead target X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 02:59:59 -0000 Hi, I believe the FreeBSD foundation is supporting development that may help with this (the "Safe Removal of Active Disk Devices" project)? The focus is on USB devices since, as noted in the newsletter, "[t]he removable USB disk causing a crash turns out to be our #1 reported bug." :-) Hopefully the work can be useful in a generic way since panics induced by disappearing USB devices are easier to control than those caused by disappearing network storage. cheers, From: http://www.freebsdfoundation.org/press/2008Dec-newsletter.shtm ... [snip] ... The first project to get off the ground is to make FreeBSD tolerate the removal of active disk devices, such as when a USB flash device with a mounted filesystems is physically detached by a user. Currently the system may panic in this situation. The work involves adding proper reference counting to strategic portions of the kernel and modifying filesystems to properly handle "device lost" errors. Edward Tomasz Napierala is the developer working on this project. ...