Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: "Patrick J. LoPresti" <lopresti@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Growing a RAID-0 "internally"?
Date: Wed, 08 Jun 2011 19:50:21 -0500	[thread overview]
Message-ID: <4DF018CD.80205@hardwarefreak.com> (raw)
In-Reply-To: <BANLkTi=kM_3Aadv7Y8ime2MGgPEJL_+7Yw@mail.gmail.com>

On 6/8/2011 3:34 PM, Patrick J. LoPresti wrote:
> Hi.  I have a RAID-0 striped across two partitions; let's call them
> /dev/sda2 and /dev/sdb2 (equal size).  These partitions do not stretch
> to the end of the respective drives; that is, there is also a
> /dev/sda3 and /dev/sdb3 (also equal size).
> 
> I want to delete partitions sda3 and sdb3, resize sda2 and sdb2 to
> consume the additional space, and then grow my RAID-0 array to use it.
> 
> I know how to perform every step (e.g., modifying partition tables,
> resizing the file system) except for one:  How do I use mdadm to
> change the size of the drives inside the RAID-0 array?  Or is this not
> supported?

AFAIK you cannot currently grow (or shrink) an md RAID0 or RAID10.
According to 'man mdadm':

Grow

Grow (or shrink) an array, or otherwise reshape it in some way.
Currently supported growth options including changing the active size of
component devices in RAID level 1/4/5/6 and changing the number of
active devices in RAID1.

-- 
Stan

      reply	other threads:[~2011-06-09  0:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 20:34 Growing a RAID-0 "internally"? Patrick J. LoPresti
2011-06-09  0:50 ` Stan Hoeppner [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=4DF018CD.80205@hardwarefreak.com \
    --to=stan@hardwarefreak.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=lopresti@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox