This short how-to provides a step-by-step process on setting up a software based RAID1 disks on Ubuntu system. RAID (Redundant Array of Inexpensive Disks) is a computer storage schemes that divide or replicate data among multiple hard drives (array) and is designed to provide data reliability or performance or both.
RAID1 configuration is a mirrored set that duplicates data across several disks at once. Such configuration provides the following advantages:
- Fault tolerant from disk errors and single disk failures and
- Increased read performance. Atleast 100% for two disks in array.
Requirements:
- Atleast two identical SATA hard disks
- Optional one(1)SATA hard disk with same size as that of the first two for hot spare
- Ubuntu Alternate CD (x386/x64)
- A PC with CDROM Drive
STEP 1: Initial Setup
- Insert the Ubuntu Alternate CD and make your CDROM the first bootable device.
- Select [Text Only Installation] from the selection menu upon boot up.
- Select the appropriate language of your choice and keyboard formats.
- Upon reaching the hard disk partition setup, choose [Manual Partition]
STEP2: Partitioning
- The Ubuntu Partitioner will detect the number of hard disk devices available in your computer. For our setup we have 2 disks with 250G each and this will be identified by your Ubuntu partitioner as: sda(SATA Device A) and sdb(SATA Device B) respectively.
Partition each device with the following configuration:
Device | Partition Type | Size | Bootable |
sda | RAID | 249.5 G | Yes |
| RAID | 0.5 G | No |
sdb | RAID | 249.5 G | Yes |
| RAID | 0.5 G | No |
Note: Instead of choosingExt3 filesystem as what you would normally do when partitioning a non-raid drive, select RAID for all partitions allocated for each device.
3. Proceed writing to disk for changes when prompted.
STEP3: Configuring RAID
- Select [Configure RAID] option
- Select RAID1
- Type 2 for the number of active devices
- If you have 1 hot spare disk available, type 1 or 0 if non available.
- Select sda1 and sdb1 which will be represented as md0 and used for installing root files. The equation for this will be: md0 = sda1 + sdb1.
- Your done setting up the first multidisc device (md0).
- Create another Multidisc Device
- Type 2 for the number of active devices
- Select sda2 and sdb2 which will be represented as md01. This will be used for swap space later. The equation for this will be md1 = sda2 + sdb2
- Your done setting up the second multidisc device (md1)
- Finish creating multidisc.
STEP4: Setup File system
- Setup md0 device as Ext3 File system type and mount it as root (/).
- Label it as root and flag it as bootable
- Setup md1 device as swap.
- Write changes to disk
That's it!
No comments:
Post a Comment