From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>, linux-btrfs@vger.kernel.org
Subject: Re: Don't prevent removal of devices that break raid reqs
Date: Wed, 16 Nov 2011 01:21:40 -0200 [thread overview]
Message-ID: <orty64pxa3.fsf@livre.localdomain> (raw)
In-Reply-To: <20111115093713.GB8597@zambezi.lan> (Ilya Dryomov's message of "Tue, 15 Nov 2011 11:37:13 +0200")
On Nov 15, 2011, Ilya Dryomov <idryomov@gmail.com> 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.
Oops. I *knew* there was some case I had failed to test. I thought I'd
the two relevant cases, but I must have tested only raid0 to single and
raid1 to dup.
> If user wants to downgrade his FS he
> can do that explicitly with restriper.
Didn't I just read in another thread that restriper won't let one switch
from raid1 to dup without going through single in between? That's what
I actually needed to do that drove me to write the patch a while ago
after accidentally adding a device to the wrong filesystem, and if
restriper won't do it without going through a riskier stage in between
(metadata loss due to e.g. a bad block), I wish it was improved so that
this is possible.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer
next prev parent reply other threads:[~2011-11-16 3:21 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
2011-11-16 3:21 ` Alexandre Oliva [this message]
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=orty64pxa3.fsf@livre.localdomain \
--to=oliva@lsd.ic.unicamp.br \
--cc=chris.mason@oracle.com \
--cc=idryomov@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/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