On Tue, 14 Jan 2014 12:13:09 -0700
Chris Murphy <li...@colorremedies.com> wrote:

> 
> On Jan 9, 2014, at 6:31 PM, George Mitchell <geo...@chinilu.com> wrote:
> >> 
> > Jim, my point was that IF the drive does not successfully resolve the bad 
> > block issue and btrfs takes a write failure every time it attempts to 
> > overwrite the bad data, it is not going to remap that data, but rather it 
> > is going to fail the drive.
> 
> If the drive doesn't resolve a bad block on write, then the drive is toast.

I vaguely remember having some drives that were not able to remap a single
block on write, but doing that successfully if I overwrote a sizable area
around (and including) that block, or overwrite the whole drive. And after
that they worked without issue not exhibiting further bad blocks.

Or for example consider the 4k sector drives. If even any portion of the
physical 4k sector is corrupt, some of the eight 512 virtual blocks will be
unreadable; but the thing is, writing to ANY of them individually will fail,
because the drive's internal r-m-w will fail to obtain all the pieces of the
4k sector from disk to overwrite it.

So in my opinion one (and perhaps one of the easier) things to consider here,
would be to try being "generous" in recovery-overwrite, say, rewrite a
whole 1MB-sized region centered at the unreadable sector.

-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

Reply via email to