From owner-freebsd-questions Sun May 19 5:22:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id 1D63937B40D for ; Sun, 19 May 2002 05:22:30 -0700 (PDT) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com; Sun, 19 May 2002 05:22:29 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Sun, 19 May 2002 05:22:30 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Disk bad sector question Reply-To: pjklist@ekahuna.com Cc: Axel Scheepers In-reply-to: <20020519125727.B64761@mars.thuis> References: <20020519030538086.AAA385@empty1.ekahuna.com@pc02.ekahuna.com>; from pjklist@ekahuna.com on Sat, May 18, 2002 at 08:05:38PM -0700 X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020519122229533.AAA405@empty1.ekahuna.com@pc02.ekahuna.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 19 May 2002, at 12:57, Axel Scheepers boldly uttered: > On Sat, May 18, 2002 at 08:05:38PM -0700, Philip J. Koenig wrote: > > Recently I started getting some read errors on some sectors on a SCSI > > disk running 4.6-PRE. > > > > Indeed the host adapter BIOS utility shows some bad sectors, but > > before I remap them I'd like to know what file(s) are using these > > sectors. Is there an easy way to do this? I tried using dd to copy > > the sectors and look at them but the data wasn't recognizable to me. > > (it's in the /var filesystem) > > > > Thx, > > > > Phil > > Hi Philip, > > Normally the data will be mapped to another partion of the disk and the > defective sectors will be added to the defective grow list. > You might take a look at 'man camcontrol' to get some more control > about your scsi devices, and to check those bad sector tables. > Be very carefull using that, though, inproper usage can destroy your > data. Yep, I already used camcontrol to view the original and grown defect lists after seeing these errors. And I know I can try copying data to the sectors in question and force them to be remapped, etc. But I want to take a look at the affected files first and recover as much as I can from them, before I do that. I didn't see how camcontrol would help in that respect. I guess I'd be rather surprised if there is no way to figure out which sectors are assigned to which inodes or files.. -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message