# Create new cluster with current existing nodes

**URL:** https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349
**Category:** Elasticsearch
**Created:** [April 9, 2020, 2:47pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349 "2020-04-09T14:47:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jasonperrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonperrone/32/128615_2.png) [@jasonperrone](https://discuss.elastic.co/u/jasonperrone)
#### Post date: [April 9, 2020, 2:47pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349/1 "2020-04-09T14:47:09Z")

</div>

This is a little twist on the "Add new node to existing cluster". Maybe Elastic automatically handles this, but I just want to make sure.

I have two independent nodes, each a cluster of 1 (themselves). Node A has some indices and Node B has a different set of indices.

I want to induct Node B into Node A's cluster. That's nothing more than changing Node B's elasticsearch.yml to be in Node A's cluster, etc...

My question is, what happens to Node B's data? Is Elastic smart enough to copy Node A's indices to Node B and Node B's indices to Node A so that when all is said and done my cluster has Node A and Node B each with a copy of **all** the indices?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 9, 2020, 8:48pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349/2 "2020-04-09T20:48:38Z")

</div>

> [@jasonperrone](#):
>
> My question is, what happens to Node B's data? Is Elastic smart enough to copy Node A's indices to Node B and Node B's indices to Node A so that when all is said and done my cluster has Node A and Node B each with a copy of **all** the indices?

No. You will need to copy the data over from node B to node A and then wipe node B so it joins as a new empty node. If it has been part of a different cluster I do not think it can join another.

---

<div class="post-metadata">

### Author: ![jasonperrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonperrone/32/128615_2.png) [@jasonperrone](https://discuss.elastic.co/u/jasonperrone)
#### Post date: [April 10, 2020, 1:18pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349/3 "2020-04-10T13:18:08Z")

</div>

Thanks, Christian. So, when you say "wipe node b", could you be more specific? That's exactly what is happening. Since Node B was one in a cluster of 1 by itself, I am not able to turn it off and have it start up as a Node in Node A's cluster.

---

<div class="post-metadata">

### Author: ![jasonperrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonperrone/32/128615_2.png) [@jasonperrone](https://discuss.elastic.co/u/jasonperrone)
#### Post date: [April 10, 2020, 1:58pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349/4 "2020-04-10T13:58:46Z")

</div>

Deleting the data directory seemed to be enough.

---

<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: [May 8, 2020, 1:58pm UTC](https://discuss.elastic.co/t/create-new-cluster-with-current-existing-nodes/227349/5 "2020-05-08T13:58:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
