Linux RAID subsystem development
 help / color / mirror / Atom feed
* Is (non-failed) disk replace possible without loosing redundancy ?
@ 2013-04-11 15:07 Mihail Daskalov
  2013-04-11 15:16 ` Adam Goryachev
  0 siblings, 1 reply; 7+ messages in thread
From: Mihail Daskalov @ 2013-04-11 15:07 UTC (permalink / raw)
  To: linux-raid@vger.kernel.org

Hi all,
I am newbie to this list, so forgive me if this was already discussed, and answered. I have searched the archives, but could not find an answer to my question (except something called hot-replace, that I couldn't understand much about).

I would like to replace a disk in a mirror (raid1 array) with a third disk, that is present in the system (it is actually added as a spare to the array).
This is part of some storage reorganization and drive replacement process (change old disks with new ones).
Is there a way to gracefully replace a non-failed drive in an array, without loosing redundancy. 
I think I would like to achieve the following:
1.	Add a third disk to a mirror array
2.	Ask the md subsystem to create triple mirror, and sync information to the third disk.
3.	Remove one of the other 2 disks on the system
4.	The system will stay with 2 up-to-date mirrors of the blocks

This could be called a 'Copy-and-replace' operation. It could have some optimization - for example - maintain only 2 copies of the information (for example blocks that were not yet copied to the third disk will be on disks {1,2}, and blocks that are already copied would be on {1,3} in the case when disk 2 is being replaced by disk 3).

So my questions is how can I achieve this, or similar functionality, and in what version of the kernel and tools, if at all possible?

I specifically would like to underline that I know I can do:
1. Add third disk as spare
2. fail disk 2
3. wait for the resync to finish

I would like to avoid this, as while resync-ing I would only have one copy of the blocks.

Thanks in advance,
Mihail Daskalov

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

end of thread, other threads:[~2013-04-12 15:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 15:07 Is (non-failed) disk replace possible without loosing redundancy ? Mihail Daskalov
2013-04-11 15:16 ` Adam Goryachev
2013-04-11 21:52   ` Keith Keller
2013-04-12  0:52     ` Sam Bingner
2013-04-12 10:01     ` Roman Mamedov
2013-04-12 10:21       ` NeilBrown
2013-04-12 15:10         ` Keith Keller

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