From owner-freebsd-stable@FreeBSD.ORG Sat Feb 16 23:08:40 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4DCA16A419 for ; Sat, 16 Feb 2008 23:08:40 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3B02D13C43E for ; Sat, 16 Feb 2008 23:08:39 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so160356uge.37 for ; Sat, 16 Feb 2008 15:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BZ+fqz3ZtNVlfwqfRHeWg1Rn1k4SBAT8YPihXM02FCg=; b=QtE7mMA3UgVG4NAGL/OSthaLyVMNJQplZNxfchb4rUheSHSqz2LcVcrFg7FB586OArJw6Otx7TJr1UBrroz2/NMJ6j8yBVteFj2x8L0PXtUN/JaSMORlLmQMV49lzU5ZrQKgu9a4uRtKEPV3C1irb90TvYqGA3zvN12TMyOytAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qt4K9nrAUhNIlCiY3fcOkg/isSKdo7wYJXaWgRW/oDn5snbzeJSMHri9KLUTxYYsmuthCU53RUYHUtnSllK5Jh6FpFWVotDlxuBchmeIoWzAoGY3+zACfmem0HeTTMAn1HJxZHIqAkgLaPXosbmsI2UHBgAPilujlyqmo5Lbpg4= Received: by 10.67.116.6 with SMTP id t6mr1155707ugm.76.1203203318909; Sat, 16 Feb 2008 15:08:38 -0800 (PST) Received: by 10.67.95.3 with HTTP; Sat, 16 Feb 2008 15:08:38 -0800 (PST) Message-ID: Date: Sat, 16 Feb 2008 21:08:38 -0200 From: "Carlos A. M. dos Santos" To: freebsd-stable@freebsd.org In-Reply-To: <20080216210736.GA17517@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080216210736.GA17517@eos.sc1.parodius.com> Subject: Re: ATA -- erratic behaviour when removing disk X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2008 23:08:40 -0000 On Feb 16, 2008 7:07 PM, Jeremy Chadwick wrote: > Is anyone aware of the situation where FreeBSD behaves erratically when > a disk is physically removed without "atacontrol detach ataX" being run > prior to removal (at least on RELENG_7)? Yes, I have seen this since 4.5, IIRC. > Below are my notes from said situation. > > I can provide remote access to this machine (serial-level) to whoever > wants to hack on it. I can be available for disk removal/insertion as > well; just ask. > > Also FWIW: I also tested all this for comparison on Ubuntu Linux earlier > this morning. I was able to yank the disk in the middle of an I/O > operation, resulting in an immediate I/O error from dd. I took no > precautions prior to yanking the disk. Upon reinsertion, the system > found the disk and I could continue I/O operations on it as if it had > never been removed. Only reason I'm pointing this out is that it > confirms the issue isn't hardware or with vendor implementation, but > rather specific to the OS. Congratulations to the Linux folks. Or not, since this looks like a very risky behavior. Who warrants you that the *same* disk was plugged back? Blindly continuing to write could easily corrupt the contents of the second drive. > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > Hardware: > Supermicro SuperServer 5015M-T+B > Intel ICH7 > AHCI enabled (version 01.10), BIOS-based RAID disabled > ad4: 190782MB at ata2-master SATA150 > ad6: 190782MB at ata3-master SATA150 > > OS installed on /dev/ad4 and OS was booted with verbose logging enabled: > > FreeBSD 7.0-RC2 FreeBSD 7.0-RC2 #0: Fri Feb 8 00:09:57 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 [lengthy contents purposefully removed in the reply message] -- Carlos A. M. dos Santos