All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre Wieser <pwieser@trychlos.org>
To: linux-raid@vger.kernel.org
Subject: Migrating a RAID 5 from 4x2TB to 3x6TB ?
Date: Mon, 8 Jun 2015 21:28:43 +0200 (CEST)	[thread overview]
Message-ID: <167089395.613.1433791723592.JavaMail.zimbra@wieser.fr> (raw)
In-Reply-To: <1419435054.589.1433790714774.JavaMail.zimbra@wieser.fr>

Hi all,

I currently have an almost full RAID 5 built with 4 x 2 TB disks.
I wonder if it would be possible to migrate it to a bigger RAID 5
with 3 x 6TB new disks.

I've imagined something like that :
- successively fail, remove a 2TB disk, add a 4TB disk, wait for end of recovery on three 2TB disks
- at the end of this first phase, I have the same ~6TB RAID 5 clean group with 3 x 4TB + 1 x 2TB disks
- declare the last 2 TB disk faulty and remove it
- the RAID 5 group state goes to clean, degraded
- grow the RAID 5 group with --size=max option
- grow the RAID 5 group with --array-size=~12TB option
- last, grow the RAID 5 group with --raid-devices=3 and --backup-file=... options.

And I have tested it on a small test RAID 5 group.
As expected, this last command makes the RAID 5 group begins a reshaping operation.
But this one keeps stucked at zero.

So I have several questions :

- is it even theorically possible to grow a RAID 5 while decreasing the number of disks ?
- do you think the sequence i've imagined is correct ?
- why the reshaping operation does it stuck at zero ?

Any help or hint would be greatly appreciated :)
Thanks
Regards
Pierre

       reply	other threads:[~2015-06-08 19:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1419435054.589.1433790714774.JavaMail.zimbra@wieser.fr>
2015-06-08 19:28 ` Pierre Wieser [this message]
2015-06-08 20:10   ` Migrating a RAID 5 from 4x2TB to 3x6TB ? Wols Lists
2015-06-09 18:33     ` Pierre Wieser
2015-06-09  5:23   ` Can Jeuleers
2015-06-09 18:46     ` Pierre Wieser
2015-06-09 19:06       ` Wols Lists
2015-06-09 19:15       ` Roman Mamedov
2015-06-09 18:46     ` Wols Lists
2015-06-09 19:06       ` Another Sillyname
2015-06-09 19:18       ` Can Jeuleers
2015-06-15 11:31       ` Wilson, Jonathan
     [not found]   ` <CAOS+5GHzBgx2DuDe0+RLgZj9Q1BZ944i-9q4NEERq66Sk78b2g@mail.gmail.com>
2015-06-09 18:26     ` Pierre Wieser
2015-06-10 19:37   ` Pierre Wieser
2015-06-15 10:46     ` Wilson, Jonathan
2015-06-15 21:45       ` Wols Lists

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=167089395.613.1433791723592.JavaMail.zimbra@wieser.fr \
    --to=pwieser@trychlos.org \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.