From owner-freebsd-hardware Sat Dec 23 23:15:27 2000 From owner-freebsd-hardware@FreeBSD.ORG Sat Dec 23 23:15:24 2000 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from Espresso.NEEBU.Net (espresso.neebu.net [208.178.117.2]) by hub.freebsd.org (Postfix) with SMTP id 153CE37B400; Sat, 23 Dec 2000 23:15:24 -0800 (PST) Received: from Espresso.NEEBU.Net (khuon@localhost) by Espresso.NEEBU.Net (8.10.2/8.10.2) with ESMTP id eBO7FDA10056; Sat, 23 Dec 2000 23:15:14 -0800 (PST) Message-Id: <200012240715.eBO7FDA10056@Espresso.NEEBU.Net> X-Exmh-Isig-Folder: inbox X-Exmh-Isig-CompType: repl From: "Jake Khuon" To: Bruce Evans Cc: Jake Khuon , freebsd-hardware@FreeBSD.ORG, sos@FreeBSD.ORG Dcc: Subject: Re: fixing hard read errors In-reply-to: Bruce Evans's message of Sun, 24 Dec 2000 16:42:42 +1100. Reply-To: khuon@GBLX.Net (Jake Khuon) Action: Expires: Priority: Normal X-Face: "(e&e|OIYrcV1x8y?txN%k1E2f[qWLjRjOn+a30)3>x`Wx%_9XiXs\IO2#G5L1m=c/|^h|z29wJ#]D/.?Ks,Mw1 X-URI: http://Espresso.NEEBU.Net/~khuon/ X-Organisation: Global Crossing Ltd., Net-Eng/NSM X-Header: /usr/include gives great headers X-System: Sun UltraSPARCstation2/2300MP running SunOS Release 5.7 X-Shell: tcsh 6.07.02 (Astron) 1996-10-27 (sparc-sun-solaris) options 8b,nls,dl,al,ng,rh X-Chtorr: History is full of revisionists. Where it used to say "THOU SHALT NOT KILL" it now says, "except as specified in section III-B, Paragraph 12, Sub-section D, Schedule 3." If that still doesn't suit you, wait till next year's commandments come out and trade it in for something that does. X-Mailer: MH 6.8.4 #4[UCI] (Espresso.NEEBU.Net) of Mon Feb 19 15:14:03 EST 1996 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 23 Dec 2000 23:15:13 -0800 Sender: khuon@Espresso.NEEBU.Net Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ### On Sun, 24 Dec 2000 16:42:42 +1100 (EST), Bruce Evans ### casually decided to expound upon Jake Khuon the ### following thoughts about "Re: fixing hard read errors": BE> On Thu, 21 Dec 2000, Jake Khuon wrote: BE> BE> > I've started taking corruption errors on the drive. BE> > BE> > Dec 20 23:37:50 Mocha /kernel: ad0: HARD READ ERROR blk# 19527354 BE> > Dec 20 23:37:56 Mocha /kernel: ad0: HARD READ ERROR blk# 19527354 status=59 BE> > error=40 BE> > Dec 20 23:37:57 Mocha /kernel: ad0: DMA problem fallback to PIO mode BE> > BE> > Right now, I've had to set the fsck flag to 0 in /etc/fs and am doing a BE> > forcemount of /usr in /etc/rc before the other mounts just to keep me going. BE> > BE> > Is there a way to use badsect to map these out? When I try, I get this: BE> > BE> > badsect /usr/BAD 19527354 BE> > block 19527354 out of range of file system BE> > Don't forget to run ``fsck /dev/rad0s2f'' BE> BE> The block number printed by the ad driver is relative to the start of the BE> disk, but the block number for badsect must be relative to the start of BE> the filesystem (ad0s2f). So should I just subtract the offset for ad0s2f from 19527354 or do I have to convert the offset to something first based on the blocksize of the file system? BE> Disk drivers should use the standard function for reporting disk errors BE> (diskerr()) so that more information, including the filesystem-relative BE> block number, is printed. From subr_disklabel.c: BE> --- BE> /* BE> * Disk error is the preface to plaintive error messages BE> * about failing disk transfers. It prints messages of the form BE> BE> hp0g: hard error reading fsbn 12345 of 12344-12347 (hp0 bn %d cn %d tn %d sn %d) Yeah... wouldn't that be nice. |8^) -- /*====================[ Jake Khuon ]======================+ | Senior Manager and Chief Architect, Net-Eng/NSM /~_ |_ () |3 /-\ |_ | | VOX: +1 (408) 543-4828 Fax: +1 (408) 543-0074 \_| C R O S S I N G | +===============[ 960 Hamlin Court, Sunnyvale, CA 94089 ]===============*/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message