linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Christian Pernegger <pernegger@gmail.com>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Feature request: ability to exchange drive without failing the old 	one
Date: Tue, 13 Oct 2009 16:38:12 -0400	[thread overview]
Message-ID: <4AD4E534.2010102@tmr.com> (raw)
In-Reply-To: <bb145bd20910121740n208e4c71v30520a7ea8b57d21@mail.gmail.com>

Christian Pernegger wrote:
> Hi list!
>
> Sometimes I want to exchange a drive in an array even if it hasn't
> actually failed, e. g.
> - in preperation for a grow operation: exchange-resync-exchange-resync-...-grow
> - when removing old drives as part of regular maintenance
> - ...
>
> Currently one has to fail an active drive to trigger a resync to the
> replacement (assuming it was added as a spare beforehand) and thus
> suffer the loss of fault tolerance and performance until the sync is
> complete.
>
> Suggestion: allow adding drives as an explicit replacement for an
> active one. The active drive would then be copied to the new one in
> the background, effectively replacing the component device with a
> mirror. Bonus points if the resulting setup is a valid mode of
> operation and not just a temporary hack. I suppose one could see the
> feature as a special case of the reshaping that's all the rage now :)
>   

I think what you want is a subset of the problem many of us face, moving 
a member of an array to a larger partition on a (much) larger drive. 
That migration, followed by a grow, is getting more appealing, as 
various drive drop to "prize in a cereal box" pricing. And as data 
grows, backup to something other than disk is getting pretty 
impractical, resulting in unit upgrades to save space, time, power, etc, 
etc.

I agree with the need, I have several ugly methods of doing this which 
boil down to replacing a member with a raid-1 of the member and the new 
drive. I have done it several ways, including the "I can't fit another 
drive in the box" solution, using nbd and write mostly. Uglier than a 
hedgehog's ass, but it worked... eventually.

-- 
Bill Davidsen <davidsen@tmr.com>
  Unintended results are the well-earned reward for incompetence.


  reply	other threads:[~2009-10-13 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13  0:40 Feature request: ability to exchange drive without failing the old one Christian Pernegger
2009-10-13 20:38 ` Bill Davidsen [this message]
2009-10-13 20:44   ` Majed B.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD4E534.2010102@tmr.com \
    --to=davidsen@tmr.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=pernegger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).