# Unassigned shards after node was restarted

**URL:** <https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915>\
**Category:** Elasticsearch\
**Created:** [May 11, 2020, 4:06am UTC](https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915 "2020-05-11T04:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveenmak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenmak/32/22708_2.png) [@praveenmak](https://discuss.elastic.co/u/praveenmak)\
**Post date:** [May 11, 2020, 4:06am UTC](https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915/1 "2020-05-11T04:06:11Z")

</div>

I am using v7.5.2, I have 10 nodes, 6 Data nodes having 8 TB of data and there is plenty of space left.

I have an ILM policy to rollover index after a month from Hot to warm.

I restarted a node after minor config change and I have 60-80 unassigned shards.  
I have tried this API to allocate the replica.

POST \_cluster/reroute

```
 "allocate_replica": {
           "index": "prod-2020.04.23-100077",
           "shard": 0,
           "node": "10thnode"
}

```

I get this error constantly, spent whole day to resolve without much help.

{"error":{"root\_cause":[{"type":"remote\_transport\_exception" ...  
...

**[NO(node does not match index setting [index.routing.allocation.require] filters [data:"warm"])]**

...

Please note I have displayed only the "NO".

Any help please?

---

<div class="post-metadata">

**Author:** ![Caldero1n](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@Caldero1n](https://discuss.elastic.co/u/Caldero1n)\
**Post date:** [May 11, 2020, 6:02am UTC](https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915/2 "2020-05-11T06:02:25Z")

</div>

An unassigned shard means the master can not find any shard copies after the restart[!](https://tellthebell.onl/)

---

<div class="post-metadata">

**Author:** ![praveenmak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenmak/32/22708_2.png) [@praveenmak](https://discuss.elastic.co/u/praveenmak)\
**Post date:** [May 11, 2020, 3:51pm UTC](https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915/3 "2020-05-11T15:51:21Z")

</div>

The reason for Unassigned is because of "NODE\_LEFT" not because master didn't find any copies.

I found out from the "\_cat/shards" API.

---

<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:** [June 8, 2020, 3:51pm UTC](https://discuss.elastic.co/t/unassigned-shards-after-node-was-restarted/231915/4 "2020-06-08T15:51:25Z")

</div>

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