# Relocation of shards didn't happen as expected

**URL:** <https://discuss.elastic.co/t/relocation-of-shards-didnt-happen-as-expected/135490>\
**Category:** Elasticsearch\
**Created:** [June 12, 2018, 9:00am UTC](https://discuss.elastic.co/t/relocation-of-shards-didnt-happen-as-expected/135490 "2018-06-12T09:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikrant\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@Vikrant\_Aggarwal](https://discuss.elastic.co/u/Vikrant_Aggarwal)\
**Post date:** [June 12, 2018, 9:00am UTC](https://discuss.elastic.co/t/relocation-of-shards-didnt-happen-as-expected/135490/1 "2018-06-12T09:00:51Z")

</div>

I am following the below link to understand the ES index roll operation.

> **[And the big one said "Rollover" — Managing Elasticsearch time-based indices...](https://www.elastic.co/blog/managing-time-based-indices-efficiently)**
>
> Introducing the new Rollover Pattern, and the APIs which support it, which is a simpler, more efficient way of managing time-based indices in Elasticsearch.

My setup consists of following nodes:

- 1 client node
- 3 master nodes
- 3 data nodes

Only change which i have done is relocating the active-logs-1 index to cold nodes which in my case is (hdd) using the following command since the command giving in link was not working for me.

```auto
http://localhost:9200/active-logs-1/_settings
{
  "index.blocks.write": true,
  "index.routing.allocation.include.box_type": "hdd"
}

```

After this relocation happened successfully on data-node-3 which is tagged as hdd but it has created replica also for inactive-logs\* which I was not expecting as per template which I used to create inactive index. PLease find the attached screenshot showing inactive-logs-\* with replica I was expecting it to only show the primary replica on data-node-3 Note: I have not yet followed the steps to create replica of inactive-logs-\* as mentioned in link.

---

<div class="post-metadata">

**Author:** ![Vikrant\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@Vikrant\_Aggarwal](https://discuss.elastic.co/u/Vikrant_Aggarwal)\
**Post date:** [June 12, 2018, 9:02am UTC](https://discuss.elastic.co/t/relocation-of-shards-didnt-happen-as-expected/135490/2 "2018-06-12T09:02:28Z")

</div>

![45%20PM](https://us1.discourse-cdn.com/elastic/original/3X/7/7/77dce749d6c9be154d29ba8cbdfa0722cdad1f30.png)

---

<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 10, 2018, 9:02am UTC](https://discuss.elastic.co/t/relocation-of-shards-didnt-happen-as-expected/135490/3 "2018-07-10T09:02:29Z")

</div>

Closed on July 10, 2018, 9:02am UTC

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