Skip to content

shannonlowder.com

Menu
  • About
  • Biml Interrogator Demo
  • Latest Posts
Menu

70-450:Implementing RAID Solutions

Posted on October 26, 2011October 25, 2011 by slowder

Problem 1

Developers come to you with a new physical database server that hosts a single database. It’s going to be your responsibility now. Currently the server is running off a single hard drive, the operating system and database files are all on that one drive. You realize you have to provide some fault tolerance for this system. After some monitoring you determine the database has a high level of reads and writes. You also learn many of the waits experienced by end users are coming from the I/O subsystem. You need to provide greater throughput to your discs. This database is not the most critical database in your infrastructure, so funds aren’t going to be unlimited, you’ll have to justify the costs associated with the new RAID solution you come up with. What RAID solution do you suggest?

RAID 5. You want to provide fault tolerance. You want to improve I/O performance, and money is a consideration.

While RAID 10 would give you more fault tolerance, you’d have to request at least one additional drive to set it up. With RAID 10 you’d lose 1/2 the space you put into the RAID, versus RAID 5 you’d only lose 1/3 of the space (given a 3 drive design). Since cost is a consideration, RAID 5 is the better choice.

Also, you get a write penalty with RAID 10 that you wouldn’t get with RAID 5, though you could just as easily argue you get a read boost with RAID 10. Given that reads and writes are fairly equal in the example, we’re going to count the RAID 10 write penalty.

Problem 2

You’re have 6 drives on hand to put into your new database server for data files and log files. This server is going to host a single database that has VERY high writes. You cannot afford to be down due to a single drive failure. What suggestions do you have in regard to RAID design for this server?

Two RAID volumes, Both RAID 5 When you have very high write volume on your database you’re going to want to separate your data files from your log files. By splitting the log files from your data files you can write to the data file at the same time you’re writing to the transaction logs. This speeds up your write performance remarkably!

Given your need to stand up to fault tolerance You can’t use RAID 0, although that could be built to be VERY fast for reads and writes. If a single drive fails, you lose the array.

You could use RAID 1 to stand up to fault tolerance, but there is a write penalty, you can only write to one drive at a time, the other is written to by your RAID controller, and is simply a copy of the data you just wrote to the first drive.

Given you only have 6 drives you could build a 6 drive RAID 10, but you’ll end up sharing I/O between the data and log files. Plus you lose 3 drives worth of space. With two RAID 5s you only lose 2 drives worth of space.

Problem 3

Now, let’s consider three parts of your database server, the OS, the transaction logs, and the data files. We cannot be down due to a single drive failure. The data files should have greater throughput than the OS. You already know transaction logs and data files should not live on the same drive, know the OS should not be on the same drive as your transaction logs or data files. What RAID configuration do you suggest?

Three RAID volumes, two RAID 1, one RAID 5. We can’t allow a single drive failure to bring us down, so that eliminates RAID 0 for any one of the volumes. The only drive we have to worry with performance is the data files, so we’ll use RAID 5 for them.

The OS and logs can go on two separate RAID 1 volumes. That way we won’t go down with a single drive failure.

Summary

Get familiar with what each of the four main RAID solutions give you, and be aware of their costs.  Not all of them are measurable in dollars.  If you have any questions about RAID, or any other topic you need to learn in order to get ready for the 70-450, let me know!  I’m here to help.  When we come back to certification, we’re going to do some more optimizing for I/O, we’re going to dig into multiple data files, file groups and more.  Let’s squeeze all the performance we can out of your hardware…shall we?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • A New File Interrogator
  • Using Generative AI in Data Engineering
  • Getting started with Microsoft Fabric
  • Docker-based Spark
  • Network Infrastructure Updates

Recent Comments

  1. slowder on Data Engineering for Databricks
  2. Alex Ott on Data Engineering for Databricks

Archives

  • July 2023
  • June 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • October 2018
  • August 2018
  • May 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • March 2017
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • February 2013
  • January 2013
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • November 2004
  • September 2004
  • August 2004
  • July 2004
  • April 2004
  • March 2004
  • June 2002

Categories

  • Career Development
  • Data Engineering
  • Data Science
  • Infrastructure
  • Microsoft SQL
  • Modern Data Estate
  • Personal
  • Random Technology
  • uncategorized
© 2025 shannonlowder.com | Powered by Minimalist Blog WordPress Theme