# How to Share DOC between discs

**URL:** <https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591>\
**Category:** Elasticsearch\
**Created:** [December 29, 2017, 12:44pm UTC](https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591 "2017-12-29T12:44:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [December 29, 2017, 12:44pm UTC](https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591/1 "2017-12-29T12:44:05Z")

</div>

Gentlmen,

I am trying figured out how to set my ES to share the docs between two partition.

For example:  
First Partition is mounted in "/data1"  
Second Partition is mounted in "/data2"

My elasticsearch.yml has:

> path:  
> data:  
> - /data1  
> - /data2

But, for any reason, only the First Partition (/data1) is being populated.

Does anyone know which other configuration i have to do in elasticsearch.yml to share the docs between these partition ?

Thanks,  
CLaudio Ract

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [December 30, 2017, 4:40pm UTC](https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591/2 "2017-12-30T16:40:53Z")

</div>

It depends on how many shards you have. Elasticsearch will allocate a shard per disk. So depending on how shards and nodes you have, a few disks may still not be used until you have enough shards.

---

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [January 2, 2018, 12:57pm UTC](https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591/3 "2018-01-02T12:57:58Z")

</div>

Hi Thiago,

Per day, I have this volumn:

> -bash-3.00# curl -XGET 'localhost:9200/\_cat/indices?v&pretty'  
> health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
> yellow open dcr\_openet DPIiTJDKTNK5J\_cLbHar6w 5 1 274500000 0 51.7gb 51.7gb

I have only 416 GB available in this partition (data1)

So, as I have defined two partition in elasticsearch.yml file, ES will allocate automatically the /data2 partition if necessary ?

I dont need set any other configuration in my elasticsearch.yml to make this balance ?

---

<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 30, 2018, 12:58pm UTC](https://discuss.elastic.co/t/how-to-share-doc-between-discs/113591/4 "2018-01-30T12:58:04Z")

</div>

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