Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: Ramon Hofer <ramonhofer@bluewin.ch>
Cc: linux-raid@vger.kernel.org
Subject: Re: Enlarging device of linear array
Date: Sun, 09 Jun 2013 03:31:44 -0500	[thread overview]
Message-ID: <51B43D70.50004@hardwarefreak.com> (raw)
In-Reply-To: <20130608201810.26c19641@hoferr-x61s.hofer.rummelring>

On 6/8/2013 1:18 PM, Ramon Hofer wrote:
> Dear Stan and linux-raid list

Hi Ramon.

> My home server with a linear raid (md0) containing three raid5 (md1,
> md2, md3) is still working wonderfully. Thanks again Stan!

Glad to hear it. :)

<snip>
> Is this possible and a good idea?

No, it is not possible to expand a linear array this way.
...
> If in some years one of the oldest 1.5 TB disks of md2 or any other
> fails, I could replace it with a bigger one and at the same time the
> other disks of the same device as well and get additional space?

You can use the extra capacity, but not in the way you're considering.
This is due to the characteristics of a linear array.

You have been using raw disks, not partitions.  So when you replace a
dead drive you will need to create a partition on the replacement that
is the same size or a few sectors larger than the disk being replaced.
You will then use this partition as the replacement device in the array
rebuild.  After you have replaced all 4 drives in this manner, you will
create a 2nd partition in the free space on each.  You will then create
another RAID5 array from these 4 partitions and add it just as you did
the other RAID5s.

-- 
Stan


  reply	other threads:[~2013-06-09  8:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-08 18:18 Enlarging device of linear array Ramon Hofer
2013-06-09  8:31 ` Stan Hoeppner [this message]
2013-06-09 10:38   ` Sam Bingner
2013-06-10 16:58   ` Ramon Hofer
2013-06-09 10:47 ` Roman Mamedov
2013-06-09 11:52   ` Stan Hoeppner

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=51B43D70.50004@hardwarefreak.com \
    --to=stan@hardwarefreak.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ramonhofer@bluewin.ch \
    /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