From owner-freebsd-current@FreeBSD.ORG Mon Mar 8 11:50:55 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4BD61065673 for ; Mon, 8 Mar 2010 11:50:55 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from redwerk.com (redwerk.com [89.105.196.9]) by mx1.freebsd.org (Postfix) with ESMTP id 950EB8FC2D for ; Mon, 8 Mar 2010 11:50:55 +0000 (UTC) Received: from [192.168.250.5] (helo=office.redwerk.com) by redwerk.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1NobU5-0005Nk-HG for freebsd-current@freebsd.org; Mon, 08 Mar 2010 12:50:53 +0100 Received: from bofh by office.redwerk.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NobU4-0008Ir-NN for freebsd-current@freebsd.org; Mon, 08 Mar 2010 13:50:52 +0200 Date: Mon, 8 Mar 2010 13:50:52 +0200 From: Eugene Dzhurinsky To: freebsd-current@freebsd.org Message-ID: <20100308115052.GA31896@office.redwerk.com> Mail-Followup-To: freebsd-current@freebsd.org References: <20100308102918.GA5485@localhost> <4B94DDC8.5080008@quip.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <4B94DDC8.5080008@quip.cz> Subject: Re: A tool for remapping bad sectors in CURRENT? 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, 08 Mar 2010 11:50:55 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 08, 2010 at 12:21:44PM +0100, Miroslav Lachman wrote: > Eugeny N Dzhurinsky wrote: > We have this problem from time to time on bunch of machines. As we are=20 > using gmirror, the easiest way is to force re-synchronization (rewrite)= =20 > of the whole drive. The problem is when there are Pending unreadable=20 > sectors on both drives - it ends up with read error and some file(s) are= =20 > corrupted, but there is no easy way (on FreeBSD) to find what file. >=20 > I tried it in the past with fsdb / findblk, but it does not work as I=20 > expect or I do not fully understand the needed calculations with slices= =20 > + partitions offsets / LBAs and right meaning of the term "block". It=20 > seems there are several meaning in different contexts. >=20 > It would be nice if somebody with enough FS / GEOM knowledge can write=20 > some HowTo or shell script to do the calculations and operations to find= =20 > file containing bad sector(s) and put it in FAQ, Handbook, or Wiki. Miroslav, thank you for the suggestion - but I am not using gmirror, that H= DD is the one on my laptop. However suggestions about using dd to write someth= ing into bad block to force IDE controller do it's service stuff about remapping seems did the trick. And I was able to not calculate LBA but use it as block offset, which seemed to be correct way :) --=20 Eugene N Dzhurinsky --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuU5JsACgkQy/i/DoZLbHyZZQCeNTq1Lxky1KI+QOrgWoPuoDLC 8N4AoJ/4Fo/wjD9cgEKumhkQvGRz0OzA =+5ID -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--