Is RAID 1 an Outdated Way of Thinking?
As the price of flash storage has come down over the years we thought it would be worth wondering out loud if there was a better alternative to the old RAID 1 setup. I want to predicate this article by stating no matter what hard drive configuration you ever choose you should always always always maintain an off-site backup of your data. I will also state that we have deployed over 10,000 custom configured servers over the last 10 years and although we offer numerous RAID configurations, many people do not add them and although we offer automated backup solutions, many people do not pay for that either and although we always recommend our customers keep their own backup, many people do not. Lastly, I will point out that we offer fully managed servers and self-managed servers. It is our experience that those self-managed customers do not always use the tools available to them to check on the health of their RAID arrays allowing them to get ahead of failures. So this article is meant to discuss what the best bare minimum acceptable server configuration is with today’s technology.
For years two spinning disks in a RAID 1 mirror configuration has been the go to setup for people wanting a bit of comfort from data loss without breaking the bank. With the advent of the much more reliable SSD (Solid State Drives) should this still be our go to better-than-nothing hard drive configuration? Since SSDs are considerably more reliable than spinning disks would simply having an SSD as the primary drive with a 2nd SATA3 drive setup for local backups be a more reliable, better performing, low cost solution?
To answer the question we must first understand the benefits and details of each option.
SSD (Primary Drive) with SATA (For Nightly Backup Storage)
Due to falling costs, excellent reliability, and super-fast reading speeds, SSDs are an increasingly popular storage option for servers. What we are proposing as an alternative to RAID is to have an SSD as your primary coupled with a SATA3 drive mounted for backups. Then it is just a matter of a running a simple cron job each night to backup your data to that SATA disk. While SSDs are more expensive than SATA, their price continues to drop narrowing that price gap. Additionally, this configuration drops the expense of having a RAID card pretty much bringing the drive costs to parity and resulting in the server costing about the same per month at the end of the day.
SSDs offer significant performance improvements over RAID1. SSDs average transfer speeds of up to 550MB/s, while HDD offer average transfer speeds of up to 180MB/s. The MTBF (Mean Time Between Failure) of an SSD drive is 2 million hours, while spindle hard drive’s MTBF is ~1.5 million hours.
RAID 1 Reliability & Performance
RAID 1 (or mirroring) is a simple solution for reducing the risk of data loss. While RAID is not a backup solution, it is an insurance policy that if 1 drive fails you have better odds of retrieving your data from the remaining operational hard drive.
In a perfect world, when a drive fails in a RAID 1 array you simply swap out the failed drive with a new one, rebuild the array and all is well in the world again. This doesn’t always work, however, and sometimes the data on both drives gets corrupted, and you end up losing your data.
Two spindle hard drives in a RAID 1 array will be slightly faster than a single spindle hard drive, but nowhere near the performance of today’s SSDs. Spindle hard drives have a much higher failure rate, Spindle hard drives experience an annual failure rate of ~5%, while SSD enjoy a much lower annual failure rate of ~1.5%.
Another issue with RAID is if an add-in RAID controller card is used. This introduces another point of failure. While most RAID cards will last a lifetime, approximately ~3% fail per year. In the event of a RAID card failure, you run the risk of your data being corrupted or entirely lost. Using on-board RAID is risky as well, if the mainboard fails, you risk losing the array, and your data. Either one will likely end up causing you a lot of downtime and misery.
So Which is the Better Option?
SSDs offer undoubtedly superior dedicated performance over RAID 1 using SATA or SAS spinning disks. So the performance question is really no contest.
Now let’s revisit the reliability numbers quickly;
- SSD annual failure rate- ~1.5%
- SATA annual failure rate- ~5%
- RAID card annual failure rate- ~3%
It seems the question of reliability is also undisputed. When SSDs are backed up nightly to SATA your data is safer than if you use utilize two spindle drives in RAID1. A few things to note, SATA and SAS often begin to fail gradually with a decline in performance, while SSDs could be prone to sudden failures without prior warning in certain environments. So while an SSD dies a sudden death with no warning, you at least have that backup drive to restore from. While spinning disks often die a slow death with warning signs that the end is near, during that gradual death cycle the symptoms of the failing drive(s) might very well lead to data corruption on both drives. Under this scenario you are restoring from a backup (hopefully) anyway. Additionally, if one of your drives in a RAID array is failing it raises the likelihood the other drive will also fail soon. SSDs can survive extreme temperatures as well as increased wear and tear due to a lack of moving parts. Spinning disks can become damanaged from the slight vibrations or jostling during hands-on maintenance. Our conclusion is when used in a secure environment, SSDs are more likely to enjoy increased reliability over SATA RAID 1. This is reflected in their mean time between failures of over two millions hours. When used in conjunction with a SATA backup, the risk of data loss is significantly less than when using RAID 1 alone.