# Recollocation shard is not working

**URL:** <https://discuss.elastic.co/t/recollocation-shard-is-not-working/42365>\
**Category:** Elasticsearch\
**Created:** [February 22, 2016, 8:17am UTC](https://discuss.elastic.co/t/recollocation-shard-is-not-working/42365 "2016-02-22T08:17:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Diaz\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Juan\_Diaz\_Gonzalez](https://discuss.elastic.co/u/Juan_Diaz_Gonzalez)\
**Post date:** [February 22, 2016, 8:17am UTC](https://discuss.elastic.co/t/recollocation-shard-is-not-working/42365/1 "2016-02-22T08:17:31Z")

</div>

Hello,

I have a problem with Elasticsearch, one of my nodes failed and after this I wake up it and it is my cluster again and it is recognized by the other nodes inside the cluster.

Aparently all is working correctly but the problem is that the shards don´t allocate in the new node so in this way I only have two of three nodes in my cluster with data, and the cluster state is yellow because I have a replica shard that it is initializing all time and it is not posible to allocate in any node.

| Node 1 with data | | Node 2 with data | **| Node 3 NO DATA |**

I have a replica shard that it is initializing too and It is imposible for me recollocate in any node with the directive reroute for the replica shard that it is initializing:

```
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
     "commands": [
        {
            "allocate": {
                "index": "'$INDEX'",
                "shard": '$SHARD',
                "node": "'$NODE'",
                "allow_primary": true
          }
        }
    ]
  }'

```

The configuration file that I have in this cluster for all nodes is:

```
cluster.name: elastic_16/12/2015

bootstrap.mlockall: true

gateway.type: local
gateway.recover_after_nodes: 1
gateway.recover_after_time: 5m
gateway.expected_nodes: 3

indices.recovery.max_bytes_per_sec: 100mb
discovery.zen.minimum_master_nodes: 2

discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["IP node 1", "IP node 2"]

path.logs: elasticsearch/logs
path.data: elasticsearch/data
path.work: elasticsearch/work
path.plugins: elasticsearch/plugins

http.cors.enabled: true
http.cors.allow-origin: /.*/
http.cors.allow-credentials: true 

index.routing.allocation.disable_allocation: false

```

The elasticsearch version that I have is the 1.4.4.

---

<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:14pm UTC](https://discuss.elastic.co/t/recollocation-shard-is-not-working/42365/2 "2017-07-05T23:14:31Z")

</div>


