Skip to contentSkip to conversation

Recovery Optimization?

DISCUSSION Jon Forrest 3 participants 3 messages Feb 19, 2011 MD RAID

lore
Share & tools
lore
#0 lore raw

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,

Signature · 9 lines
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
[email protected]
#1 lore raw
Quoted 28 lines · 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
[email protected]

Quoted 5 lines

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

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

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

#2 lore raw
In reply to Jon Forrest
Quoted 14 lines · On Fri, 18 Feb 2011 16:06:43 -0800 Jon Forrest <[email protected]> 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.

Quoted 3 lines

Is this reasonable?

Cordially,

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

NeilBrown