RAID is a wonderful way to achieve faster disk access speeds, data security or both.Â Here’s some ways to get the most bang for your buck out of setting up a RAID:
- Speed:Â If speed is the primary reason you’re setting up a disk array, you won’t want to use RAID0 (striping) at all.Â You’ll want an SSD (solid state drive) instead of RAID.Â SSDs are pretty affordable and far faster than RAID, plus it’s easy to put your system on an SSD – even if you’re running Windows.Â However if you want crazy insane speeds, you can go for a RAID0 set up using two or more SSDs!Â It’s important to note, however, that if you’re a gamer you won’t see much benefit from RAID as the main bottlenecks usually revolve around RAM and graphics cards capabilities.
- Reliability:Â Software RAID is almost always a better choice these days than hardware RAID.Â Hardware RAID controllers suffer from three major problems that software controllers don’t:
- They are almost always expensive, usually adding at least a couple hundred dollars to the hardware cost.Â Software RAID costs nothing.Â (if you see a cheap RAID controller, say $20, it is almost always actually just a regular disk controller that implements software RAID in the BIOS.Â As a result nearly always Windows only compatible)
- If your RAID card fails, your entire RAID is down – an ugly single point of failure.Â With software RAID if your motherboard or drive control card fail, you can just plug the disks into another running system.
- If your RAID card fails, if you don’t have the same model card to replace it with, your data is permanently lost.Â Again, with software RAID you can just move the disks to another machine and you’re back up and running.
While hardware RAID is still faster than software RAID, the difference is pretty negligible and generally the small speed advantage will almost never be worth the potential for data loss.Â There are lots of other advantages to software RAID too, such as the ability to increase a RAID’s volume sizes on filesystems like ZFS by simply adding more disks that are then ‘virtualized’ to appear as if they are extending existing disks or the fact that software RAID supports SSD caching.Â Finally, software RAID on Linux systems using mdadm is very easy to set up – much more so than fiddling with settings in a RAID controller card’s utility.
- Speed:Â On-disk data compression can dramatically reduce disk latency times by reducing the amount of data that actually needs to be written to disk.Â The bottleneck on any write operation is always the drive access latency, so the less data you have to write the faster the overall operation will be.Â While this does incur a cost in CPU cycles, it’s both minimal and trivial for modern processors.Â Again, the ZFS filesystem supports compressed volumes, plus you get data encryption for free.
- Reliability:Â If reliability and data security are your focus, consider RAID1 (mirroring).Â While it offers no advantages for write speed, it will actually increase your speed for reads as the data chunks can be read simultaneously from two or more disks.
- Speed & Reliability:Â You can get both speed and data security using RAID10; the downside is that this is also the most expensive option both in terms of the number of hard drives required (minimum of four).