From owner-freebsd-current@FreeBSD.ORG Mon Aug 21 00:22:10 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5400A16A4DA; Mon, 21 Aug 2006 00:22:10 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from customer-domains.icp-qv1-irony8.iinet.net.au (customer-domains.icp-qv1-irony8.iinet.net.au [203.59.1.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0242643D45; Mon, 21 Aug 2006 00:22:08 +0000 (GMT) (envelope-from fbsd-current@mawer.org) Received: from 203-206-173-235.perm.iinet.net.au (HELO [127.0.0.1]) ([203.206.173.235]) by customer-domains.icp-qv1-irony8.iinet.net.au with ESMTP; 21 Aug 2006 08:22:07 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.08,149,1154880000"; d="scan'208"; a="442553457:sNHT299754984" Message-ID: <44E8FC8F.3010801@mawer.org> Date: Mon, 21 Aug 2006 10:21:35 +1000 From: Antony Mawer User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Daniel O'Connor References: <44E77EF7.6070004@ngo.org.uk> <200608201227.34510.doconnor@gsoft.com.au> <44E817A6.30405@FreeBSD.org> <200608201922.26864.doconnor@gsoft.com.au> In-Reply-To: <200608201922.26864.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Doug Barton , Nik Clayton , freebsd-current@freebsd.org Subject: Re: Avoiding bad sectors? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 00:22:10 -0000 On 20/08/2006 7:52 PM, Daniel O'Connor wrote: > On Sunday 20 August 2006 17:34, Doug Barton wrote: >> Daniel O'Connor wrote: >>> The disk should remap the sector, if it refuses to write to the sector >>> because it's out of remappable sectors >> You forgot to add, "and then immediately go out and buy a new disk because >> that one is toast." :) > > Heh, well not necessarily although I personally would be shopping.. > > If the disk gets a dud sector and can't read it it won't remap it until you > write to it. (I've seen this happen and someone else posted about it too) I brought this up on -stable the other day... see the thread titled "The need for initialising disks before use?" (17/08/06). I've seen numerously "young" disks showing up plenty of read errors (which smartctl seems to confirm are coming from the disk, and not driver etc related), and would love to see some way to easily "fix" the problem... these are all < 6mth old SATA drives... Unfortunately dd'ing parts of an existing filesystem are a little more complicated than when dealing with a swap partition :-( -Antony