Recovery Optimization?

Recovery Optimization?

am 19.02.2011 01:06:43 von Jon Forrest

I'm just learning how the md system works so what
I'm going to say might not be sensible.

I read that if a disk in a RAID5 set goes bad, and the
disk is replaced by a new one, that the recovery operation
takes place blindly. By this I mean that all the stripes
will be read so that new parity blocks can be written.
But, there might be stripes that contain only blocks
that aren't used by the filesystem. Wouldn't it be
good when doing recovery if some kind of allocation
map were created so that unused stripes wouldn't be
restored. I would think that depending on how full
the disk is that this could save time.

Is this reasonable?

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforrest@berkeley.edu

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Recovery Optimization?

am 19.02.2011 01:37:15 von mathias.buren

On 19 February 2011 00:06, Jon Forrest wrote:
> I'm just learning how the md system works so what
> I'm going to say might not be sensible.
>
> I read that if a disk in a RAID5 set goes bad, and the
> disk is replaced by a new one, that the recovery operation
> takes place blindly. By this I mean that all the stripes
> will be read so that new parity blocks can be written.
> But, there might be stripes that contain only blocks
> that aren't used by the filesystem. Wouldn't it be
> good when doing recovery if some kind of allocation
> map were created so that unused stripes wouldn't be
> restored. I would think that depending on how full
> the disk is that this could save time.
>
> Is this reasonable?
>
> Cordially,
> --
> Jon Forrest
> Research Computing Support
> College of Chemistry
> 173 Tan Hall
> University of California Berkeley
> Berkeley, CA
> 94720-1460
> 510-643-1032
> jlforrest@berkeley.edu
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.ht=
ml
>

Isn't that what the bitmap is (partly) for?

// Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Recovery Optimization?

am 19.02.2011 05:54:50 von NeilBrown

On Fri, 18 Feb 2011 16:06:43 -0800 Jon Forrest wrote:

> I'm just learning how the md system works so what
> I'm going to say might not be sensible.
>
> I read that if a disk in a RAID5 set goes bad, and the
> disk is replaced by a new one, that the recovery operation
> takes place blindly. By this I mean that all the stripes
> will be read so that new parity blocks can be written.
> But, there might be stripes that contain only blocks
> that aren't used by the filesystem. Wouldn't it be
> good when doing recovery if some kind of allocation
> map were created so that unused stripes wouldn't be
> restored. I would think that depending on how full
> the disk is that this could save time.
>
> Is this reasonable?
>
> Cordially,


http://neil.brown.name/blog/20110216044002#5

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html