From owner-freebsd-stable@FreeBSD.ORG Sat Aug 20 18:16:00 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 BA4FA1065670 for ; Sat, 20 Aug 2011 18:16:00 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8ACBE8FC1B for ; Sat, 20 Aug 2011 18:16:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id B740750A09; Sat, 20 Aug 2011 18:15:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNGCgOb+uOFQ; Sat, 20 Aug 2011 19:15:59 +0100 (BST) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 3D67E50A06 ; Sat, 20 Aug 2011 18:15:59 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Dan Langille In-Reply-To: <4E4FF4D6.1090305@os2.kiev.ua> Date: Sat, 20 Aug 2011 14:15:57 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <2AB04C16-FF20-467E-9508-AF35CB6323BC@langille.org> 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> To: Alex Samorukov X-Mailer: Apple Mail (2.1084) 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 18:16:00 -0000 On Aug 20, 2011, at 1:54 PM, Alex Samorukov wrote: >> [root@bast:~] # dd of=3D/dev/null if=3D/dev/ad2 bs=3D1m conv=3Dnoerror >> 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:~] # >>=20 >> That seems to indicate two problems. Are those the values I should = be using >> with dd? >>=20 >=20 > 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. Already done: http://beta.freebsddiary.org/smart-fixing-bad-sector.php Search for 786767 Or did you mean something else? That doesn't seem to map to a particular sector though... I ran it for a = while... # time dd of=3D/dev/null if=3D/dev/ad2 bs=3D512 iseek=3D786767=20 ^C4301949+0 records in 4301949+0 records out 2202597888 bytes transferred in 780.245828 secs (2822954 bytes/sec) real 13m0.256s user 0m22.087s sys 3m24.215s > 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. It is running, but with nothing custom in the .conf file. --=20 Dan Langille - http://langille.org