Install RAID0 on Ubuntu Lucid Lynx

set up RAID0

Create a full-disk partition on each of two drives to be RAID0 combined. Set each full-disk partition as type fd - Linux RAID Auto-detect. Use fdisk or your favourite partitioning tool.

Then:
mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sda1 /dev/sdb1
sudo /usr/share/mdadm/mkconf force-generate /etc/mdadm/mdadm.conf
sudo mkfs.ext3 /dev/md0
mkdir /raid
sudo mount /dev/md0 /raid

Everything okay to this point? Add the raid to fstab to mount raid automatically after reboot.

sudo echo "/dev/md0 /raid ext3 defaults 1 2" | sudo tee -a /etc/fstab
update-initramfs -u

Why not test the reboot now?

help please

Where do I put these commands in? I used the alternate install ISO to partition the disks. I am having some real trouble getting this to work.

Hi zach, Tell me more about

Hi zach,

Tell me more about where you are having trouble? Can you copy the error message?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <q> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <h1> <h2> <h3> <h4> <pre> <sup> <sub> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options