# Shard distribution using multiple path.data locations

**URL:** <https://discuss.elastic.co/t/shard-distribution-using-multiple-path-data-locations/83893>\
**Category:** Elasticsearch\
**Created:** [April 27, 2017, 3:36pm UTC](https://discuss.elastic.co/t/shard-distribution-using-multiple-path-data-locations/83893 "2017-04-27T15:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomx1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Post date:** [April 27, 2017, 3:36pm UTC](https://discuss.elastic.co/t/shard-distribution-using-multiple-path-data-locations/83893/1 "2017-04-27T15:36:25Z")

</div>

We have just added additional storage to our single node elasticsearch "cluster". I noticed that elasticsearch did not relocated some of the existing shards to the new location to use the storage evenly... thats not perfect but it's ok.

But i also noticed that every newly created index and all of it's shards are now also allocated to the new storage, which is kind of bad cause i have no advantages regarding search and index performance if elasticsearch is doing so... Although it's creating the folders in both paths (can't understand why) - we are using 2 shards and 0 replicas.

new storage:

```
user@host:~# ll /logdata2/nodes/0/indices/11bkYN0fQlaJ8Oc2qXBPmA/
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Apr 27 00:00 1
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Apr 27 00:00 0
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Apr 27 08:00 _state

```

vs. old storage:

```
user@host:~# ll /logdata/logging/nodes/0/indices/11bkYN0fQlaJ8Oc2qXBPmA
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Apr 27 08:00 _state

```

Is there a way to influence the shard allocation on different path.data locations?

---

<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:** [April 28, 2017, 8:10am UTC](https://discuss.elastic.co/t/shard-distribution-using-multiple-path-data-locations/83893/2 "2017-04-28T08:10:50Z")

</div>

> [@tomx1](#):
>
> Is there a way to influence the shard allocation on different path.data locations?

Nope, it'll auto-balance but I am not sure on if that is a shard or space type 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:** [May 26, 2017, 8:13am UTC](https://discuss.elastic.co/t/shard-distribution-using-multiple-path-data-locations/83893/3 "2017-05-26T08:13:26Z")

</div>

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