# Index UNASSIGNED CLUSTER\_RECOVERED

**URL:** <https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307>\
**Category:** Elasticsearch\
**Created:** [September 15, 2021, 3:52pm UTC](https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307 "2021-09-15T15:52:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [September 15, 2021, 3:52pm UTC](https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307/1 "2021-09-15T15:52:52Z")

</div>

I have a single node cluster with 1 replica on all my indices. Somehow however I have 2 indices unallocated `bin-dev` and `ilm-history-1-000004`.

```auto
GET /_cat/shards?h=index,shard,prirep,state,unassigned.reason
ilm-history-1-000004 0 r UNASSIGNED CLUSTER_RECOVERED
bin-dev 0 r UNASSIGNED CLUSTER_RECOVERED

```

When I call explain I only get an explanation for the ILM:

```auto
{
    "index": "ilm-history-1-000004",
    "shard": 0,
    "primary": false,
    "current_state": "unassigned",
    "unassigned_info": {
        "reason": "CLUSTER_RECOVERED",
        "at": "2021-09-15T15:01:43.155Z",
        "last_allocation_status": "no_attempt"
    },
    "can_allocate": "no",
    "allocate_explanation": "cannot allocate because allocation is not permitted to any of the nodes",
    "node_allocation_decisions": [
        {
            "node_id": "6tgOP8JVSmai0c0uR_Co7g",
            "node_name": "ecom-repository01",
            "transport_address": "10.3.249.128:9300",
            "node_attributes": {
                "ml.machine_memory": "34359136256",
                "xpack.installed": "true",
                "transform.node": "true",
                "ml.max_open_jobs": "20"
            },
            "node_decision": "no",
            "deciders": [
                {
                    "decider": "same_shard",
                    "decision": "NO",
                    "explanation": "the shard cannot be allocated to the same node on which a copy of the shard already exists [[ilm-history-1-000004][0], node[6tgOP8JVSmai0c0uR_Co7g], [P], s[STARTED], a[id=p9cgXDSiRgyfZPXMlDFD6Q]]"
                }
            ]
        }
    ]
}

```

What does this mean and how can I get it allocated?

Since I have no explanation for `bin-dev` I post the status:

```auto
"bin-dev": {
  "status": "yellow",
  "number_of_shards": 1,
  "number_of_replicas": 1,
  "active_primary_shards": 1,
  "active_shards": 1,
  "relocating_shards": 0,
  "initializing_shards": 0,
  "unassigned_shards": 1,
  "shards": {
      "0": {
          "status": "yellow",
          "primary_active": true,
          "active_shards": 1,
          "relocating_shards": 0,
          "initializing_shards": 0,
          "unassigned_shards": 1
      }
  }
}

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 15, 2021, 5:35pm UTC](https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307/2 "2021-09-15T17:35:25Z")

</div>

> [@cawoodm](#):
>
> What does this mean and how can I get it allocated?

You can't, you only have one node so you can only allocate primaries. You must set `number_of_replicas: 0` to remove these replicas.

---

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [September 16, 2021, 6:19am UTC](https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307/3 "2021-09-16T06:19:38Z")

</div>

Thanks David - my off by one error! Somehow I didn't realize that 1 replica means 2 things!

---

<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:** [October 14, 2021, 6:20am UTC](https://discuss.elastic.co/t/index-unassigned-cluster-recovered/284307/4 "2021-10-14T06:20:26Z")

</div>

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