# Cluster RED, unassigned shards

**URL:** <https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951>\
**Category:** Elasticsearch\
**Created:** [September 17, 2020, 9:45am UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951 "2020-09-17T09:45:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alkarp/32/75749_2.png) [@alkarp](https://discuss.elastic.co/u/alkarp)\
**Post date:** [September 17, 2020, 9:45am UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951/1 "2020-09-17T09:45:09Z")

</div>

After complete cluster restart have all the indices shards unassigned.

662 indices  
820 shards in summary  
3 master nodes  
3 data nodes

Master and data nodes are up, and it says "can\_allocate" : "yes", however shards stay UNASSIGNED.

[http://cluster:9200/\_cluster/allocation/explain?pretty](http://cluster:9200/_cluster/allocation/explain?pretty)

```
{
  "index" : "INDEX-NAME-2020.09.11-000101",
  "shard" : 0,
  "primary" : true,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "CLUSTER_RECOVERED",
    "at" : "2020-09-17T08:16:44.145Z",
    "last_allocation_status" : "no_valid_shard_copy"
  },
  "can_allocate" : "yes",
  "allocate_explanation" : "can allocate the shard",
  "target_node" : {
    "id" : "ByPaeoenTvOjuF74CDn2Kw",
    "name" : "NNODE02",
    "transport_address" : "SNIP:9300",
    "attributes" : {
      "ml.machine_memory" : "33567047680",
      "ml.max_open_jobs" : "20",
      "xpack.installed" : "true",
      "transform.node" : "true"
    }
  },
  "allocation_id" : "_3xOIvAKSAamMBOblElQqw",
  "node_allocation_decisions" : [
    {
      "node_id" : "ByPaeoenTvOjuF74CDn2Kw",
      "node_name" : "NODE01",
      "transport_address" : "SNIP:9300",
      "node_attributes" : {
        "ml.machine_memory" : "33567047680",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "yes",
      "store" : {
        "in_sync" : true,
        "allocation_id" : "_3xOIvAKSAamMBOblElQqw"
      }
    },
    {
      "node_id" : "YAL9edThQwKT5DntaYNcow",
      "node_name" : "NODE03",
      "transport_address" : "SNIP:9300",
      "node_attributes" : {
        "ml.machine_memory" : "33567047680",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "store" : {
        "found" : false
      }
    },
    {
      "node_id" : "ZsEiXQ0jSgu6GHWFg17KPQ",
      "node_name" : "NODE03",
      "transport_address" : "SNIP:9300",
      "node_attributes" : {
        "ml.machine_memory" : "33567039488",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "store" : {
        "found" : false
      }
    }
  ]
}

```

All shards are unassigned (just a snip below):  
[http://cluster:9200/\_cat/shards](http://cluster:9200/_cat/shards)

```
INDEX-NAME-1-2020.09.14-000005 0 p UNASSIGNED    
INDEX-NAME-2-2020.09.10-000059 0 p UNASSIGNED    
INDEX-NAME-3-2020.08.22-000126 0 p UNASSIGNED    

```

And stores are allocated but not used (just a snip again):  
[http://elasticsearch.hq.trayport.com:9200/\_shard\_stores?pretty](http://elasticsearch.hq.trayport.com:9200/_shard_stores?pretty)

```
{
  "indices" : {
    "INDEX-NAME-1-2020.07.15-000088" : {
      "shards" : {
        "0" : {
          "stores" : [
            {
              "ByPaeoenTvOjuF74CDn2Kw" : {
                "name" : "NODE02.hq.trayport.com",
                "ephemeral_id" : "rySOjmTgTe-myLmCmq0ZaQ",
                "transport_address" : "SNIP:9300",
                "attributes" : {
                  "ml.machine_memory" : "33567047680",
                  "ml.max_open_jobs" : "20",
                  "xpack.installed" : "true",
                  "transform.node" : "true"
                }
              },
              "allocation_id" : "t1EuiFuqQh6I0A0KfgVl6Q",
              "allocation" : "unused"
            }
          ]
        }
      }
    },
```

---

<div class="post-metadata">

**Author:** ![alkarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alkarp/32/75749_2.png) [@alkarp](https://discuss.elastic.co/u/alkarp)\
**Post date:** [September 17, 2020, 11:19am UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951/2 "2020-09-17T11:19:08Z")

</div>

This issue has been resolved after doing full custer restart three times ☹

---

<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 17, 2020, 10:03pm UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951/3 "2020-09-17T22:03:38Z")

</div>

What version are you on?

---

<div class="post-metadata">

**Author:** ![alkarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alkarp/32/75749_2.png) [@alkarp](https://discuss.elastic.co/u/alkarp)\
**Post date:** [September 21, 2020, 10:42am UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951/4 "2020-09-21T10:42:02Z")

</div>

7.8.0

---

<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 19, 2020, 10:42am UTC](https://discuss.elastic.co/t/cluster-red-unassigned-shards/248951/5 "2020-10-19T10:42:15Z")

</div>

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