Difference between revisions of "RAID"

From Noah.org
Jump to navigationJump to search
(New page: Category:Engineering My RAID setup for an Ubuntu NAS box. == Hardware == I used two identical PATA 180GB drives. Each drive was connected to a separate IDE bus (each has their own cabl...)
 
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
 
My RAID setup for an Ubuntu NAS box.
 
My RAID setup for an Ubuntu NAS box.
 +
 
== Hardware ==
 
== Hardware ==
I used two identical PATA 180GB drives. Each drive was connected to a separate IDE bus (each has their own cable). Do not put two IDE RAID drives on the same IDE bus.
+
 
 +
I used two identical PATA 180GB drives. Each drive was connected to a separate IDE bus (each has their own cable). Do not put two IDE RAID drives on the same IDE bus. Two drives on the same cable would slow everything down plus if one drive goes bad it brings down the entire IDE bus.
 +
 
 +
== software ==
 +
 
 +
<pre>
 +
apt-get install mdadm
 +
apt-get install dmraid
 +
</pre>
 +
 
 +
== Format ==
 +
 
 +
I created a 4GB partition on both drives for the operating system (boot and / on an ext3 partition). I left the rest of the drives unallocated. In other words, I installed the full operating system first on the 4GB partition before I even started with RAID configuration.
 +
 
 +
This is not "ideal", but it's easier to setup. I'm building a NAS, so I don't care as much for the integrity of the operating system. I just care about the files in the file server. If the boot sector goes bad I can reinstall Linux and recover my files offline. A more clever system would allow the boot and operating system partitions to be on the RAID array itself.

Revision as of 16:25, 20 September 2007

My RAID setup for an Ubuntu NAS box.

Hardware

I used two identical PATA 180GB drives. Each drive was connected to a separate IDE bus (each has their own cable). Do not put two IDE RAID drives on the same IDE bus. Two drives on the same cable would slow everything down plus if one drive goes bad it brings down the entire IDE bus.

software

apt-get install mdadm
apt-get install dmraid

Format

I created a 4GB partition on both drives for the operating system (boot and / on an ext3 partition). I left the rest of the drives unallocated. In other words, I installed the full operating system first on the 4GB partition before I even started with RAID configuration.

This is not "ideal", but it's easier to setup. I'm building a NAS, so I don't care as much for the integrity of the operating system. I just care about the files in the file server. If the boot sector goes bad I can reinstall Linux and recover my files offline. A more clever system would allow the boot and operating system partitions to be on the RAID array itself.