# Multiple data paths in data node

**URL:** <https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 1:44pm UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239 "2017-12-18T13:44:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibyakanta](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)\
**Post date:** [December 18, 2017, 1:44pm UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/1 "2017-12-18T13:44:37Z")

</div>

Hi,

I have 6 Data Nodes. And I want to use multiple data paths for saving the data of all nodes.

So how many paths shall I mention in each node's elasticsearch.yml file?

Thanks,  
Dibyakanta

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [December 18, 2017, 3:20pm UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/2 "2017-12-18T15:20:53Z")

</div>

Hi @Dibyakanta

You can configure it as follows:  
path.data: [/mnt/path\_1, /mnt/path\_2, /mnt/path\_3]

---

<div class="post-metadata">

**Author:** ![Dibyakanta](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)\
**Post date:** [December 19, 2017, 4:13am UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/3 "2017-12-19T04:13:01Z")

</div>

Thanks for the reply.

But as I have 6 data nodes. So what I am asking is how many paths should I mention in each node's yml file?

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [December 19, 2017, 11:05am UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/4 "2017-12-19T11:05:07Z")

</div>

On each node you can have 2 devices. Remembering that the disks do not work as a failover, the data is stored on both disks. I recommend you to take care of balancing issues when using mult path,  
typically each segment is stored on each partition, not exactly how this works if you need to merge the data.

---

<div class="post-metadata">

**Author:** ![Dibyakanta](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)\
**Post date:** [December 19, 2017, 1:52pm UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/5 "2017-12-19T13:52:56Z")

</div>

Is there any hard and fast rule that for each node I must use 2 devices.  
Or is it your recommendation.

Can you help me with how shards and replicas are distributed over multiple data paths. I have 5 shards and 1 replica for each node.

---

<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:** [January 16, 2018, 1:52pm UTC](https://discuss.elastic.co/t/multiple-data-paths-in-data-node/112239/6 "2018-01-16T13:52:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
