# How can I build a claster from two independent Elastic Servers?

**URL:** https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798
**Category:** Elasticsearch
**Created:** [October 15, 2021, 7:05am UTC](https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798 "2021-10-15T07:05:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![marti1](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@marti1](https://discuss.elastic.co/u/marti1)
#### Post date: [October 15, 2021, 7:05am UTC](https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798/1 "2021-10-15T07:05:58Z")

</div>

Hi,  
I have two independent Elastic Servers in my business.  
I know the steeps I have to do to set up the cluster, the question is what will happens with the data of both servers when I create the cluster?  
Will I lose it?

If it helps, the replication factor is 1.

Thanks 🙂

---

<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: [October 18, 2021, 12:50am UTC](https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798/2 "2021-10-18T00:50:59Z")

</div>

You really need 3 nodes in a cluster, because for Elasticsearch the majority of 2 is 2, so if one node goes down your cluster is then unavailable.

---

<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: [October 18, 2021, 4:33am UTC](https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798/3 "2021-10-18T04:33:37Z")

</div>

You can generally not join nodes with data that has formed different clusters into a single cluster without losing data. I would recommend copying all data from one of the nodes to the other and then clear the data path of this mode and have it join the other as a new empty node.

---

<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: [November 15, 2021, 4:34am UTC](https://discuss.elastic.co/t/how-can-i-build-a-claster-from-two-independent-elastic-servers/286798/4 "2021-11-15T04:34:02Z")

</div>

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