Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Leslie Rhorer <lrhorer@satx.rr.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Confused about reshape?
Date: Mon, 31 May 2010 12:54:54 +1000	[thread overview]
Message-ID: <20100531125454.5e676440@notabene.brown> (raw)
In-Reply-To: <FB.E6.01646.AC4F20C4@cdptpa-omtalb.mail.rr.com>

On Sun, 30 May 2010 18:29:16 -0500
"Leslie Rhorer" <lrhorer@satx.rr.com> wrote:

> 
> 	Am I confused about reshaping a RAID5 to RAID6 array, or is there an
> error in the man page?  The distro I have on one of my servers - Debian
> "Squeeze" - employs mdadm 3.0.3, internally dated Oct. 22, 2009.  The man
> page that comes with the software specifically says:
> 
> -l, --level=
> 
> <snip>
> 
> 	Not yet supported with --grow.

Man page is wrong.  Thanks for reporting.  Fixed in current .git and will be
in next release.

> 
> 	Searching the web, however, I find the following link from Aug. 17,
> 2009:
> 
> http://neil.brown.name/blog/20090817000931
> 
> 	In the link, it says:
> 
> Now, in mid 2009, we have most of the rest of the reshaping options that had
> been planned. These include changing the stripe size, changing the layout
> (i.e. where the parity blocks get stored) and reducing the number of
> devices.
> 
> Changing the layout provides valuable functionality as it is an important
> part of converting a RAID5 to a RAID6.
> 
> <snip>
> 
> Currently supported reshapes
> 
> <snip>
> 
> RAID5
> A RAID5 can change the number of devices, the size of the individual
> devices, the chunk size and the layout. A 2 drive RAID5 can be converted to
> RAID1, and a 3 or more drive RAID5 can be converted to RAID6.
> 
> 	Since the 3.0.3 version of mdadm was evidently written in October,
> and since this link was from August, one would think 3.0.3 should be able to
> re-shape a RAID5 to RAID6.  If so, the man page (at least for Debian
> "Squeeze") is incorrect, and of course fails to offer the syntax for such an
> upgrade.
> 
> 	Am I missing something?

The syntax for changing levels is simply:

  mdadm --grow /dev/mdX --level=6

This will preserve the number of data disks.  If you want to change that (or
anything else) at the same time, you can:

 mdadm --grow /dev/mdX --level=6 --raid-disk=8 --chunk-size=1024 --layout=left-asymetric

Thanks,
NeilBrown


> 
> --
> 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


  reply	other threads:[~2010-05-31  2:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-30 23:29 Confused about reshape? Leslie Rhorer
2010-05-31  2:54 ` Neil Brown [this message]
2010-05-31  4:11   ` Leslie Rhorer
2010-05-31  4:50     ` Neil Brown
2010-05-31  5:25       ` Leslie Rhorer
2010-05-31  5:32       ` Leslie Rhorer
2010-05-31  5:57         ` Neil Brown
2010-05-31  6:07           ` Leslie Rhorer
2010-05-31  6:48             ` Neil Brown
2010-05-31  6:55               ` Leslie Rhorer
2010-05-31  9:12                 ` Leslie Rhorer

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=20100531125454.5e676440@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=lrhorer@satx.rr.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