# Data migration

**URL:** https://discuss.elastic.co/t/data-migration/6020
**Category:** Elasticsearch
**Created:** [November 30, 2011, 7:16am UTC](https://discuss.elastic.co/t/data-migration/6020 "2011-11-30T07:16:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lyes\_zaiko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lyes_zaiko/32/11250_2.png) [@lyes\_zaiko](https://discuss.elastic.co/u/lyes_zaiko)
#### Post date: [November 30, 2011, 7:16am UTC](https://discuss.elastic.co/t/data-migration/6020/1 "2011-11-30T07:16:05Z")

</div>

Hi all!

I'm just wondering if it is possible to migrate alla the data indexed in a  
node to another one, in order to close it for maintainance for example,  
without altering the initial index configuration??

thanks

---

<div class="post-metadata">

### Author: ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)
#### Post date: [November 30, 2011, 9:36am UTC](https://discuss.elastic.co/t/data-migration/6020/2 "2011-11-30T09:36:43Z")

</div>

Decreasing the number of replica might help.  
If its 0 and the master is set the other box , you can shutdown one of the  
box without any issues.  
Or you can use shutdown API to shut a node down but here data wont be  
rebalance.

Corrent me if i am wrong.

Thanks  
Vineeth

On Wed, Nov 30, 2011 at 12:46 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:

> Hi all!
> 
> I'm just wondering if it is possible to migrate alla the data indexed in a  
> node to another one, in order to close it for maintainance for example,  
> without altering the initial index configuration??
> 
> thanks

---

<div class="post-metadata">

### Author: ![lyes\_zaiko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lyes_zaiko/32/11250_2.png) [@lyes\_zaiko](https://discuss.elastic.co/u/lyes_zaiko)
#### Post date: [November 30, 2011, 10:43am UTC](https://discuss.elastic.co/t/data-migration/6020/3 "2011-11-30T10:43:24Z")

</div>

Thanks for the quick reply Vineeth.

But is there another solution without decreasing the number of replica?  
I'd like to keep the same config.  
Any advice from ES team?

Thanks

On Wed, Nov 30, 2011 at 10:36 AM, Vineeth Mohan  
[vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Decreasing the number of replica might help.  
> If its 0 and the master is set the other box , you can shutdown one of the  
> box without any issues.  
> Or you can use shutdown API to shut a node down but here data wont be  
> rebalance.
> 
> Corrent me if i am wrong.
> 
> Thanks  
> Vineeth
> 
> On Wed, Nov 30, 2011 at 12:46 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:
> 
> > Hi all!
> > 
> > I'm just wondering if it is possible to migrate alla the data indexed in  
> > a node to another one, in order to close it for maintainance for example,  
> > without altering the initial index configuration??
> > 
> > thanks

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [November 30, 2011, 3:08pm UTC](https://discuss.elastic.co/t/data-migration/6020/4 "2011-11-30T15:08:47Z")

</div>

You don't need to decrease the number of replicas. I assume you have a  
single node? If so, start another node and let it join the cluster.

If you have an index with \>0 number of replicas, then replicas will be  
allocated on that node. Then, you can bring back the other node.

If you have 0 replicas (which make sense, since you have just a single  
node), then you can either increase the number of replicas to 1, wait for  
them to be allocated on the other node, and then shutdown the other node.  
Another option is to filter out allocation on the first node (see here:  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/modules/cluster.html) at the  
bottom).

On Wed, Nov 30, 2011 at 12:43 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:

> Thanks for the quick reply Vineeth.
> 
> But is there another solution without decreasing the number of replica?  
> I'd like to keep the same config.  
> Any advice from ES team?
> 
> Thanks
> 
> On Wed, Nov 30, 2011 at 10:36 AM, Vineeth Mohan \<[vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)
> 
> > wrote:
> 
> > Decreasing the number of replica might help.  
> > If its 0 and the master is set the other box , you can shutdown one of  
> > the box without any issues.  
> > Or you can use shutdown API to shut a node down but here data wont be  
> > rebalance.
> > 
> > Corrent me if i am wrong.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Wed, Nov 30, 2011 at 12:46 PM, Lyes zaiko [lyesjob@gmail.com](mailto:lyesjob@gmail.com) wrote:
> > 
> > > Hi all!
> > > 
> > > I'm just wondering if it is possible to migrate alla the data indexed in  
> > > a node to another one, in order to close it for maintainance for example,  
> > > without altering the initial index configuration??
> > > 
> > > thanks

---

<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, 3:46am UTC](https://discuss.elastic.co/t/data-migration/6020/5 "2017-07-06T03:46:54Z")

</div>


