# Elasticsearch.yml path config

**URL:** <https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919>\
**Category:** Elasticsearch\
**Created:** [October 9, 2019, 11:05pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919 "2019-10-09T23:05:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvegaucr1](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fvegaucr1](https://discuss.elastic.co/u/fvegaucr1)\
**Post date:** [October 9, 2019, 11:05pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919/1 "2019-10-09T23:05:56Z")

</div>

Im currently building a cluster following hot warm arch.  
I have 3 master nodes with 2 OS drives as RAID1  
20 data nodes Each of them with 2 OS drives as RAID1 and 8 drives, configure as JBOD.

Based on server roles. I only want to use 2 drives for OS or master node tasks related data.

For the 20 data nodes I want to use 8 drives for ES data.

My question is when I set the elasticsearch.yml config file, should the config **path** needs to be different for each host baed on its role, for example for the master node config file, should it have only one path and for the data nodes should its config file have multiple paths like:  
FOR MASTER NODES

> path:
> 
> - /data/ES

FOR DATANODES

> path:
> 
> - /data1/ES
> - /data2/ES...
> - /data8/ES

Or should the configs on both types of roles should show all the paths.

---

<div class="post-metadata">

**Author:** ![fvegaucr1](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fvegaucr1](https://discuss.elastic.co/u/fvegaucr1)\
**Post date:** [October 15, 2019, 5:31pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919/2 "2019-10-15T17:31:23Z")

</div>

I set the path.data config based on the role, so for example master nodes will use

> `path.data: /data`

and hot/warm/cold servers will be using

> path.data:
> 
> - /data1/es
> - /data2/es
> - /data3/es
> - /data4/es

I started the cluster and seem to be ok, however I havent collect any data yet. Will this create issues in the future?, is this the right way to do it?

---

<div class="post-metadata">

**Author:** ![fvegaucr1](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fvegaucr1](https://discuss.elastic.co/u/fvegaucr1)\
**Post date:** [October 16, 2019, 6:36pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919/3 "2019-10-16T18:36:30Z")

</div>

By the way elasticsearch version is 7  
@ [Badger](https://discuss.elastic.co/u/Badger)

---

<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:** [November 13, 2019, 6:41pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-path-config/202919/4 "2019-11-13T18:41:18Z")

</div>

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