# Missing shards

**URL:** <https://discuss.elastic.co/t/missing-shards/39401>\
**Category:** Elasticsearch\
**Created:** [January 17, 2016, 11:11am UTC](https://discuss.elastic.co/t/missing-shards/39401 "2016-01-17T11:11:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ograso](https://avatars.discourse-cdn.com/v4/letter/o/db5fbb/32.png) [@ograso](https://discuss.elastic.co/u/ograso)\
**Post date:** [January 17, 2016, 11:11am UTC](https://discuss.elastic.co/t/missing-shards/39401/1 "2016-01-17T11:11:32Z")

</div>

Hey everyone,

We lost some cluster nodes and some of primary shards was lost. and I need to know how can I reindex remain data.  
how can I fix this mess. Please help me to solve this situation.

---

<div class="post-metadata">

**Author:** ![ograso](https://avatars.discourse-cdn.com/v4/letter/o/db5fbb/32.png) [@ograso](https://discuss.elastic.co/u/ograso)\
**Post date:** [January 17, 2016, 11:25am UTC](https://discuss.elastic.co/t/missing-shards/39401/2 "2016-01-17T11:25:53Z")

</div>

Problem solved. reroute every failed shards in index.  
Here is the exam;  
POST /\_cluster/reroute  
{  
"commands" : [ {  
"allocate" : {  
"index" : "index\_name",  
"shard" : 4,  
"node" : "node\_name",  
"allow\_primary": true  
}  
}  
]  
}

---

<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:** [January 17, 2016, 7:34pm UTC](https://discuss.elastic.co/t/missing-shards/39401/3 "2016-01-17T19:34:11Z")

</div>

That won't reindex the data, it'll (likely) just create a new, but empty shard.

---

<div class="post-metadata">

**Author:** ![ograso](https://avatars.discourse-cdn.com/v4/letter/o/db5fbb/32.png) [@ograso](https://discuss.elastic.co/u/ograso)\
**Post date:** [January 17, 2016, 9:41pm UTC](https://discuss.elastic.co/t/missing-shards/39401/4 "2016-01-17T21:41:59Z")

</div>

I tried to fix and recreate to missing shards but as you said shards are empty. This type of solution solved my problem but I want to learn right way to solve problem and how can reindex my data warkolm

---

<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:** [January 18, 2016, 12:11am UTC](https://discuss.elastic.co/t/missing-shards/39401/5 "2016-01-18T00:11:43Z")

</div>

Reindex your data using the same method you used to initially index it.

---

<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:** [July 5, 2017, 11:23pm UTC](https://discuss.elastic.co/t/missing-shards/39401/6 "2017-07-05T23:23:46Z")

</div>


