Date: Thu, 23 Dec 1999 13:00:16 +1030 From: Greg Lehey <grog@lemis.com> To: Brent Rector <brentr@tccsweb.com> 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> In-Reply-To: <Pine.BSF.4.05.9912221925120.4941-100000@web2.tccsweb.com> References: <Pine.BSF.4.05.9912221925120.4941-100000@web2.tccsweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991223130016.K1316>