# How to recover index if replicas are set to zero?

**URL:** https://discuss.elastic.co/t/how-to-recover-index-if-replicas-are-set-to-zero/19405
**Category:** Elasticsearch
**Created:** [August 22, 2014, 8:53am UTC](https://discuss.elastic.co/t/how-to-recover-index-if-replicas-are-set-to-zero/19405 "2014-08-22T08:53:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)
#### Post date: [August 22, 2014, 8:53am UTC](https://discuss.elastic.co/t/how-to-recover-index-if-replicas-are-set-to-zero/19405/1 "2014-08-22T08:53:14Z")

</div>

Hi,

If I have an index with 10 shards but no replicas on a 2 node cluster, and  
one node goes down. Can I somehow recover the 5 shards to the only running  
node? Assuming that I backup the data directory on the node and make it  
available to the other node. Is there an API or an automatic way to achieve  
this?

Thanks,  
Sandeep

--  
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/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)
#### Post date: [August 22, 2014, 6:24pm UTC](https://discuss.elastic.co/t/how-to-recover-index-if-replicas-are-set-to-zero/19405/2 "2014-08-22T18:24:15Z")

</div>

Hello Sandeep ,

Instead of backing up the data directory , do a snapshot and you can  
restore it later to single node machine or 10 node machine.

SNAPSHOT -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Thanks  
Vineeth

On Fri, Aug 22, 2014 at 2:23 PM, 'Sandeep Ramesh Khanzode' via  
elasticsearch [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) wrote:

> Hi,
> 
> If I have an index with 10 shards but no replicas on a 2 node cluster, and  
> one node goes down. Can I somehow recover the 5 shards to the only running  
> node? Assuming that I backup the data directory on the node and make it  
> available to the other node. Is there an API or an automatic way to achieve  
> this?
> 
> Thanks,  
> Sandeep
> 
> --  
> 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/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3b1caca8-66ed-4196-838b-b58fafa1601d%40googlegroups.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/CAGdPd5nOMgNrGrSqWN%2BmSt31io\_qnJLJ3hfHGq9xBghZXX3W0w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nOMgNrGrSqWN%2BmSt31io_qnJLJ3hfHGq9xBghZXX3W0w%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:06am UTC](https://discuss.elastic.co/t/how-to-recover-index-if-replicas-are-set-to-zero/19405/3 "2017-07-06T01:06:56Z")

</div>


