Skip to main content
RAID-1 vs. RAID-5 Explained!

In my line of business, I often meet customers whom asked me questions about RAID (Redundant Array of Independent Disks) as they have been misled and/or confused by IT vendors whom are either out to make the most money from the customer by selling more storage/disks or they don't have an understanding of the customer's applications and storage needs.

Some of the most popular RAID questions I come across are:
  1. I want RAID-5 as it is a better and faster than RAID-1. Is it?
  2. Should I install the operating system (OS) and put data in different partitions of RAID-5?
  3. Is it ok if we divide a RAID into two partitions?
  4. Does RAID-5 take a long time to rebuild?

Is RAID-5 (hardware-based RAID) a better solution than RAID-1?
Based on my experiences with MS Windows, Linux and UNIX-based (Solaris, AIX, HP-UX) operating systems since year 1996, choosing a RAID level actually depends on what application(s) you are implementing.


RAID-1 characteristics
  • One Write or two Reads possible per mirrored pair
  • Twice the Read transaction rate of single disks, same Write transaction rate as single disks
  • 100% redundancy of data means no rebuild is necessary in case of a disk failure, just a copy to the replacement disk
  • Transfer rate per block is equal to that of a single disk
  • Simplest RAID storage subsystem design















RAID-5 characteristics
  • Highest Read data transaction rate
  • Medium Write data transaction rate
  • Low ratio of ECC (Parity) disks to data disks means high efficiency
  • Good aggregate transfer rate













Based on the above characteristics of RAID-1 and RAID-5, I will not recommend using of RAID-5 technology for any servers that is bound to have write-intensive operations as RAID-5 has slower write data transaction rate than RAID-1 due to the many disks and generating of ECC Parity factor.

From my personal experiences, RAID-5 performance is notoriously slow for small-writes, because of the CPU overhead that each write requires. The overhead is worse if the RAID-5 is software-based. Hardware-based RAID-5 is better, but still not as fast as RAID-1.

Of course, RAID-1 requires a great deal of extra disk space (double the usable space you need), so you pay for each approach in different ways. So, if you are implementing an email server with more than 50-mailboxes, you will be expecting a lot of disk I/O as there will be a lot of write-intensive operations. So, if you need performance and you have a backup strategy, I recommend that you use RAID-1 or RAID-10.


Can you put the OS on RAID-5?
Yes, you definitely can. After that, you will find that your server overall performance will suffer from performance degradation.

Can you divide a RAIDed slice into multiple partitions?
It depends. You may be able to do this, depending on the hardware, operating systems and software you use. I think you'd be better served by having two or more separate RAID slices, and assigning each to a separate file system.

Does RAID-5 take a long time to rebuild?
Short answer: YES. Long answer: It depends on how large the RAID-5 slice is, how many disks you striped it across, the I/O speed of the disks involved, the CPU speed of the system(s) involved, how much other work is underway and many other factors. I have seen large, poorly configured RAID-5 slices that take days to rebuild.

How to optimally deploy RAID-5?
I have met some IT Managers whom due to IT budget constraints could not afford to buy more than 3 hard-drives for their RAID-5 implementations. For your knowledge, the optimal configuration for RAID-5 is to have data spread across four to six disks. Fewer than that is not worth it and you may as well deploy RAID-1 as it will be cheaper and a lot faster! More than that invites trouble by increasing the likelihood of multiple disk failures.

Oh, by the way... more disks require more time to rebuild.

References:

Comments

Popular posts from this blog

OpenProj - FREE alternative to Microsoft Project I wanted to share with all of you about Projity's important announcement last week at LinuxWorld. Projity announced the release of OpenProj, a FREE (yeah, another FREE software) and open source replacement of Microsoft Project. OpenProj is available on Windows, Linux, Unix or Mac and is interoperable with Microsoft Project. The best thing is, it even opens existing MS Project files! How cool is that? I read on OpenProj website that OpenProj has been downloaded on an average every 35 seconds around the clock at http://www.projity.com since they launched and made the software available last week. OpenProj is now in the 99.99th percentile for activity on Sourceforge.net and is quickly becoming one of the most used open source solutions worldwide. The OpenProj folks are expecting about 11 million worldwide users and in my opinion, this has been an excellent start for them. MS Project has been a key strategic solution for Micro...
In early April 2006, I sign-up for the Excellerated Business School for Entrepreneurs (BSE) after a preview session held in Singapore by Executive-Directions. The seminar was held from 15 April to 23 April 2006 in Subang Jaya Hotel in Kuala Lumpur, Malaysia. The BSE in KL was organized by GlobeSL Sdn Bhd. I left Singapore on 14 April via Transtar , the only 1st class coach service which has 16 seats to create a lot of room for your leg. They also provide hot meal during the journey with hot drinks on demand. The seats are equipped with a massage chair, a personal in-flight entertainment system on LCD screen, PC Games and the F&B Attendant will provide anything that you ask for. From newspaper, magazines, blanket, hot/cold drinks, a new set of earphones for the entertainment system... they have it all. They are most courteous and polite at all times. I truly enjoy the Transtar service. For SG$50 from Singapore to KL, it's worth it. I arrived in Subang Jaya Hotel at about 10p...

What Makes a Champion?

By NG Chang Siang, Education Success Coach MindChamps Holdings Ltd ‘’ What makes a champion is a champion mindset. The champion mindset is the transferable commodity, not the skill itself. If you have done something great in one field, you are far more likely to do it in another ‘’ --Professor Allan Snyder FRS I have a good friend who is a primary school teacher. He also takes on as a role of a coach in flaw ball for the students in his school. Guess what? He never play flaw ball before. Not even that, after he coached his students, they won a school team which was coached by a national flawball player. That day I met him in our soccer game as we play soccer together every Monday. He played soccer very well and represented his schools when he was very young. I ask him : “ How did you do it…?” “ How can someone with no flaw-ball playing experience train and beat another team whom has an experience coach?” He replied: “ Oh, I just use the strategy I know in playing soccer and apply...