linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Proactive Drive Replacement
@ 2008-10-20 17:35 Jon Nelson
  2008-10-20 22:40 ` Mario 'BitKoenig' Holbe
  0 siblings, 1 reply; 16+ messages in thread
From: Jon Nelson @ 2008-10-20 17:35 UTC (permalink / raw)
  To: LinuxRaid

I was wondering about proactive drive replacement.
Specifically, let's assume we have a RAID5 (or 10 or whatever)
comprised of 3 drives, A, B, and C.
Let's assume we want to replace drive C with drive D, and the array is md0.
We want to minimize our rebuild windows.

The naive approach would be to:

--add drive D to md0
--fail drive C on md0
wait for the rebuild to finish.
(zero the superblock on drive C)
remove drive C

Obviously, this places the array in mortal danger if another drive
should fail during that time.
Could we not do something like this instead?

1. make sure md0 is using bitmaps
2. --fail drive C
3. create a new *single disk* raid1 from drive C
4. --add drive D to md99
5. --add md99 back into md1.
6. wait for md99's rebuild to finish
7. --fail and --remove md99
8. break md99
9. --add drive D to md0

The problem I see with the above is the creation of the raid1 which
overwrites the superblock. Is there some way to avoid that (--build?)?

The advantage is that the amount of time the array spends degraded is,
theoretically, very small. The disadvantages include complexity,
difficulty resuming in the case of more serious error (maybe), and *2*
windows during which the array is mortally vulnerable to a component
failure.

-- 
Jon

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

end of thread, other threads:[~2008-10-25 16:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-20 17:35 Proactive Drive Replacement Jon Nelson
2008-10-20 22:40 ` Mario 'BitKoenig' Holbe
2008-10-21  8:38   ` David Greaves
2008-10-21 13:05     ` Jon Nelson
2008-10-21 13:36       ` David Greaves
2008-10-21 13:50       ` David Lethe
2008-10-21 14:11         ` Mario 'BitKoenig' Holbe
2008-10-21 15:13           ` David Lethe
2008-10-21 15:30             ` Mario 'BitKoenig' Holbe
2008-10-21 19:39         ` David Greaves
2008-10-21 13:57     ` Mario 'BitKoenig' Holbe
2008-10-21 17:29       ` David Greaves
2008-10-24  5:57     ` Luca Berra
2008-10-24  8:09       ` David Greaves
2008-10-25 13:20         ` Luca Berra
2008-10-25 16:33           ` David Greaves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).