Linux RAID subsystem development
 help / color / mirror / Atom feed
* Is there any lazy initialization mechanism in linux-raid?
@ 2017-12-15 11:50 guomingyang
  2017-12-15 12:34 ` Phil Turmel
  2017-12-16  4:22 ` NeilBrown
  0 siblings, 2 replies; 3+ messages in thread
From: guomingyang @ 2017-12-15 11:50 UTC (permalink / raw)
  To: linux-raid

Hi all:

       Today's disk is becoming larger and larger, and the recovery time 
is becoming longer. I'm thinking about a lazy initialization mechanism 
in linux raid5 to speed up recovery, which contains an un-initializing 
bitmap and a backend thread for initializing stripes lazily only after a 
stripe is write. The major difference is as follows:

       (1)When a raid4 or raid5 device is created, we don't recovery a 
disk as usual, instead we just set all the bit in un-initialize bitmap.

       (2)When a write happens and the corresponding un-initializing bit 
is set, we must first clean the bit, then wake up the backend thread to 
resync the stripe, and only do RCW in corresponding stripe before the 
resync is done.

      The major advantage of this mechanism is that when a disk is 
replaced, we can only recovery the stripes which have been initialized, 
so as to speed up recovery.

      Does linux-raid have similar mechanism today? Or is there anyone 
who has already working on similar mechanism?


-- 
Mingyang Guo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-16  4:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15 11:50 Is there any lazy initialization mechanism in linux-raid? guomingyang
2017-12-15 12:34 ` Phil Turmel
2017-12-16  4:22 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox