Install RAID0 on Ubuntu Lucid Lynx

rweait's picture

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?

Resources

This article was originally published on Fri, 03/26/2010 - 20:34

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.