Linux RAID subsystem development
 help / color / mirror / Atom feed
* Raid-1 to Raid-5 conversion possible?
@ 2007-01-24 22:33 Vidar Sonerud
  2007-01-24 22:39 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Vidar Sonerud @ 2007-01-24 22:33 UTC (permalink / raw)
  To: linux-raid

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?

Best regards
Vidar Sonerud

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Raid-1 to Raid-5 conversion possible?
  2007-01-24 22:33 Raid-1 to Raid-5 conversion possible? Vidar Sonerud
@ 2007-01-24 22:39 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2007-01-24 22:39 UTC (permalink / raw)
  To: Vidar Sonerud; +Cc: linux-raid

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-24 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-24 22:33 Raid-1 to Raid-5 conversion possible? Vidar Sonerud
2007-01-24 22:39 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox