# ILM says it is waiting to allocate 1 shard (but it isn't)

**URL:** <https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 6, 2020, 2:28pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194 "2020-02-06T14:28:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanRoscigno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danroscigno/32/70277_2.png) [@DanRoscigno](https://discuss.elastic.co/u/DanRoscigno)\
**Post date:** [February 6, 2020, 2:28pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/1 "2020-02-06T14:28:07Z")

</div>

Hi Folks,  
I see this for all of my warm indices:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/554b904e092aa1ce2f07db0cc07b45ca9f18b286.png)

Here is the phase definition:  
{  
"policy": "filebeat-7.5.2",  
"phase\_definition": {  
"min\_age": "0ms",  
"actions": {  
"allocate": {  
"include": {},  
"exclude": {},  
"require": {  
"box\_type": "warm"  
}  
}  
}  
},  
"version": 2,  
"modified\_date\_in\_millis": 1580914699313  
}

and here is the policy:  
PUT \_ilm/policy/filebeat-7.5.2  
{  
"policy": {  
"phases": {  
"hot": {  
"min\_age": "0ms",  
"actions": {  
"rollover": {  
"max\_age": "3h",  
"max\_size": "50gb"  
}  
}  
},  
"warm": {  
"actions": {  
"allocate": {  
"include": {},  
"exclude": {},  
"require": {  
"box\_type": "warm"  
}  
}  
}  
},  
"delete": {  
"min\_age": "2d",  
"actions": {  
"delete": {}  
}  
}  
}  
}  
}

Here is the output of `GET /_cluster/allocation/explain`  
{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"  
},  
"status": 400  
}

Stack monitoring shows zero unassigned shards, that my warm node has 67% free space, and my hot nodes have 45% and 64% free space.

I am running 7.5.2 Filebeat, Logstash, Elasticsearch, and Kibana on Centos 7.0

---

<div class="post-metadata">

**Author:** ![DanRoscigno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danroscigno/32/70277_2.png) [@DanRoscigno](https://discuss.elastic.co/u/DanRoscigno)\
**Post date:** [February 6, 2020, 2:34pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/2 "2020-02-06T14:34:35Z")

</div>

Oops.

I bet it is because I have only one warm node. I will add another warm and see if the message goes away. I think the replicas for all of my warm indices are on my hot boxes at the moment.

---

<div class="post-metadata">

**Author:** ![DanRoscigno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danroscigno/32/70277_2.png) [@DanRoscigno](https://discuss.elastic.co/u/DanRoscigno)\
**Post date:** [February 6, 2020, 3:05pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/3 "2020-02-06T15:05:14Z")

</div>

🙂 That was it, I added a second warm node and everything is groovy. I will leave this here in case I forget again 🙂

---

<div class="post-metadata">

**Author:** ![Doc\_Kaos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doc_kaos/32/53671_2.png) [@Doc\_Kaos](https://discuss.elastic.co/u/Doc_Kaos)\
**Post date:** [February 6, 2020, 3:34pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/4 "2020-02-06T15:34:51Z")

</div>

Should mark that as "Solution" 😃

---

<div class="post-metadata">

**Author:** ![DanRoscigno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danroscigno/32/70277_2.png) [@DanRoscigno](https://discuss.elastic.co/u/DanRoscigno)\
**Post date:** [February 6, 2020, 6:50pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/5 "2020-02-06T18:50:39Z")

</div>

Thanks, I was trying to figure out how to do that!

---

<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:** [March 5, 2020, 6:50pm UTC](https://discuss.elastic.co/t/ilm-says-it-is-waiting-to-allocate-1-shard-but-it-isnt/218194/6 "2020-03-05T18:50:43Z")

</div>

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