Re: Tool for HD analyzing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Claudio Jeker <cjeker@...>, OpenBSD Misc <misc@...>
Date: Friday, September 28, 2007 - 9:49 pm

Uhm sorry claudio but it is the other way around. The only time you can
detect failed sectors is on reads. When a read fails the disk goes into
a proprietary algorithm to try to recover as much of the sector as
possible. Depending on the manufacturer they'll do something in excess
of 15000 reads of the same sector to try to recover the data. They then
use heuristics to try to determine what the original data most likely
was. If this process is successful enough the block gets re-assigned.
Most disks don't do verifies on writes (too slow) and rely on the
recovery algorithm to reassign these blocks; which are triggered by
subsequent reads. RAID manufacturers implement algorithms that
continuous read all sectors of idle disks to ensure data integrity.
When they run into a failure they first let the disk try to recover and
if that fails they use parity to recover the block. They also will
"puncture" the sector so that the disk will skip it going forward.

Some of the dmesg lines pasted in this message are likely LBA
relocations that take too long. There is no set timeout in the spec and
therefore vendors try really hard and long to recover the data resulting
in OS timeouts. A good example is calculating how long it takes to read
an LBA 15000 times on a 10000 RPM disk. Add some fudge in there for the
head to find the exact spot and you'll see that it gets in excess of
seconds. Repeat that a few times due to various retries in various
layers and you'll see where those lengthy timeouts come from.

On Fri, Sep 28, 2007 at 02:47:48PM +0200, Claudio Jeker wrote:

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Tool for HD analyzing, Leonardo Marques, (Fri Sep 28, 7:17 am)
Re: Tool for HD analyzing, Calomel, (Mon Oct 1, 3:13 pm)
Re: Tool for HD analyzing, Tony Abernethy, (Mon Oct 1, 4:04 pm)
Re: Tool for HD analyzing, Dorian Büttner, (Fri Sep 28, 12:09 pm)
Re: Tool for HD analyzing, Stuart Henderson, (Fri Sep 28, 7:43 am)
Re: Tool for HD analyzing, Peter N. M. Hansteen, (Fri Sep 28, 7:37 am)
Re: Tool for HD analyzing, Claudio Jeker, (Fri Sep 28, 8:47 am)
Re: Tool for HD analyzing, Marco Peereboom, (Fri Sep 28, 9:49 pm)
Re: Tool for HD analyzing, Leonardo Marques, (Fri Sep 28, 7:59 am)
Re: Tool for HD analyzing, Michał Koc, (Fri Sep 28, 8:01 am)
Re: Tool for HD analyzing, knitti, (Fri Sep 28, 7:31 am)