# How to assign back bulk numbers of Unassigned shards back into cluster

**URL:** <https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093>\
**Category:** Elasticsearch\
**Created:** [July 29, 2020, 3:51pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093 "2020-07-29T15:51:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suddhasil.sarkar](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@suddhasil.sarkar](https://discuss.elastic.co/u/suddhasil.sarkar)\
**Post date:** [July 29, 2020, 3:51pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/1 "2020-07-29T15:51:04Z")

</div>

Hi All, any help is much appreciated. due to unexpected shutdown of my master nodes in elastic cluster I see more than 400 unassigned shards at this point, and wanted to check if there is any way I can assign them back across my nodes at a time ( with any specific scripted way ) . I want all of them back and allocated across all nodes , is there any automated way I can do that? Please suggest if any in case.  
Many thanks for all help  
Thanks  
Suddhasil

---

<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:** [July 29, 2020, 10:53pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/2 "2020-07-29T22:53:42Z")

</div>

Welcome to our community! 😃

Reallocation will happen over time, so you may just have to wait.

---

<div class="post-metadata">

**Author:** ![suddhasil.sarkar](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@suddhasil.sarkar](https://discuss.elastic.co/u/suddhasil.sarkar)\
**Post date:** [July 30, 2020, 5:06am UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/3 "2020-07-30T05:06:01Z")

</div>

🙂 thank you Sir for all help here. Have a Nice day.

---

<div class="post-metadata">

**Author:** ![suddhasil.sarkar](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@suddhasil.sarkar](https://discuss.elastic.co/u/suddhasil.sarkar)\
**Post date:** [July 30, 2020, 4:19pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/4 "2020-07-30T16:19:19Z")

</div>

Hi Mark,  
Unfortunately i still see many shards ( 112) both Primary and shards are unassigned and no progress over 16 hours.  
Is there any way I can assign primary shared and replica shards back to nodes manually?  
nothing moving at this point, as primary shards are unassigned cluster health is red . Please let me know if any solutions

---

<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:** [July 30, 2020, 11:35pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/5 "2020-07-30T23:35:57Z")

</div>

What is the output from `_cat/recovery?v`?

---

<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:** [August 27, 2020, 11:36pm UTC](https://discuss.elastic.co/t/how-to-assign-back-bulk-numbers-of-unassigned-shards-back-into-cluster/243093/6 "2020-08-27T23:36:00Z")

</div>

Closed on August 27, 2020, 11:36pm UTC

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