From owner-freebsd-questions Tue Jan 30 17:08:28 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA27118 for questions-outgoing; Tue, 30 Jan 1996 17:08:28 -0800 (PST) Received: from hda.com (hda.com [199.232.40.182]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA27024 for ; Tue, 30 Jan 1996 17:08:12 -0800 (PST) Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id UAA22825; Tue, 30 Jan 1996 20:05:12 -0500 From: Peter Dufault Message-Id: <199601310105.UAA22825@hda.com> Subject: Re: Querying for grown defects? To: darrylo@hpnmhjw.sr.hp.com (Darryl Okahata) Date: Tue, 30 Jan 1996 20:05:11 -0500 (EST) Cc: freebsd-questions@FreeBSD.org In-Reply-To: <199601302001.AA294182077@hpnmhjw.sr.hp.com> from "Darryl Okahata" at Jan 30, 96 12:01:17 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk > Is there any way from FreeBSD to query a SCSI drive for grown > defects (remapped sectors)? I've taken a look at scsi(8), but I've > absolutely no idea what parameters to use (assuming that scsi(8) can > even be used for this). scsi(8) will let you send any command to the drive, so if you have the scsi II spec you can probably rig up the right incantation. I don't think you want to, though, since... > I think my root disk is going south on me, and I'd like to find out > if I've properly enabled the automatic sector remapping on the drive. you can look at your mode pages to see if you have it on. You want to look at mode page 1: > beggar# scsi -f /dev/rsd0.ctl -m 1 > AWRE (Auto Write Reallocation Enbld): 1 > ARRE (Auto Read Reallocation Enbld): 1 > TB (Transfer Block): 0 > RC (Read Continuous): 0 > EER (Enable Early Recovery): 0 > PER (Post Error): 0 > DTE (Disable Transfer on Error): 0 > DCR (Disable Correction): 0 > Read Retry Count: 27 > Correction Span: 11 > Head Offset Count: 0 > Data Strobe Offset Count: 0 > Write Retry Count: 0 > Recovery Time Limit: 0 and see that the AWRE and ARRE fields are set to 1. -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267