Anyone know how to change RAID O to RAID 1 On Linux

  • Yoda
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 25, 2005
  • Posts: 58
  • Status: Offline

Post May 29th, 2006, 9:47 pm

Does anyone know how to change RAID 0 to RAID on a Dell Linux Server without reinstalling the operating system?

Yoda
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 29th, 2006, 9:47 pm

  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post May 29th, 2006, 10:18 pm

Is it possible? Yes. Is it recommended? Only if you've backed up everything and don't care if all of the data gets erased (not that it will happen, but that it can).

Code: [ Select ]
man mdadm
mdadm --help
  1. man mdadm
  2. mdadm --help


First thing you need is an identical drive - down to the partitioning. Then:
Code: [ Select ]
# /sbin/mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hdaN /dev/hdbN

This will mirror everything on the partition /dev/hdaN to the partinion /dev/hdbN and create /dev/md0. You then change your fstab to point to /dev/md0 rather than /dev/hdaN.

That's pretty much it in a nutshell.
http://www.disabo.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 116 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.