# Shard recovery

**URL:** <https://discuss.elastic.co/t/shard-recovery/19634>\
**Category:** Elasticsearch\
**Created:** [September 4, 2014, 10:30pm UTC](https://discuss.elastic.co/t/shard-recovery/19634 "2014-09-04T22:30:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daa\_qqu](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@daa\_qqu](https://discuss.elastic.co/u/daa_qqu)\
**Post date:** [September 4, 2014, 10:30pm UTC](https://discuss.elastic.co/t/shard-recovery/19634/1 "2014-09-04T22:30:27Z")

</div>

Hello everyone,

I am new to ES and need some help with it:

- Elasticsearch version 1.0.1 ( I know I need to upgrade!)
- Two node cluster
- Cluster state yellow for last couple of hours
- Two shards in INITIALIZING state.
- One shard UNASSIGNED

wl-2014.09.04 is an active index with new documents being indexing to the  
primary shards but the replicas are not in a healthy state.

What do I need to do to bring this cluster to a healthy state?

/\_cat/recovery

index shard target recovered percent host ip node  
wl-2014.09.04 0 973517301 969375940 99.6% hostxx 10.xxx.xxx.xxx node1  
wl-2014.09.04 2 969558534 962868164 99.3% hostxx 10.xxx.xxx.xxx node2

/\_cat/indices/wl-2014.09.04

health index pri rep docs.count docs.deleted store.size pri.store.size  
yellow wl-2014.09.04 5 1 3452017 0 6.6gb 4.7gb

/\_cat/shards

wl-2014.09.04 2 r UNASSIGNED  
wl-2014.09.04 0 r INITIALIZING 10.xxx.xxx.xxx node1  
wl-2014.09.04 1 r INITIALIZING 10.xxx.xxx.xxx node2

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag\_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 4, 2014, 10:43pm UTC](https://discuss.elastic.co/t/shard-recovery/19634/2 "2014-09-04T22:43:53Z")

</div>

Easiest way is to drop the replicas and then re-add them.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 5 September 2014 08:30, daa qqu [daaqqu@gmail.com](mailto:daaqqu@gmail.com) wrote:

> Hello everyone,
> 
> I am new to ES and need some help with it:
> 
> - Elasticsearch version 1.0.1 ( I know I need to upgrade!)
> - Two node cluster
> - Cluster state yellow for last couple of hours
> - Two shards in INITIALIZING state.
> - One shard UNASSIGNED
> 
> wl-2014.09.04 is an active index with new documents being indexing to the  
> primary shards but the replicas are not in a healthy state.
> 
> What do I need to do to bring this cluster to a healthy state?
> 
> /\_cat/recovery
> 
> index shard target recovered percent host ip node  
> wl-2014.09.04 0 973517301 969375940 99.6% hostxx 10.xxx.xxx.xxx node1  
> wl-2014.09.04 2 969558534 962868164 99.3% hostxx 10.xxx.xxx.xxx node2
> 
> /\_cat/indices/wl-2014.09.04
> 
> health index pri rep docs.count docs.deleted store.size pri.store.size  
> yellow wl-2014.09.04 5 1 3452017 0 6.6gb 4.7gb
> 
> /\_cat/shards
> 
> wl-2014.09.04 2 r UNASSIGNED  
> wl-2014.09.04 0 r INITIALIZING 10.xxx.xxx.xxx node1  
> wl-2014.09.04 1 r INITIALIZING 10.xxx.xxx.xxx node2
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag\_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag\_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAO4Z2jC4K33xo498%2B3iag_APGaSDZKZ4HyFHODDGc-bxwdEmeg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624bvVJvnUYzQ6djyBYPQH62cgESdQJ9FyUxvT0Rc-j%2BxUw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624bvVJvnUYzQ6djyBYPQH62cgESdQJ9FyUxvT0Rc-j%2BxUw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:04am UTC](https://discuss.elastic.co/t/shard-recovery/19634/3 "2017-07-06T01:04:14Z")

</div>


