From owner-freebsd-questions@FreeBSD.ORG Thu Nov 11 01:07:49 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDDE516A4CE for ; Thu, 11 Nov 2004 01:07:49 +0000 (GMT) Received: from wrongcrowd.com (dsl231-043-085.sea1.dsl.speakeasy.net [216.231.43.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5164843D2D for ; Thu, 11 Nov 2004 01:07:49 +0000 (GMT) (envelope-from matt@wrongcrowd.com) Received: from [192.168.1.95] (port=4346 helo=tbird.wrongcrowd.com) by wrongcrowd.com with esmtp (Exim 4.34 (FreeBSD)) id 1CS3Pj-00037L-7M; Wed, 10 Nov 2004 17:06:18 -0800 Message-Id: <6.1.2.0.2.20041110165617.0ac48840@wrongcrowd.com> X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Wed, 10 Nov 2004 17:07:42 -0800 To: freebsd-questions@freebsd.org From: Matt Staroscik In-Reply-To: <20041110211807.541E016A4F6@hub.freebsd.org> References: <20041110211807.541E016A4F6@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Score: 0.0 (/) cc: Jerry McAllister Subject: Fixing bad blocks (was: Re: Do you need to dismount /usr to dump it?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 01:07:49 -0000 At 01:18 PM 11/10/2004, you wrote: >Your problem seems to be bad blocks in the /usr file system. >That has nothing to do with dump. It is a bad spot on the disk. >fsck will not fix that sort of thing. If you can figure out >what files sit on the bad spots, you might be able to delete them >and then do your dump. Then you should immediately replace the >disk. I tarred up all of /usr to another filesystem, and I did see an error reading a core dump file from squid. I deleted the file and I was then able to dump /usr successfully. So that's good news. However, I apparently need to fix the bad blocks before my RAID will rebuild. (I had hoped it would do file-wise copies, but it looks like it does lower level reading.) It is my understanding that an IDE disk will only remap a bad block on a write, not just a read. My plan is to load up /usr with enough files to fill it up; this should write to the bad blocks and force them to be remapped to spares. I am hopeful that the drive is still healthy, as it only shows 2 SMART errors. (Can a core dump cause a bad block or two?) (Of course, the 3ware twe driver may not allow rebuilds yet on the 7000 cards, so I may have to try a Knoppix CD too.) Thanks to all for the input. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Matt Staroscik * KF6IYW * mstar@speakeasy.net * http://wrongcrowd.com "The combined weight of the horrors I have authored wrought would crush your carbon hearts into perfect diamonds of terror." -- Leonid Kasparov Destroyovitch