# Multiple datadir vs RAID0

**URL:** <https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981>\
**Category:** Elasticsearch\
**Created:** [December 21, 2013, 9:20am UTC](https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981 "2013-12-21T09:20:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![briche\_arnaud](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@briche\_arnaud](https://discuss.elastic.co/u/briche_arnaud)\
**Post date:** [December 21, 2013, 9:20am UTC](https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981/1 "2013-12-21T09:20:01Z")

</div>

Hi all,

I'm planning on deploying an ES cluster soon; machines will be equipped  
with 4 x 240GB SSD drives, and I wonder what's the pros and cons of having  
multiple data dirs vs having a setup with the 4 drives in RAID0 ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fd73a72a-5c60-4382-85b2-56824d3a1dd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd73a72a-5c60-4382-85b2-56824d3a1dd4%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 21, 2013, 9:28am UTC](https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981/2 "2013-12-21T09:28:15Z")

</div>

Multiple data dirs seems pointless, what were you hoping to achieve with  
that?

I'd go RAID0, let ES handle the redundancy at a higher level (with  
replicas).

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 21 December 2013 20:20, briche arnaud [briche.arnaud@gmail.com](mailto:briche.arnaud@gmail.com) wrote:

> Hi all,
> 
> I'm planning on deploying an ES cluster soon; machines will be equipped  
> with 4 x 240GB SSD drives, and I wonder what's the pros and cons of having  
> multiple data dirs vs having a setup with the 4 drives in RAID0 ?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/fd73a72a-5c60-4382-85b2-56824d3a1dd4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd73a72a-5c60-4382-85b2-56824d3a1dd4%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624aNjnpPcvDoHnGKprXf-X3iOf5ttaH\_9C6smYUWT62SXA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624aNjnpPcvDoHnGKprXf-X3iOf5ttaH_9C6smYUWT62SXA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 21, 2013, 6:45pm UTC](https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981/3 "2013-12-21T18:45:50Z")

</div>

RAID0: hardware, with sliced drives (all drives are the same) give optimal  
speed

multiple data dirs: software, can not be reverted, config overhead if disk  
sizes and speeds are unbalanced

Many controllers support JBOD (concatenating different sized drives into  
one drive). I'd even prefere JBOD over multiple data dirs.

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGtiPkJUkgDsrkkRjkeCTWAiundGOsODnVM-E4GLjyb4g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGtiPkJUkgDsrkkRjkeCTWAiundGOsODnVM-E4GLjyb4g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:59am UTC](https://discuss.elastic.co/t/multiple-datadir-vs-raid0/14981/4 "2017-07-06T01:59:47Z")

</div>

Closed on July 6, 2017, 1:59am UTC


