All of lore.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Michael Muratet <muratetm@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Add disks and convert level 0 to level 5
Date: Thu, 11 Sep 2014 10:27:19 +1000	[thread overview]
Message-ID: <20140911102719.053a5d5c@notabene.brown> (raw)
In-Reply-To: <8CF94689-0AD6-4B87-BC0C-815F794549E7@gmail.com>

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

On Wed, 10 Sep 2014 11:15:24 -0500 Michael Muratet <muratetm@gmail.com> wrote:

> I have a two-disk RAID0 system that is working splendidly, thanks to the list for the help.
> 
> I managed to get my hands on more identical disks and since I have the disks and because I'm adding precious data, I'd like to add two more disks and grow to RAID5.
> 
> I have partitioned the two new drives to type 'fd', /dev/sde and /dev/sdf
> 
> I believe the command to accomplish the change is this:
> 
> mdadm /dev/md0 --grow --level=5 --add /dev/sde /dev/sdf
> 
> Following the old adage "measure twice, cut once", is this syntax correct? Is there any danger of data loss in such a conversion?

I recommend creating a few loop-back devices and experimenting.
i.e.:
  create some 100M files.
  use "losetup" to turn them into block devices.
  create an 2-device raid0
  try converting it as you suggest.

You find it doesn't do quite what you expected, but should be easy to fix.

Providing your new devices are reliable (as least read/write the entire drive
once if you feel at all cautious) there is no particular danger of data loss.

NeilBrown


> 
> Thanks
> 
> Mike--
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  reply	other threads:[~2014-09-11  0:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 12:43 Converting RAID5 to RAID0 Mike Muratet
2014-08-31 17:13 ` Robin Hill
2014-08-31 22:31 ` NeilBrown
2014-09-10 16:15   ` Add disks and convert level 0 to level 5 Michael Muratet
2014-09-11  0:27     ` NeilBrown [this message]
2014-09-17 14:59       ` Michael Muratet
2014-09-17 15:15         ` Robin Hill
2014-09-11  7:27     ` Robin Hill

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=20140911102719.053a5d5c@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=muratetm@gmail.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 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.