RAID 5 Discouraged ?

598 views
Skip to first unread message

Reinaldo

unread,
Jan 20, 2011, 2:00:21 PM1/20/11
to mongodb-user
We are redoing some of our servers and it seems like raid 5 would be a
good option (price/benefits) however in a couple of posts on this
group as well as on the mongodb site the RAID 5 is greatly discouraged

From the site:

http://www.mongodb.org/display/DOCS/Developer+FAQ#DeveloperFAQ-WhatRAIDshouldIuse%3F
What RAID should I use?
We recommend not using RAID-5, but rather, RAID-10 or the like. Both
will work of course.


Can someone shed some light on why RAID 5 is bad for Mongo DB ?


Andreas Jung

unread,
Jan 20, 2011, 2:04:56 PM1/20/11
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reinaldo schrieb:


http://www.cyberciti.biz/tips/raid5-vs-raid-10-safety-performance.html

Google "raid 5 vs raid 10" ...

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNOIdYAAoJEADcfz7u4AZj074Lv3t3CRZSbLKFykv/4xdtHC+V
mfZWTDdw/6h6GE8ELk/FToPGMS7CBwWsNvmKMN4zyxS6PNhW0B/29Gxp85ULUdNg
BNceOfm5nTeiRCO9//nm9PM1KR+WrSgqP7zV/XK3ZNnPFS/Av2R5Yqz+o2gQhSS5
LT48wzz1zSh3kpK/jscr521taFqB10cl0L4JugFNK1+E9MihGJyq7b7I9Y/Hmutu
aWuP/gn/nnfH9FbYfoPkw+l5iODFKAIxm9Nn6E04mNLX8EXWlfLnAfDT1VFYzBDv
yu22xFCsc+cszvGd0MgRZJwnHdEsGMsMSxbl6piARqaqbJNedDfbTI1NCQFkvZdg
+HpbEAw+CKSn6IffmAdypRcxcJU1DLJlWTtMQyoxu8fBGGt6cBfgFbJzLcBXTol0
bIaccpcEEgSQJHVMQ0XO5+MLwzdXqNM9vWKSi/TG2DpoeT/hqEpEx/q+DqRfTyME
nG/Or5BCHrE4Ww++zmTHmaNzBnexsZo=
=qbCg
-----END PGP SIGNATURE-----

lists.vcf

Alvin Richards

unread,
Jan 20, 2011, 3:18:23 PM1/20/11
to mongodb-user
Bear in mind that not implementations of RAID are the same, esp.
software but there are also many differences between RAID cards and
Storage vendors.

RAID10
- pros : provide protection of a disk failure and stripping so that
you aggregate the IO across the Disks
- cons : needs double the disk capacity

RAID5
- pros : need to dedicate a single disk for parity, so cheaper to
implement that RAID10. Protection against a single disk failure
- cons : depending on the implementation, the parity disk can get very
hot (in terms of IO needs)

RAID6
- pros : need to dedicate a two disks for parity, so cheaper to
implement that RAID10. Protection against a single double failure
- cons : lower chance of parity disk get hot

I have seen great numbers on RAID10 and RAID5... so it comes down to
what you want to protect against and how you want to manage your disk
infra-structure.

-Alvin


On Jan 20, 11:04 am, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Reinaldo schrieb:
>
> > We are redoing some of our servers and it seems like raid 5 would be a
> > good option (price/benefits) however in a couple of posts on this
> > group as well as on the mongodb site the RAID 5 is greatly discouraged
>
> > From the site:
>
> >http://www.mongodb.org/display/DOCS/Developer+FAQ#DeveloperFAQ-WhatRA...
> > What RAID should I use?
> > We recommend not using RAID-5, but rather, RAID-10 or the like. Both
> > will work of course.
>
> > Can someone shed some light on why RAID 5 is bad for Mongo DB ?
>
> http://www.cyberciti.biz/tips/raid5-vs-raid-10-safety-performance.html
>
> Google "raid 5 vs raid 10" ...
>
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJNOIdYAAoJEADcfz7u4AZj074Lv3t3CRZSbLKFykv/4xdtHC+V
> mfZWTDdw/6h6GE8ELk/FToPGMS7CBwWsNvmKMN4zyxS6PNhW0B/29Gxp85ULUdNg
> BNceOfm5nTeiRCO9//nm9PM1KR+WrSgqP7zV/XK3ZNnPFS/Av2R5Yqz+o2gQhSS5
> LT48wzz1zSh3kpK/jscr521taFqB10cl0L4JugFNK1+E9MihGJyq7b7I9Y/Hmutu
> aWuP/gn/nnfH9FbYfoPkw+l5iODFKAIxm9Nn6E04mNLX8EXWlfLnAfDT1VFYzBDv
> yu22xFCsc+cszvGd0MgRZJwnHdEsGMsMSxbl6piARqaqbJNedDfbTI1NCQFkvZdg
> +HpbEAw+CKSn6IffmAdypRcxcJU1DLJlWTtMQyoxu8fBGGt6cBfgFbJzLcBXTol0
> bIaccpcEEgSQJHVMQ0XO5+MLwzdXqNM9vWKSi/TG2DpoeT/hqEpEx/q+DqRfTyME
> nG/Or5BCHrE4Ww++zmTHmaNzBnexsZo=
> =qbCg
> -----END PGP SIGNATURE-----
>
>  lists.vcf
> < 1KViewDownload

Keith Branton

unread,
Jan 20, 2011, 5:36:30 PM1/20/11
to mongod...@googlegroups.com
I suspect the biggest problem with raid 5 would be the performance of the array when running in degraded mode. They are also slower doing writes than raid 10 (though some very high end raid cards with huge cache memory minimize that)

The anecdotal evidence: I worked for a web site that had used raid 5 for their oracle database, and pretty much went down during the rebuild. All the web servers were completely backed up, and waiting for the database. You can bet they got off raid 5 sharpish after that - they went to raid 10.

There's also a fair chance of data loss with raid 5 if you believe this article: http://www.zdnet.com/blog/storage/why-raid-6-stops-working-in-2019/805 "The crux of the problem" section. I'd rather not believe it but have no evidence to the contrary. That is why my main database is 2 replica set nodes, both on raid 10 arrays - 4 copies of the data - and daily offsite backups and incremental local backups. If I had the budget I'd invest in another node right away.

If the risk of some unexpected downtime here and there, and overall performance isn't as important to you as price, though, maybe raid 5 or raid 6 are worth considering - they are certainly cheaper.

@Andreas - your description of Raid 5 sounds more like raid 4. In raid 5 the parity is evenly distributed across the array.


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Reply all
Reply to author
Forward
0 new messages