linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <nfbrown@novell.com>
To: Micheal Blue <mblue@gmx.us>, linux-raid@vger.kernel.org
Subject: Re: Seeking advice to convert RAID5 to RAID10 adding a drive in the process
Date: Mon, 21 Dec 2015 12:44:01 +1100	[thread overview]
Message-ID: <87a8p460f2.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <trinity-e29048a1-862f-4ae7-a1a2-e4e826b37f95-1450018043035@3capp-mailcom-bs10>

[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]

On Mon, Dec 14 2015, Micheal Blue wrote:

> I have a 3 disk RAID5 currently that uses LUKS. I would like to add a new disk and covert the array to RAID10 but cannot find any walk-through of this process. I am grateful for any input from the list be it links or a personal summary.
>
>
> Below is a graphic of how my current 3 drive array is setup:
>  ---------------------------------------
> [          ext4 file system             ]
>  ---------------------------------------
> [          LUKS cryptdevice             ]
>  ---------------------------------------
> [               /dev/dm0                ]
>  ---------------------------------------
> [ /dev/sdb1 ] [ /dev/sdc1 ] [ /dev/sdd1 ]
>  ---------------------------------------


I assume that is /dev/md0, not /dev/dm0 ....

You would need to convert to RAID0 first.
Something like
  mdadm --grow /dev/md0 --level=0 --raid-disks=2
  # wait for that to complete
  mdadm --grow /dev/md0 --level=10 --raid-disks=4 --add /dev/sdd1 /dev/sde1


You should experiment first by creating some largish file (100Meg),
using losetup to make block devices /dev/loop0, /dev/loop1
... /dev/loop3

then create a raid 5 of some of those devices, creaet a LUKS and ext4 on
that, and then perform the reshape and make sure it all works as you
expect.

I just tested and it seemed to work on the kernel and mdadm that I have.

Of course, if you can create a backup - at least of the most important
files - that is always a good idea.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

      reply	other threads:[~2015-12-21  1:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-13 14:47 Seeking advice to convert RAID5 to RAID10 adding a drive in the process Micheal Blue
2015-12-21  1:44 ` NeilBrown [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=87a8p460f2.fsf@notabene.neil.brown.name \
    --to=nfbrown@novell.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mblue@gmx.us \
    /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).