linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guoqing Jiang <gqjiang@suse.com>
To: Jes Sorensen <Jes.Sorensen@redhat.com>, zhilong <zlliu@suse.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH] Add '--nodes' option in GROW mode
Date: Wed, 23 Mar 2016 19:38:46 +0800	[thread overview]
Message-ID: <56F28046.9010801@suse.com> (raw)
In-Reply-To: <wrfjshzi9z1l.fsf@redhat.com>



On 03/23/2016 01:56 AM, Jes Sorensen wrote:
> zhilong <zlliu@suse.com> writes:
>> Bug description:
>> # mdadm -Cv /dev/md0 --bitmap=clustered -l1 -n2 /dev/sdd /dev/sdb
>> --nodes=6 --assume-clean
>> # mdadm --grow /dev/md0 --bitmap=none
>> # mdadm --grow /dev/md0 --bitmap=clustered
>>      -> cluster nodes would be changed to 4, here is my method to
>> resolve it.
>> # mdadm --grow /dev/md0 --bitmap=clustered --nodes=6
>>
>> Patch:
>>
>> Cluster nodes is set 4 as default when switch bitmap from
>> none to clustered under GROW mode, so add '--nodes'
>> option in GROW mode.
>>
>> Signed-off-by: Zhilong Liu <zlliu@suse.com>
>> ---
>>   mdadm.c | 1 +
>>   1 file changed, 1 insertion(+)
> Hi,
>
> I have a question about this, since I simply do not have the knowledge
> about clustering to judge this approach.
>
> If you remove the bitmap, does that 'uncluster' the array? If not,

Yes, remove the bitmap would 'uncluster' the array since leave()
will be called in kernel if switch the bitmap from 'clustered' to
'none'.

> shouldn't mdadm be fixed to not set #nodes to 4 when adding a clustered
> bitmap, if a number of cluster nodes is already present?

The nodes is set 4 by default if the 'nodes' parameter is not specified,
And it could be overwrite if re-create the clustered bitmap.

Thanks,
Guoqing

  reply	other threads:[~2016-03-23 11:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-22 11:44 [PATCH] Add '--nodes' option in GROW mode zhilong
2016-03-22 17:56 ` Jes Sorensen
2016-03-23 11:38   ` Guoqing Jiang [this message]
2016-03-24 16:31     ` Jes Sorensen
2016-03-25  2:22       ` [PATCH] mdadm:Add " zhilong
2016-03-29 15:43         ` Jes Sorensen

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=56F28046.9010801@suse.com \
    --to=gqjiang@suse.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=zlliu@suse.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).