If you need an introductory course on RAID, here’s RAID 101 for you. Once exclusively used in corporate servers and by performance enthusiasts, the cost of hard drives and chipsets is so low now that RAID is showing up in consumer PCs. That’s good–as long as you set it up carefully.
RAID is an acronym for redundant array of independent (or inexpensive) disks. In simpler terms, it takes two or more hard drives and makes them look like a single drive in order to increase performance and/or boost reliability.
There are tons of flavors of RAID, but most RAID adapters support the four most popular:
RAID 0: Writes data in “stripes” alternating across two or more disks with no redundancy, so it’s not true RAID. This gives outstanding performance, but if you lose a disk, you lose the whole array. I don’t recommend RAID 0 unless you’re vigilant about backups, or unless you’re using your RAID 0 setup for temporary data, like holding your source files for a large video or photo editing project.
With RAID 0, you get to use the full capacity of your drives. If you RAID 0 two 1 GB drives together, you get 2 GB of storage total.
RAID 1: Mirrors data between two drives. If one drive dies, the system just uses the survivor until you replace the failed drive. Write performance degrades slightly. Read performance isn’t quite as good as RAID 0, but if you’re doing something important and your antivirus scan kicks in, one drive can handle your work while the other services the virus scan. So a RAID 1 array is still nicer for everyday use than a single drive.
If you RAID 1 two 1 GB drives, you get 1 GB of storage.
RAID 5: Stripes data across three or more drives, using one drive to store a parity bit. Think of it like RAID 0 with redundancy. It’s not quite as fast as RAID 0 due to the need to calculate parity, but in practice you rarely if ever notice.
If you RAID 5 three 1 GB drives, you get 2 GB of storage. If you use four drives, you get 3 GB. And so on.
RAID 10: This is a combination of RAID 0 and RAID 1. Also called a “striped mirror.” In some cases, RAID 10 can be faster than RAID 5. RAID 10 requires a minimum of four drives.
If you RAID 10 four 1 GB drives, you get 2 GB of storage, due to mirroring. Just like RAID 1, you end up with half the total capacity.
JBOD: An acronym for “just a bunch of disks.” Most RAID controllers support this as well. It just takes multiple disks and mashes their capacity together, with no redundancy. It’s useful in a pinch, but just like RAID 0, you have to be vigilant with backups, since the loss of one drive in the array means you’ll lose the array.
In practice, RAID 1 usually makes the most sense for home use. It gets you redundancy, and it only requires two drives to do it, so even if your computer case only has two 3.5″ drive bays, you can still do it. It gives you a nifty performance boost, and your computer doesn’t come to a screeching halt if a drive fails, so what’s not to like?
Let’s talk about life with RAID 1.
Breaking the mirror. RAID 1’s redundancy can be nice for those instances where you’re making a change that might affect the system. Power down, pull the plug on one of the drives or remove it entirely, then power back on. Ignore the warnings about a failed drive and degraded array, and go about your risky business. If it works, power down, plug the second drive back in, and let the drive rebuild.
If it fails and you want to revert, power down, unplug the remaining drive, and plug the other drive back in. Power on and make sure everything works. Then power down, plug the other drive back in, and let the array rebuild.
Dissimilar drives. I’ve said this before, but it’s worth repeating. If you’re building your own system, mismatching the drives slightly is a good idea. Identical drives are more likely to fail at about the same time. It defeats the purpose of RAID if one drive fails, and then the second drive fails before you get the chance to replace the first one to fail. If you want to be really safe, you have two options. I prefer to use two similar drives (same RPM, same buffer size) made by different manufacturers.
If you’re afraid the RAID will get confused by one drive finishing a few nanoseconds faster than the other–a problem I hear in theory all the time, but have never seen in practice–buy two of the same drive, manufactured at different times. If you’re buying the drives at retail, check serial numbers and buy two as far apart as possible. Or buy one at retail and one via mail order. Or buy from two different mail order outlets.
Mixed sizes. You can mix drive sizes in a RAID array, but you’ll only use up to the capacity of the smaller drive. RAID together a 1 GB drive and a 2 GB drive, and it will treat the 2 GB drive as another 1 GB drive.
Upgrading an array. The above raises the question of whether you can upgrade an array by replacing one drive with a larger drive, letting the array rebuild, then replacing the other drive. Some controllers allow you to do this, but the procedure varies. Unfortunately, finding out how to do it with whatever hardware you have will probably take some digging.
Initialization and rebuilding. The last thing to keep in mind is that initializing an array, particularly a large array, takes some time. Several hours, in most cases.
You can use the system while an array is initializing or rebuilding, but every time I’ve asked a field technician if they would if it was their system, they stammer and eventually say no.
Need more on RAID? Here’s a Q&A with readers.