From owner-freebsd-stable@FreeBSD.ORG Sat Aug 20 17:54:49 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 598F0106566C for ; Sat, 20 Aug 2011 17:54:49 +0000 (UTC) (envelope-from ml@os2.kiev.ua) Received: from s1.sdv.com.ua (s1.sdv.com.ua [77.120.97.61]) by mx1.freebsd.org (Postfix) with ESMTP id 14C9F8FC1A for ; Sat, 20 Aug 2011 17:54:48 +0000 (UTC) Received: from 90-105-243-80.cust.centrio.cz ([80.243.105.90] helo=[192.168.100.107]) by s1.sdv.com.ua with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Qupkn-0007Nu-BH; Sat, 20 Aug 2011 20:54:43 +0300 Message-ID: <4E4FF4D6.1090305@os2.kiev.ua> Date: Sat, 20 Aug 2011 19:54:30 +0200 From: Alex Samorukov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dan Langille 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> In-Reply-To: <4774BC00-F32B-4BF4-A955-3728F885CAA1@langille.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Score: -1.0 Cc: freebsd-stable@freebsd.org, Jeremy Chadwick 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 17:54:49 -0000 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. 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. > [root@bast:~] # dd of=/dev/null if=/dev/ad2 bs=1m conv=noerror > dd: /dev/ad2: Input/output error > 2717+0 records in > 2717+0 records out > 2848980992 bytes transferred in 127.128503 secs (22410246 bytes/sec) > dd: /dev/ad2: Input/output error > 38170+1 records in > 38170+1 records out > 40025063424 bytes transferred in 1544.671423 secs (25911701 bytes/sec) > [root@bast:~] # > > That seems to indicate two problems. Are those the values I should be using > with dd? >