From owner-freebsd-stable@FreeBSD.ORG Sat Aug 20 18:35:01 2011 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 329DB1065677 for ; Sat, 20 Aug 2011 18:35:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta04.emeryville.ca.mail.comcast.net (qmta04.emeryville.ca.mail.comcast.net [76.96.30.40]) by mx1.freebsd.org (Postfix) with ESMTP id 14B7A8FC14 for ; Sat, 20 Aug 2011 18:35:00 +0000 (UTC) Received: from omta09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by qmta04.emeryville.ca.mail.comcast.net with comcast id NiZg1h0020S2fkCA4iawSK; Sat, 20 Aug 2011 18:34:56 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta09.emeryville.ca.mail.comcast.net with comcast id Niar1h00Z1t3BNj8ViasCe; Sat, 20 Aug 2011 18:34:54 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id C8CCC102C1A; Sat, 20 Aug 2011 11:34:56 -0700 (PDT) Date: Sat, 20 Aug 2011 11:34:56 -0700 From: Jeremy Chadwick To: Alex Samorukov Message-ID: <20110820183456.GA38317@icarus.home.lan> References: <1B4FC0D8-60E6-49DA-BC52-688052C4DA51@langille.org> <20110819232125.GA4965@icarus.home.lan> <20110820032438.GA21925@icarus.home.lan> <4774BC00-F32B-4BF4-A955-3728F885CAA1@langille.org> <4E4FF4D6.1090305@os2.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E4FF4D6.1090305@os2.kiev.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org, Dan Langille Subject: Re: bad sector in gmirror HDD 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, 20 Aug 2011 18:35:01 -0000 On Sat, Aug 20, 2011 at 07:54:30PM +0200, Alex Samorukov wrote: > You can run long self-test in smartmontools (-t long). Then you can > get failed sector number from the smartmontools (-l selftest) and > then you can use DD to write zero to the specific sector. This is inaccurate advice. I covered this in my reply already as well: http://lists.freebsd.org/pipermail/freebsd-stable/2011-August/063665.html Quote: "The SMART tests you did didn't really amount to anything; no surprise. short and long tests usually do not test the surface of the disk. There are some drives which do it on a long test, but as I said before, everything varies from drive to drive." TL;DR version: smartctl -t long != smartctl -t select. The OP's drive does not support selective scans (-t select), and long turned up nothing (no surprise there either). So, using dd to find the bad LBAs is the only choice he has. > Also i am highly recommending to setup smartd as daemon and to monitor > number of relocated sectors. If they will grow again - then it is a > good time to utilize this disk. You have to know what you're looking at and how to interpret the data smartd gives you for it to be useful. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |