linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David Rees" <drees76@gmail.com>
To: acostoya <adrian@costoya.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Expanding a RAID-5 in use from 3 disks to 6 disks
Date: Thu, 5 Jul 2007 16:43:51 -0700	[thread overview]
Message-ID: <72dbd3150707051643t145d4fa9q1191aba89e2a4321@mail.gmail.com> (raw)
In-Reply-To: <11456058.post@talk.nabble.com>

On 7/5/07, acostoya <adrian@costoya.com> wrote:
>
> I've being trying to set a 6 disk RAID-5 for a few days but it took only 3
> disks (the other 3 gave Device busy error); in the meantime, an old server
> went out of order so I have to use the incomplete host and it is now online
> with user files.
>
> The question is, is there a way to expand my RAID-5 from 3 disks to 6 disks
> without losing data?.

Yes, it's possible. A quick google of 'linux expand raid 5' turned up
a bunch of hits, FYI.

Since you already have the 3 disks added to the array as spares, all
you should have to do is:

mdadm --grow /dev/md0 --raid-devices=6

Watch /proc/mdstat for the expansion status.

After it is complete, you need to expand your filesystem to utilize
the new larger device.

Keep in mind that most people recommend raid 6 for larger raid 5
arrays since the likelyhood of multiple device failures goes up
significantly the more drives you have in your array. Unfortunately I
don't think it is possible to convert a raid 5 array to raid 6.

-Dave

      reply	other threads:[~2007-07-05 23:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 23:01 Expanding a RAID-5 in use from 3 disks to 6 disks acostoya
2007-07-05 23:43 ` David Rees [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=72dbd3150707051643t145d4fa9q1191aba89e2a4321@mail.gmail.com \
    --to=drees76@gmail.com \
    --cc=adrian@costoya.com \
    --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).