From owner-freebsd-scsi Sun Oct 27 01:52:25 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA15418 for freebsd-scsi-outgoing; Sun, 27 Oct 1996 01:52:25 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA15411 for ; Sun, 27 Oct 1996 01:52:19 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA18107; Sun, 27 Oct 1996 09:52:06 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA23492; Sun, 27 Oct 1996 09:52:06 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id JAA25043; Sun, 27 Oct 1996 09:44:12 +0100 (MET) From: J Wunsch Message-Id: <199610270844.JAA25043@uriah.heep.sax.de> Subject: Re: SCSI harddisk trouble: MEDIUM ERROR To: freebsd-scsi@FreeBSD.org (FreeBSD SCSI list) Date: Sun, 27 Oct 1996 09:44:12 +0100 (MET) Cc: petzi@zit.th-darmstadt.de (Michael Beckmann) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Michael Beckmann at "Oct 27, 96 03:45:26 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Michael Beckmann wrote: > Oct 27 03:26:59 zit1 /kernel: sd0(ncr0:0:0): MEDIUM ERROR info:3b13fe asc:11,b > Oct 27 03:26:59 zit1 /kernel: sd0(ncr0:0:0): Unrecovered read error - > recommend reassignment sks:80,32 > I took the disk out of the system, and checked its configuration. AWRE and > ARRE were set. I thought the disk was supposed to automatically reassign > bad blocks in this configuration ? Yep, it's weird that it doesn't. > fsck gave me a decimal block number for the bad block, how can I tell which > block is bad here ? The `info' field in a MEDIUM ERROR response is supposed to be the (hexadecimal) block number of the failure, thus it's the total block 0x3b13fe = 3871742. On the same note, fsck reports the block numbers relative to the start of the filesystem, i think. > Is there a way to run a disk check under FreeBSD, which > finds (and reassigns) bad blocks ? People have been asking for such a tool, but it's a little of work to do it that nobody did yet... > Is there a good way to reassign blocks > automatically, and avoid the problems that follow these medium errors ? ARRE :) Too bad it doesn't work for you. If you can backup the disk, and if it's not a funny one (by some SCSI vendor who's cheating), you can reformat it. I know it at least from an older Seagate disk i used to have, which also experienced occasional medium errors (despite of ARRE -- apparently, the defect list for this zone was full), where reformatting cured the disk until it has recently been pensioned since it grew too small for my needs. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)