# Is it possible to create indexes on one node of a cluster and copy it to another

**URL:** https://discuss.elastic.co/t/is-it-possible-to-create-indexes-on-one-node-of-a-cluster-and-copy-it-to-another/11230
**Category:** Elasticsearch
**Created:** [March 21, 2013, 1:11am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-indexes-on-one-node-of-a-cluster-and-copy-it-to-another/11230 "2013-03-21T01:11:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dave\_O](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_o/32/69398_2.png) [@Dave\_O](https://discuss.elastic.co/u/Dave_O)
#### Post date: [March 21, 2013, 1:11am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-indexes-on-one-node-of-a-cluster-and-copy-it-to-another/11230/1 "2013-03-21T01:11:37Z")

</div>

Hello,  
I'm wondering if it's possible to create an elasticsearch index on one node  
in the cluster and then when it is complete copy it to another node....(and  
ultimately delete from the original). In rare cases it is necessary to  
rebuild indexes into smaller indexes. I'm thinking that if we had a  
"souped" up server with maybe more memory and/or CPU's we could rebuild the  
index on this server without impacting other servers. When the index  
re-build is complete we could just tar it up (or copy) it to a different  
server...(and maybe just update metadata appropriately).

Anyone know if this is possible?

Thanks

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [March 21, 2013, 11:36am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-indexes-on-one-node-of-a-cluster-and-copy-it-to-another/11230/2 "2013-03-21T11:36:21Z")

</div>

On Wed, 2013-03-20 at 18:11 -0700, Dave O wrote:

> Hello,  
> I'm wondering if it's possible to create an elasticsearch index on one  
> node in the cluster and then when it is complete copy it to another  
> node....(and ultimately delete from the original). In rare cases it  
> is necessary to rebuild indexes into smaller indexes. I'm thinking  
> that if we had a "souped" up server with maybe more memory and/or  
> CPU's we could rebuild the index on this server without impacting  
> other servers. When the index re-build is complete we could just tar  
> it up (or copy) it to a different server...(and maybe just update  
> metadata appropriately).

Yes you can. In fact the easiest way would be:

1. start a new node with a different cluster name (so it forms its own  
cluster)
2. index into that node
3. shut it down
4. change the cluster name to the main cluster name and restart  
-\> it joins the main cluster, which imports the new index  
and allocates replica shards within the existing nodes
5. Once cluster is green, shut down the extra node  
-\> the replica shards are promoted to primaries, and it  
allocates new replicas on other machines within the cluster

clint

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:45am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-indexes-on-one-node-of-a-cluster-and-copy-it-to-another/11230/3 "2017-07-06T02:45:26Z")

</div>


