Index UNASSIGNED CLUSTER_RECOVERED

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.

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:

{
    "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:

"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
      }
  }
}

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.

1 Like

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

1 Like

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