From owner-freebsd-questions Wed Dec 22 18:30:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id C8BE714F83; Wed, 22 Dec 1999 18:30:00 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id NAA08948; Thu, 23 Dec 1999 13:00:16 +1030 (CST) Date: Thu, 23 Dec 1999 13:00:16 +1030 From: Greg Lehey To: Brent Rector Cc: freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: SCSI HD Errors and how to Fix URGENT! Message-ID: <19991223130016.K1316@freebie.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] On Wednesday, 22 December 1999 at 19:28:43 -0700, Brent Rector wrote: > Hi Everyone! > > I am having a great deal of difficulty with one of our server drives.. > Recently it has begun to have a variety of read/write errors. > > My question is this: can I block out sectors / Mark them as bad without > having to down the system...? > > The config is an Adaptec 1542CF card with a narrow SCSI Seagate disk... > > My log is as follows: > > Dec 21 16:39:33 shell /kernel: (da0:aha0:0:0:0): READ(10). CDB: 28 0 0 40 94 b0 0 0 10 0 > Dec 21 16:39:33 shell /kernel: (da0:aha0:0:0:0): RECOVERED ERROR info:4094bf asc:17,3 > Dec 21 16:39:33 shell /kernel: (da0:aha0:0:0:0): Recovered data with negative head offset sks:80,3 > Dec 22 13:09:44 shell /kernel: (da0:aha0:0:0:0): READ(10). CDB: 28 0 0 2a 68 300 0 80 0 > Dec 22 13:09:44 shell /kernel: (da0:aha0:0:0:0): RECOVERED ERROR info:2a687f asc:17,3 > Dec 22 13:09:44 shell /kernel: (da0:aha0:0:0:0): Recovered data with negative head offset sks:80,3 In general, we no longer recover bad sectors: the drives do it by themselves. By the time the drive gets this bad, they're on death's doorstep. You should check, however, if your drive has ARRE/AWRE turned on. From "The Complete FreeBSD": Modern disks make provisions for recovering from such errors by allocating an alternate sector for the data. IDE drives do this automatically, but with SCSI drives you have the option of enabling or disabling reallocation. Usually it is turned on when you buy them, but occasionally it is not. When installing a new disk, you should check that the parameters ARRE (Auto Read Reallocation Enable) and AWRE (Auto Write Reallocation Enable) are turned on. For example, to check and set the values for disk da1, you would enter: # camcontrol modepage da1 -m 1 -e -P 3 This command will start up your favourite editor (either the one specified in the EDITOR environment variable, or vi by default) with the following data: AWRE (Auto Write Reallocation Enbld): 0 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: 16 Correction Span: 41 Head Offset Count: 0 Data Strobe Offset Count: 0 Write Retry Count: 16 Recovery Time Limit: 0 The values for AWRE and ARRE should both be 1. If they aren't, as in this case, where AWRE is 0, change the data with the editor, save it, and exit. The camcontrol program will write the data back to the disk and enable the option. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message