linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: "Dominique C." <dcouot@hotmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid 5 to 6 migration
Date: Fri, 01 Feb 2013 13:22:50 -0500	[thread overview]
Message-ID: <510C07FA.4090405@turmel.org> (raw)
In-Reply-To: <COL114-W137DD8871889508BBF087BC91C0@phx.gbl>

Hi Dominique,

[Top-posting repaired.  Please don't]

On 02/01/2013 01:19 PM, Dominique C. wrote:
[trim /]

>>> I was wondering what would be the best way to convert a 6 hdd raid 5 to
>>> raid 6. Ideally without having to reformat everything and lose all the
>>> data in the process. I have backups of the data but I don't look forward
>>> reinstalling everything on that server.
>>
>> 1) Add a seventh drive to the system.
>>
>> You can do this on the run if you have hotplug-capable sata ports or sas
>> ports.
>>
>> 2) Add that drive to the array w/ "mdadm --add"
>> 3) Convert array to raid6 w/ "mdadm --grow --level=raid6"
>>
>> You can do 2 & 3 on the run.
>>
>> 4) Monitor /proc/mdstat to see when it finishes.

> Hi Phil,
>
> Thanks for your answer, however I forgot to mention one thing: I used
6 hdd out of 6 possible. No possibility to expand at this stage....
> The data only uses part of the space available.
> Any other ideas ?

Shrinking is usually possible, but there are many more steps, depending
on what is in the array.

Please provide more detail.  The output of "lsdrv"[1] might be a good start.

Phil

[1] http://github.com/pturmel/lsdrv


  parent reply	other threads:[~2013-02-01 18:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 17:17 Raid 5 to 6 migration Dominique
2013-02-01 17:50 ` Phil Turmel
2013-02-01 18:16   ` Roman Mamedov
2013-02-01 18:19     ` Phil Turmel
2013-02-01 18:49       ` Chris Murphy
2013-02-01 22:04         ` Phil Turmel
2013-02-01 22:38           ` Chris Murphy
     [not found]   ` <COL114-W137DD8871889508BBF087BC91C0@phx.gbl>
2013-02-01 18:22     ` Phil Turmel [this message]
2013-02-03 10:00       ` Roy Sigurd Karlsbakk
2013-02-03 14:30         ` Phil Turmel
2013-02-03 22:01           ` Robin Hill
2013-02-04 12:51       ` Dominique
2013-02-04 18:39         ` Phil Turmel
2013-02-05  0:58           ` Brad Campbell
2013-02-05 10:36           ` Dominique
2013-02-05 13:04             ` Phil Turmel

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=510C07FA.4090405@turmel.org \
    --to=philip@turmel.org \
    --cc=dcouot@hotmail.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).