Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
To: linux-raid@vger.kernel.org
Subject: Re: RAID-6 horizontal grow
Date: Sat, 11 Apr 2009 00:34:33 +0200	[thread overview]
Message-ID: <20090410223433.GA10797@lazy.lzy> (raw)
In-Reply-To: <20090410215833.GF21242@cthulhu.home.robinhill.me.uk>

Hi again,

I made a quick test, but that does not seem to
work, at least with RAID-6.

What I did was to create 4 loop devices of 128MB
and then a RAID-6, metadata 1.1, on top of that.
The I stopped the array and the loop, I added
another 128MB (added as in "dd ... >> file"),
run "losetup" again and "mdadm -A ...".
Then "mdadm --grow --size=max ...", but the size
of the array did not change from 256MB (2x128MB).
The loop devices are 256MB (wc -c /dev/loop..).

So, either I'm missing something or this type of
grow does not seem to affect RAID-6.

Any ideas?

Thanks again,

bye,

pg

On Fri, Apr 10, 2009 at 10:58:33PM +0100, Robin Hill wrote:
> On Fri Apr 10, 2009 at 11:54:35PM +0200, Piergiorgio Sartor wrote:
> 
> > Hi all,
> > 
> > is it possible to grow a RAID-6, not by adding
> > more drives, but by extending the partions which
> > are composing the array?
> > 
> > In other words, let's say I've "n" partitions of
> > "x" GB forming a RAID-6 array. After some time I
> > increase the size of each partition to "y" GB, of
> > course y > x.
> > Is it then possible to use the complete space
> > growing the array?
> > How?
> > 
> Yes - "mdadm --grow --size=max /dev/mdX".  You'll also need to grow the
> filesystem afterwards of course.
> 
> Cheers,
>     Robin
> -- 
>      ___        
>     ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
>    / / )      | Little Jim says ....                            |
>   // !!       |      "He fallen in de water !!"                 |



-- 

piergiorgio

  reply	other threads:[~2009-04-10 22:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-10 21:54 RAID-6 horizontal grow Piergiorgio Sartor
2009-04-10 21:58 ` Robin Hill
2009-04-10 22:34   ` Piergiorgio Sartor [this message]
2009-04-11  8:23     ` Piergiorgio Sartor
2009-04-11  9:53       ` NeilBrown
2009-04-11 10:40         ` Piergiorgio Sartor

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=20090410223433.GA10797@lazy.lzy \
    --to=piergiorgio.sartor@nexgo.de \
    --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