Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, linux-btrfs@vger.kernel.org
Subject: Re: Don't prevent removal of devices that break raid reqs
Date: Tue, 15 Nov 2011 20:10:25 -0500	[thread overview]
Message-ID: <20111116011025.GJ29279@shiny> (raw)
In-Reply-To: <20111115093713.GB8597@zambezi.lan>

On Tue, Nov 15, 2011 at 11:37:13AM +0200, Ilya Dryomov wrote:
> On Thu, Nov 10, 2011 at 09:21:00PM -0500, Chris Mason wrote:
> > On Thu, Nov 10, 2011 at 05:32:48PM -0200, Alexandre Oliva wrote:
> > > Instead of preventing the removal of devices that would render existing
> > > raid10 or raid1 impossible, warn but go ahead with it; the rebalancing
> > > code is smart enough to use different block group types.
> > > 
> > > Should the refusal remain, so that we'd only proceed with a
> > > newly-introduced --force option or so?
> > 
> > Hmm, going to three devices on raid10 doesn't turn it into
> > raid1.  It turns it into a degraded raid10.
> > 
> > We'll need a --force or some kind.  There are definitely cases users
> > have wanted to do this but it is rarely a good idea ;)
> 
> I'm not sure about use cases Chris talks about, but sans those I think
> we should prevent breaking raids.  If user wants to downgrade his FS he
> can do that explicitly with restriper.  As for the relocation code
> 'smartness', we already have a confusing case where balancing silently
> upgrades single to raid0.
> 
> Chris, can you describe those cases in detail so I can integrate and
> align this whole thing with restriper before it's merged ?  (I added a
> --force option for some of the transitions, probably best not to add
> another closely related one)

There are a few valid use cases where people want to be able to "break"
a raid1.  I'd put it at the very bottom of the list of interesting
things, just because I see a long list of bug reports that start with:

my FS was broken, so I told it to remove device xxyzzz, and that didn't
work so I ran --force, and then (sad story follows).

-chris


  reply	other threads:[~2011-11-16  1:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 19:32 Don't prevent removal of devices that break raid reqs Alexandre Oliva
2011-11-11  2:21 ` Chris Mason
2011-11-15  9:37   ` Ilya Dryomov
2011-11-16  1:10     ` Chris Mason [this message]
2011-11-16  3:21     ` Alexandre Oliva
2011-11-19 10:10   ` Alexandre Oliva
2011-12-05 21:20 ` Phillip Susi

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=20111116011025.GJ29279@shiny \
    --to=chris.mason@oracle.com \
    --cc=idryomov@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=oliva@lsd.ic.unicamp.br \
    /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