From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 19:38:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DDCE16A4CF; Fri, 6 Aug 2004 19:38:46 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EDCC43D67; Fri, 6 Aug 2004 19:38:45 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i76JciPK026591; Fri, 6 Aug 2004 14:38:44 -0500 (CDT) (envelope-from dan) Date: Fri, 6 Aug 2004 14:38:44 -0500 From: Dan Nelson To: Gary Corcoran Message-ID: <20040806193843.GB11465@dan.emsphone.com> References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> <16658.61027.827002.280086@guru.mired.org> <4113D950.8000502@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4113D950.8000502@comcast.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 19:38:46 -0000 In the last episode (Aug 06), Gary Corcoran said: > Mike Meyer wrote: > > >Modern drives deal with bad block substitution all by themselves. > > Umm - not quite, right? That is, if a block "goes bad" and you get a > read error, the drive isn't going to do any "substituting" at that > point. You'll just continue to get the read error if you try to > access (read) that block. It's only when you allow another *write* > to that block (e.g. by deleting the original file and writing new > files) that the drive will automatically substitute a spare block for > the one that went bad. SCSI drives, at least, may do automatic reallocation on both reads and writes ( camcontrol mode da0 -m 1, the ARRE and AWRE flags ). If the drive had to reread the block or had to use ECC to recover data, AND the entire block was recovered, it will relocate the data if ARRE is set. -- Dan Nelson dnelson@allantgroup.com