From: Jes Sorensen <jes.sorensen@gmail.com>
To: Xiao Ni <xni@redhat.com>, linux-raid@vger.kernel.org
Cc: shli@kernel.org
Subject: Re: [mdadm PATCH 1/1] mdadm/test: Add one test case for raid5 reshape
Date: Thu, 13 Jul 2017 10:27:11 -0400 [thread overview]
Message-ID: <6a8862cb-8ca3-ccc9-54f7-f3a99bb436a8@gmail.com> (raw)
In-Reply-To: <1499937259-16791-1-git-send-email-xni@redhat.com>
On 07/13/2017 05:14 AM, Xiao Ni wrote:
> This case trys to allow raid5 reshape to use backwards direction.
> It changes chunksize after reshape and stop the raid. Then start
> the raid again.
>
> Signed-off-by: Xiao Ni <xni@redhat.com>
> ---
> tests/02r5grow | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/tests/02r5grow b/tests/02r5grow
> index 386e82e..14d05d6 100644
> --- a/tests/02r5grow
> +++ b/tests/02r5grow
> @@ -34,3 +34,15 @@ check nosync
> sh tests/testdev $md0 3 $[size/2] 128
>
> mdadm -S $md0
> +
> +# create a raid5 array and change the chunk
> +mdadm -CR $md0 --level raid5 --metadata=1.1 --chunk=32 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3
> +check wait
> +check state UUU
> +
> +mdadm $md0 --grow --chunk=64
> +mdadm --wait $md0
You are not checking the outcome of your chunk change operation. Running
a test and not making sure it succeeds kinda makes it useless.
Cheers,
Jes
> +
> +mdadm -S $md0
> +mdadm -As
> +mdadm -Ss
>
prev parent reply other threads:[~2017-07-13 14:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 9:14 [mdadm PATCH 1/1] mdadm/test: Add one test case for raid5 reshape Xiao Ni
2017-07-13 14:27 ` Jes Sorensen [this message]
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=6a8862cb-8ca3-ccc9-54f7-f3a99bb436a8@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=shli@kernel.org \
--cc=xni@redhat.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).