# How to store shards in elasticsearch, when there are to path set(path.data)?

**URL:** <https://discuss.elastic.co/t/how-to-store-shards-in-elasticsearch-when-there-are-to-path-set-path-data/10870>\
**Category:** Elasticsearch\
**Created:** [February 25, 2013, 1:41am UTC](https://discuss.elastic.co/t/how-to-store-shards-in-elasticsearch-when-there-are-to-path-set-path-data/10870 "2013-02-25T01:41:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoony](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hoony](https://discuss.elastic.co/u/Hoony)\
**Post date:** [February 25, 2013, 1:41am UTC](https://discuss.elastic.co/t/how-to-store-shards-in-elasticsearch-when-there-are-to-path-set-path-data/10870/1 "2013-02-25T01:41:05Z")

</div>

I have one node elasticsearch cluster, and configure it with two path to  
store shadrs, like here path.data:/partone,/parttwo. The 1 GB hard disk was  
mounted on /partone folder and 5 GB hard disk was mounted on /parttwo  
folder. I used approximately 483 MB file to index, and then 536644 docs  
appeared in this node. When I remove the hole files in /partone folder, the  
number of docs became to 531833. It means some of docs were stored in  
/partone folder.

I read from elasticsearch website as follows: The multiple data locations  
allows to stripe it. The striping is simple, placing whole files in one of  
the locations, and deciding where to place the file based on the location  
with greatest free space.

And my question is if the striping is based on the location with greatest  
free space, the hole file should stored in parttwo folder which size is  
larger than partone folder's, isn't it? Why there exist a small file in  
folderone?

--  
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).  
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, 2:49am UTC](https://discuss.elastic.co/t/how-to-store-shards-in-elasticsearch-when-there-are-to-path-set-path-data/10870/2 "2017-07-06T02:49:46Z")

</div>


