RAID 5

  • Comments posted to this topic are about the item RAID 5

  • Thanks for the question.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • got this simple question wrong!.... 🙁

  • Nice question, thanks.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Hm... I found this on Wikipedia:

    A minimum of three disks is required for a complete RAID 5 configuration. In some implementations a degraded RAID 5 disk set can be made (three disk set of which only two are online), while mdadm supports a fully-functional (non-degraded) RAID 5 setup with two disks - which function as a slow RAID-1, but can be expanded with further volumes.

    So is it three or two?

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • It's three. Any redundant array with only two discs in it is not a RAID-5, whatever mdadm says, and a degraded RAID-5 array has no redundancy so is largely pointless...in fact, it would be more dangerous to have your data on such a thing than on a single drive, because a failure of either remaining drive will take out the lot!

  • Two drives are RAID 0 or 1, Three minimum for RAID 5. Why:

    Raid 1 is a mirror. 1 drive worth of data with two drives involved.

    Raid 5 is a parity drive. One drive holds the parity information (alright, it's spread across multiples, but let's keep it simpler). That means to have parity you need more then one drive for the third drive to have purpose. A 2 drive RAID 5 simply means that you've got one disk doing data storage, another doing parity... equivalent of a RAID 0 with two drives... with more overhead.

    Edit: Sorry, swapped 0 and 1 in my head. Moral: Do not post technical data without doublechecking after a long night at the bars.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • Thanks, Paul and Craig. I was actually going to answer 3, but then that article made me reconsider :w00t: Moral of the story, don't believe everything you read on the web. 😀

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • Good question

    M&M

  • Nice question, although RAID5 is a not really a good choice for databases ! (except limited cases with mostly read-only databases).

    Better use RAID 01 (i.e. RAID0-aggregate of RAID1-mirrored drives), which is good for reading, and also good for writing your database stuff.

  • Yay! I like easy points. Another little present from Steve.

    Thanks

    _____________________________________________________________________
    [font="Comic Sans MS"]"The difficult tasks we do immediately, the impossible takes a little longer"[/font]

  • I only got it right because I guessed correctly as to whether the author meant to ask about the number of drives needed for a complete Raid 5 array.

    This has the potential to be one of those controversial questions because "complete" was not specified and other configurations are possible. The other configurations may be pointless, dangerous, or just a bad idea but still possible.

  • dev-638705 (2/18/2011)


    Nice question, although RAID5 is a not really a good choice for databases ! (except limited cases with mostly read-only databases).

    If your data is sufficiently important to need protection and you don't want access to be hopelessly slow during recovery if you ever lose a disc and have to replace it, don't use RAID 5 even for completely read only databases!

    Better use RAID 01 (i.e. RAID0-aggregate of RAID1-mirrored drives), which is good for reading, and also good for writing your database stuff.

    RAID0 aggregate of RAID drives is generally called RAID10 (the 1 comes first because you make the RAID 1 objects first, then second comes 0: you stripe across the RAID1 objects). It is indeed the best way to go, but it isn't called RAID 01.

    Tom

  • Dave62 (2/18/2011)


    I only got it right because I guessed correctly as to whether the author meant to ask about the number of drives needed for a complete Raid 5 array.

    This has the potential to be one of those controversial questions because "complete" was not specified and other configurations are possible. The other configurations may be pointless, dangerous, or just a bad idea but still possible.

    I don't think any guess was needed, because the question was about "to form a RAID 5 array". You can have one that currently has only two or the three discs in discs in it, when one disc has failed and the other two are still OK, but when to form it you need all three discs.

    So I don't think there's any real potential for this one to become controversial. It was a good straightforward question with a good straightforward answer.

    Tom

  • Tom.Thomson (2/18/2011)


    dev-638705 (2/18/2011)


    Nice question, although RAID5 is a not really a good choice for databases ! (except limited cases with mostly read-only databases).

    If your data is sufficiently important to need protection and you don't want access to be hopelessly slow during recovery if you ever lose a disc and have to replace it, don't use RAID 5 even for completely read only databases!

    Better use RAID 01 (i.e. RAID0-aggregate of RAID1-mirrored drives), which is good for reading, and also good for writing your database stuff.

    RAID0 aggregate of RAID drives is generally called RAID10 (the 1 comes first because you make the RAID 1 objects first, then second comes 0: you stripe across the RAID1 objects). It is indeed the best way to go, but it isn't called RAID 01.

    My $0.0203 (the exchange rate from CAD is good right now)

    RAID 01 and RAID 10 are technically different setups (of course some people/vendors reverse the meaning for fun):

    RAID 01 is a mirror of stripes ((1,3,5)(2,4,6))

    RAID 10 is a stripe of mirrors ((1,2)(3,4)(5,6))

    There was a discussion a while back on SQLServerCentral about the redundancy provided which basically came down to: use RAID 10 you can survive more failure combinations. In practice I don't think I've ever seen a RAID 01 array but it is possible.

Viewing 15 posts - 1 through 15 (of 31 total)

You must be logged in to reply to this topic. Login to reply