Re: Scsi errors with Megaraid 300-8x
From: Mark Lord
Date: Thu Aug 24 2006 - 12:54:46 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/