How to Setup a RAID System
By Gabriel Torres on October 23, 2006


Introduction

RAID stands for Redundant Array of Independent Disks and with at least two hard disk drives you can setup them as a RAID array in order to increase the disk performance or to improve data reliability. In this tutorial we will teach you how to setup a RAID system on your PC.

As mentioned, there are two ideas behind RAID: performance (a.k.a. RAID0) and reliability (a.k.a. RAID1).

RAID0, also known as data striping, is set when you want to improve your disk performance. It works by dividing the files to be written on disk into several chunks (called stripes) and saving each chunk on a different drive. For example, if you have a 200 KB file and two hard disk drives, it will be cut into two 100 KB chunks and each chunk will be saved on a different hard disk drive.

This is a very summarized explanation; in reality each stripe must be a power of two and is configured when you setup the RAID system. If your RAID system uses 128 KB stripes, it would divide our 200 KB file into two 128 KB chunks (the rest of each stripe, 28 KB, would be left empty). If our system were using 32 KB stripes, our 200 KB file would be divided into eight 32 KB chunks, and the system would send four chunks to each hard disk drive.

But how this improves performance? In the example we gave, instead of storing one 200 KB file, each hard disk drive will store a 100 KB file. The time spent storing a 100 KB file is theoretically half the time spent storing a 200 KB file. Basically what we do on RAID0 is to put the hard disk drives to work in parallel.

The total disk capacity on a RAID0 system is the sum of the total capacity of the two hard disk drives. So if we use two 80 GB hard disk drives, our disk system will have 160 GB capacity. You can even create “partitions” on your RAID system, so you can have more than one “disk” on your system.

So if you want to build a high-performance system, consider buying two disk drives with smaller capacity and configuring them as a RAID0 system instead of buying one high-capacity hard disk drive.

If you are thinking of having two drives just to separate data (e.g. one drive for operating system and programs and the other for data like documents), go ahead and assemble a RAID system, as, like we mentioned, you can create “partitions” on your RAID system (keep in mind, however, that you cannot remove one of the drives and install it on another computer expecting to read its contents like you would do normally – it won’t work).

On Figure 1 we summarized how RAID0 works.

RAID0
click to enlarge
Figure 1: How RAID0 (data striping) works.

RAID1, on the other hand, does not improve performance, but is targeted to improve the data reliability of your PC. It works by copying everything that is sent to the first hard disk drive to the second, and that is why it is also known as mirroring. Consider RAID1 as a hardware-based backup system. If the first hard disk drive fails, the second one takes its place immediately.

Since the second disk drive is a backup disk, the total disk capacity on a RAID1 system is the capacity of the first disk drive only. So if you have two 80 GB hard disk drives configured as RAID1, the total disk capacity will be 80 GB.

If you are concerned with data reliability, RAID1 is the way to go.

On Figure 2 we summarized how RAID1 works.

RAID1
click to enlarge
Figure 2: How RAID1 (data mirroring) works.

There are other RAID configurations as well, but not all RAID controllers support them (all controllers support at least RAID0 and RAID1). Here is a small summary of other common RAID systems your RAID controller may support:

Requirements

In order to have a RAID system on your PC you will need two things: a RAID controller and at least two identical hard disk drives. If you want to setup a system different from RAID0 or RAID1 more hard disk drives may be necessary, as we explained on the previous page. On this tutorial we are assuming that you are going to build a RAID0 or a RAID 1 system, so we will assume a system with two hard disk drives from now on.

Nowadays several motherboards come already with an embedded RAID controller, making it very easy to setup a RAID system: all you will need is two identical hard disk drives (if your motherboard has RAID capability, of course).

So the first thing you need to check is whether your motherboard has an embedded RAID controller or not. This can be seen on the manual of your motherboard. The motherboard chipset – the south bridge chip (which is also known as ICH, I/O Controller Hub, on Intel chipsets) to be more exact – is in charge of controlling the hard disk ports of your motherboard. So the south bridge chip of your motherboard needs to have an embedded RAID controller. On Intel chipsets, this chip needs to have the letter “R” in order to have this feature. For instance, ICH7 chip does not have RAID feature, while ICH7R does. The same thing may happen with chipsets from other suppliers. For example, VIA VT8237R has RAID function while VT8237 doesn’t.

Some manufacturers call RAID function with a fancier name, like “Intel Matrix Storage” or “nVidia MediaShield Storage”. At the end is all the same thing.

If you don’t have your motherboard manual, click here to download it. If you don’t know your motherboard manufacturer and/or model, click here to learn how to discover this information.

Many motherboards have an extra chip providing more hard disk drive ports, usually from companies like SiliconImage, JMicron, Marvell, Promise and HighPoint, just to name the most common ones. Usually this extra chip has an embedded RAID controller. So if your motherboard chipset does not provide RAID function but your motherboard has an extra chip that does, you will need to install your hard disk drives to the ports attached to this chip instead of using the hard disk drive ports attached to the south bridge chip.

On Figure 3 you can see the detail of Intel D975XBX2 motherboard that we will be using on this tutorial. This motherboard has a total of eight SATA-300 ports, four controlled by the chipset (Intel 975XBX, using ICH7R south bridge) and four controlled by Marvell 88SE6145 chip. Both chips have an embedded RAID controller, but if the chipset was using a different south bridge chip (ICH7, for example) we could still use RAID, as the extra four SATA-300 ports have this feature.

RAID
click to enlarge
Figure 3: SATA ports found on Intel D975XBX2 motherboard.

In situations like the one shown on Figure 3 – two RAID-enabled chips on the motherboard – the hard disk drives must be installed on the same port group. As you can see, Intel used black color on the ports connected to the chipset and blue color on the ports connected to the extra chip. So your two hard disk drives must be installed on ports with the same color. As the motherboard chipset supports RAID, we prefer to use the ports that are connected to the chipset (black ports on this example).

If your motherboard doesn’t have a RAID chip, you still can use a RAID system by buying an add-on RAID controller.

Let’s now talk about the installation process in details.

Physical Installation

The RAID installation process is divided into three parts:

It is very important to notice that setting up a RAID system deletes all data inside your hard disk drives. So make a backup of all your data before continuing, if your hard disk drives have important data inside.

The physical installation is pretty straightforward: install your hard disk drives to your case, connect a power supply plug on each hard disk drive and connect each hard disk drive to the appropriate hard disk drive port on the motherboard (if your motherboard doesn’t support RAID you will need to buy a RAID controller card and install your hard disk drives to it). Of course this procedure must be done with your computer turned off.

On the pictures below we removed the system from the case for clearer pictures. On this tutorial we are using an Intel D975XBX2 motherboard and two Samsung HD080HJ hard disk drives (80 GB, SATA-300).

It is important to use ports that can deliver the maximum performance your hard disk drive is able to reach. There are two main hard disk interface standards, parallel ATA (PATA or simply IDE) and Serial ATA (SATA). PATA ports are fading away, with SATA ports being the standard today. If you are assembling a new system, do not use parallel ATA hard disk drives.

Parallel ATA can be found in two speeds, ATA/100 and ATA/133. Of course the best scenario if you are still using this kind of hard disk drive is to use ATA/133 drives together with ATA/133 ports. For the best performance you need to install each hard disk drive on a separated port, each one configured as “master” and using its own 80-wire cable. Do not install them on the same cable using master/slave configuration as this reduces performance. Unfortunately newer motherboards usually don’t have more than one parallel ATA port, making it a very bad choice to use parallel ATA hard disk drives.

Don’t forget that the parallel ATA ports must support RAID, of course. The parallel ATA ports shown on Figure 4 are not the ones controlled by the chipset, but two extra IDE ports provided by an extra chip, supporting RAID.

RAID With Parallel ATA HDDs
click to enlarge
Figure 4: The correct way of connecting PATA hard disk drives.

Since parallel ATA is fading away, we are going to focus on Serial ATA.

Serial ATA can also be found in two speeds, SATA-150 (a.k.a. 1.5 Gbps) and SATA-300 (a.k.a. 3 Gbps). The best performance can be achieved with SATA-300 ports and SATA-300 hard disk drives.

The installation is pretty easy. Connect one SATA cable to each hard disk drive and connect one SATA power cable to each hard disk drive (if your power supply doesn’t have SATA power cables, SATA hard disk drives come with an adaptor that converts the standard peripheral power plug into a SATA power plug).

RAID With SATA HDDs
click to enlarge
Figure 5: Our two SATA hard disk drives with their cables installed.

Then install the other end of each cable to an available SATA port on your motherboard. For better organization, use the lowest numbered ports. For example, on our motherboard the four ports controlled by the ICH6R south bridge were labeled SATA0, SATA1, SATA2 and SATA3. We used SATA0 and SATA1 ports. Remember that you must install the cables to ports that support RAID (see previous page for a detailed discussion on this subject).

RAID With SATA HDDs
click to enlarge
Figure 6: Installing the cables on the motherboard.

Now you will need to set up the hard disk drives as a RAID array. Let’s show how this can be done on next page.

RAID Configuration

After the physical installation your hard disk drives will operate as two separated hard disk drives. So you need to configure them as a RAID system. The exact procedure and option names vary a little bit depending on the motherboard you have.

If you are using the hard disk ports controlled by the chipset, you need to enter first on the motherboard setup and configure them as “RAID” instead of “IDE”. Under “IDE” configuration they work as normal IDE ports, while under “RAID” configuration you can enable them to work as a RAID system. In fact, if you don’t change this configuration the system won’t show you the RAID configuration screen during the POST, preventing you from setting up your RAID system.

So enter the motherboard setup (by pressing Del right after you turn on your PC) and change this option. On our motherboard this option was available at Advanced, Drive Configuration, “Configure SATA As”. The exact path and option name vary depending on the motherboard manufacturer.

RAID Configuration
click to enlarge
Figure 7: Enabling the motherboard ports to work under RAID configuration.

RAID Configuration
click to enlarge
Figure 8: Motherboard ports enabled to work under RAID configuration.

After changing this configuration, you need to save the changes and exit.

RAID configuration is made by pressing a set of keys during the POST (Power-On Self Test), which is that series of text-mode messages that appear when you turn on your PC before it starts loading your operating system. This set of keys varies depending on the RAID chip manufacturer. Usually is Control together with the first letter of the manufacturer name. For example, for Intel is Control I, for Marvell is Control M, for SiliconImage is Control S, for JMicron is Control J and so on.

This set of keys should be pressed while a RAID configuration screen is shown during POST. Since our motherboard has two RAID chips, two screens like this are shown, one for configuring the RAID provided by the Intel chipset and another for configuring the RAID provided by Marvell 88SE6145 chip.

As we connected our two hard disk drives on the ports controlled by the chipset, the screen pictured on Figure 9 was shown. As you can see, no RAID is configured (the phrase “None defined” appears under “RAID Volume”, and the two hard disk drives are identified as “Non-RAID Disk”). So you need to press Control I while this screen is shown in order to configure your RAID system.

RAID Configuration
click to enlarge
Figure 9: RAID configuration screen during POST (Intel chipset).

This screen will be a little bit different depending on the RAID chip manufacturer. We installed our two hard disk drives on the ports controlled by the Marvell chip to show you another example, see Figure 10. As you can see, our RAID isn’t configured yet (the phrase “No array is defined!” under “Arrays Information” appears). Here you need to press Control M to configure your RAID system.

RAID Configuration
click to enlarge
Figure 10: RAID configuration screen during POST (Marvell chip).

Press the set of keys to enter the RAID configuration utility.

RAID Configuration (Cont’d)

Intel RAID configuration utility main menu is shown on Figure 11. This screen will show up after you press Control I while the text shown on Figure 9 appears after you turn on your computer.

RAID Configuration
click to enlarge
Figure 11: RAID configuration utility.

All RAID utilities are very similar and very easy to use. In our example the main screen shows information about the hard disk drives and presents four options. Select the first one, Create RAID Volume, to setup your RAID system. The screen shown on Figure 12 will be shown.

Creating a RAID Array
click to enlarge
Figure 12: Creating your RAID system.

Here you will have to configure:

After hitting “Create Volume” a confirmation screen will be shown, remembering that all your data will be lost. Hit “Y” and your RAID will be created.

Creating a RAID Array
click to enlarge
Figure 13: Confirmation screen.

Creating a RAID Array
click to enlarge
Figure 14: Main menu, now with our RAID array created.

You can see our RAID array created on Figure 14. As you can see we created a RAID0 (striping) system.

Now that our RAID system is created, you will need to install the operating system. This is the trickiest part of the RAID setup process.

Operating System Installation

Now you have to install your operating system. We will base our examples on Windows XP and we are assuming that you already know how to install an operating system, as this subject is way off the scope of the present tutorial. In general lines, you need to enable boot from your optical drive on the motherboard setup, insert the OS CD-ROM in your optical drive and turn on your computer.

The problem is that Windows XP doesn’t automatically recognize RAID systems, so it will think that your computer has no hard disk drives installed.

Installing RAID
click to enlarge
Figure 15: Windows XP thinks your system doesn’t have any hard disk drive.

You need to generate a floppy disk containing the RAID controller driver. Motherboards used to come with this disk in the past, but nowadays you will have to create it by yourself, running a small utility present on the CD-ROM that comes with your motherboard or add-on RAID controller. This utility will be located on a directory called RAID or similar. Don’t be afraid of browsing this CD on another computer until you find the utility.

On the CD-ROM that came with our motherboard the file name was “f6flpy32_STOR_5.5.0.1035_PV.zip”, for example. It was just a matter of unzipping it and running the .exe file that was created. The utility asked us to insert a floppy disk in the disk drive and created the necessary floppy.

If you don’t have the motherboard CD-ROM anymore, you can download this utility from the motherboard manufacturer website or from the chipset (or RAID controller) manufacturer website.

As soon as Windows XP CD-ROM starts loading, you will see a message saying “Press F6 if you need to install a third party SCSI or RAID driver…”. When this message appears, press the F6 key and insert the floppy disk in the floppy disk drive and wait the screen shown on Figure 17 to appear.

RAID Installation
click to enlarge
Figure 16: Press the F6 key as soon as this message appears.

RAID Installation
click to enlarge
Figure 17: Windows didn’t locate the RAID driver by itself.

Operating System Installation (Cont’d)

When the screen on Figure 17 appears, press the S key and choose from the floppy the driver Windows should load (see Figure 18). In our case, we had to choose “Intel (R) 82801GR/GH SATA RAID Controller (Desktop ICH7R/DH)”, since our motherboard used ICH7R chip.

RAID Installation
click to enlarge
Figure 18: Selecting the driver that should be used.

After selecting the driver, the previous screen (Figure 17) will appear again, now showing the driver that will be installed, see Figure 19.

RAID Installation
click to enlarge
Figure 19: Windows showing the driver that will be used.

From now on Windows will recognize your RAID array correctly. In our example, since we configured a RAID0 system with two 80 GB hard disk drives, Windows is recognizing only one 160 GB hard disk drive, as you can see on Figure 20.

RAID Installation
click to enlarge
Figure 20: Windows is recognizing our RAID0 system correctly as if it were one 160 GB drive.

Keep in mind that the numbers shown on our screenshots are a little bit lower, since hard disk drives are labeled using a “fake” capacity. For example, our 80 GB hard disk drives were actually 74.53 GB drives. That’s why you see 150 GB on Figure 20 and not 160 GB.

Now follow the normal Windows installation process, install all drivers of the hardware attached to your system, install the programs you use and that’s it.

Usually RAID controllers also come with management software that you can install to monitor your RAID system. This component is optional.

Management Software

The management software for Intel RAID is called Intel Matrix Storage Manager. It will allow you to review your RAID system and also check your RAID status. With this program you can also create new RAID arrays, if you install more hard disks to your system.

On Figures 21 and 22 we show two screenshots from this program showing the current status and details from the RAID array we assembled during this tutorial.

RAID Status
click to enlarge
Figure 21: Status of our RAID array.

RAID Details
click to enlarge
Figure 22: Details of our RAID array.

Originally at http://www.hardwaresecrets.com/article/393


© 2004-9, Hardware Secrets, LLC. All Rights Reserved.

Total or partial reproduction of the contents of this site, as well as that of the texts available for downloading, be this in the electronic media, in print, or any other form of distribution, is expressly forbidden. Those who do not comply with these copyright laws will be indicted and punished according to the International Copyrights Law.

We do not take responsibility for material damage of any kind caused by the use of information contained in Hardware Secrets.