Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Vidar Sonerud <vidar.sonerud@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid-1 to Raid-5 conversion possible?
Date: Thu, 25 Jan 2007 09:39:45 +1100	[thread overview]
Message-ID: <17847.57393.35146.578984@notabene.brown> (raw)
In-Reply-To: message from Vidar Sonerud on Wednesday January 24

On Wednesday January 24, vidar.sonerud@gmail.com wrote:
> I have for a long time been wondering if it is possible to convert a 2
> disk Raid-1 array to a  3 disk Raid-5 array using mdadm?
> 
> Tonight I stumbled upon this article:
> 
> http://www.n8gray.org/blog/2006/09/05/stupid-raid-tricks-with-evms-and-mdadm/
> 
> Is this safe / ok to do? Any comments from you mdadm experts?

Yes, that should be safe - in principle.
I've never used EVMS tools so I cannot comment on the particular
commands that the article says to run.

I would do it with mdadm:

1/ stop the array
   mdadm -S /dev/md0
2/ Recreated as a RAID5 array
   mdadm -C /dev/md0 -l5 -n2 --assume-clean /dev/sda1 /dev/sdb1
3/ Add a spare
   mdadm /dev/md0 -a /dev/sdc1
4/ Grow the array
   mdadm -G /dev/md0 -n 3

all done.

Of course you have to change the device names to fit your hardware.

NeilBrown

      reply	other threads:[~2007-01-24 22:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 22:33 Raid-1 to Raid-5 conversion possible? Vidar Sonerud
2007-01-24 22:39 ` Neil Brown [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=17847.57393.35146.578984@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=vidar.sonerud@gmail.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