# Two different partitions in the same elaticsearch server

**URL:** <https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280>\
**Category:** Elasticsearch\
**Created:** [September 28, 2015, 6:13pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280 "2015-09-28T18:13:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [September 28, 2015, 6:13pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/1 "2015-09-28T18:13:49Z")

</div>

Hi Support,

How to manage two different partitions in the same elaticsearch server and both partitions should talk to kibana dashboard.

How to move indexes to the new partition in the same server by using an Elastic search.

Thanks,  
Ananth

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 28, 2015, 6:19pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/2 "2015-09-28T18:19:15Z")

</div>

When you say "partitions", do you mean cluster partitions (an Elasticsearch term describing a bad situation) or disk partitions? Or are you talking about something else?

---

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [September 28, 2015, 6:25pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/3 "2015-09-28T18:25:30Z")

</div>

its disk partition.

---

<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:** [September 29, 2015, 7:48am UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/4 "2015-09-29T07:48:10Z")

</div>

You can set multiple values in `path.data` to then use multiple partitions.

---

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [October 1, 2015, 5:48pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/5 "2015-10-01T17:48:25Z")

</div>

We have tried but it was not working, Please explain the detailed steps to follows.

And could you please let us know, if there is any alternative way.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 1, 2015, 6:10pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/6 "2015-10-01T18:10:50Z")

</div>

Please explain what you tried and we'll take it from there. Include configuration snippets, relevant logs, and explain what "not working" means to you.

---

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [October 1, 2015, 6:16pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/7 "2015-10-01T18:16:29Z")

</div>

We have followed the below steps.

1. We have added new file path in elasticsearch.yml at path.data
2. Moved some logs to new file path.
3. Restarted Elasticsearch and Kibana services.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 1, 2015, 6:26pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/8 "2015-10-01T18:26:28Z")

</div>

And the logs are actually read by Logstash and added to Elasticsearch? The reason could be that with the default setting of `index.store.distributor`, files will be stored in the directory with the most free space. You can change this to pick directories randomly. See the [directory layout documentation](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/setup-dir-layout.html). This behavior will change in ES 2.0; see [github.com/elastic/elasticsearch/issue #9498](https://github.com/elastic/elasticsearch/issues/9498)).

Note that ES won't balance the data between the data directories in the same way as shards are balanced between nodes in a cluster. The newly added partition will only be considered for newly created files, and the logs that you just ingested might not have triggered a segment merge that led to new files being created.

---

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [October 9, 2015, 4:40pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/9 "2015-10-09T16:40:30Z")

</div>

Hi Support,

Could you please let us know, how to do Shards allocation in primary partition and how to move those shards to secondary partition in a single server.

Thanks,  
Ananth

---

<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:** [October 9, 2015, 8:32pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/10 "2015-10-09T20:32:03Z")

</div>

You can't.

---

<div class="post-metadata">

**Author:** ![ananthanaidu](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ananthanaidu](https://discuss.elastic.co/u/ananthanaidu)\
**Post date:** [October 14, 2015, 5:55pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/11 "2015-10-14T17:55:33Z")

</div>

thanks, can we create one Shard in Primary Partition and create another Shard in Seconday Partition? If so is there a mechanism/tool to use to copy log files from one Shard to other Shard.

---

<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:** [October 14, 2015, 8:37pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/12 "2015-10-14T20:37:28Z")

</div>

Again, you can't.

You need to run multiple nodes on the one host to handle multiple mounts/partitions of different types (SSD/HDD).

---

<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 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/two-different-partitions-in-the-same-elaticsearch-server/31280/13 "2017-07-05T23:44:48Z")

</div>


