Re: Scsi errors with Megaraid 300-8x

Mark Lord
2006-08-24T16:57:31Z

Johan Groth wrote:
> Mark Lord wrote:
>
>> OPPORTUNITY FOR FAME AND FORTUNE! (okay, maybe just some fame):
>> =================================
>> Hack the existing smartctl code to read out the failed sector numbers,
>> and then issue single-sector read-overwrite to each of those bad sectors.
>>
>> Very simple code. I'll do it myself eventually, but please beat me to
>> it!
>
> Authors of badblocks already has with the -n option :)

Not quite. As you pointed out:

> I would like to run badblocks again but only around the damaged part.

The drive *knows* which sectors are bad -- it's mostly all in the S.M.A.R.T.
logs and such. Which smartctl already knows how to read.

So now we just need a script-kiddie to do a nice little awk script for you,
which extracts the bad sectors info from the output of smartctl, and then
feeds this as input to badblocks.

Cheers