linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: John Robinson <john.robinson@anonymous.org.uk>
Cc: Berkey B Walker <berk@panix.com>, linux-raid@vger.kernel.org
Subject: Re: Growing a single disk into a 2 disk raid0
Date: Fri, 28 Jan 2011 13:29:21 -0500	[thread overview]
Message-ID: <4D430B01.6040606@cfl.rr.com> (raw)
In-Reply-To: <4D430794.60101@anonymous.org.uk>

On 1/28/2011 1:14 PM, John Robinson wrote:
> At the moment, mdadm doesn't support reshaping RAID-0 and RAID-10,
> though if you've been following the many posts/patches from the Intel
> guys, you'll know it's coming in mdadm 3.2.

Ahh, I will keep my eyes out for that and hopefully it will also enable
creating a single disk raid0 initially, then reshape.

> Anything involving mirroring (RAID-1 or RAID-10) isn't going to expand
> the available storage space; you've only got two discs, so the second
> will be consumed by a mirror of the first.

This is true for raid-1, but not raid-10.  If you add a disk to a
raid-10 then the majority of its space will be added to the capacity of
the array if you do not increase the number of duplicate copies ( i.e.
leave n=2 as it defaults to ).

> the second disc onto the first one. (Actually there is a cunning third
> option: shrink the filesystem a little and create the array with
> metadata at the end, but I'd be very VERY wary of doing this on data of

That is what I was trying to do, and had no trouble converting a plain
partition into an mdadm managed one using that technique, but then ran
into the problems I stated originally.

> any value.) I think I'd use LVM instead (multiple PVs in a VG usable by
> one LV) though it has the same problems with what to do with metadata.

Unfortunately that isn't an option if you aren't already using LVM,
though figuring out how to upgrade a plain disk to LVM is another
interesting problem.

> If you want some redundancy as well as more storage space, you need more
> discs.

The idea here was to get more storage and speed by converting to raid-0,
but without data loss.

  reply	other threads:[~2011-01-28 18:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 17:17 Growing a single disk into a 2 disk raid0 Phillip Susi
2011-01-28 17:53 ` Berkey B Walker
2011-01-28 18:14   ` John Robinson
2011-01-28 18:29     ` Phillip Susi [this message]
2011-01-29  1:38       ` Hank Barta
2011-01-28 18:19   ` Phillip Susi
2011-01-29  9:10 ` NeilBrown

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=4D430B01.6040606@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=berk@panix.com \
    --cc=john.robinson@anonymous.org.uk \
    --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 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).