# Migration

**URL:** <https://discuss.elastic.co/t/migration/154061>\
**Category:** Elasticsearch\
**Created:** [October 25, 2018, 8:34pm UTC](https://discuss.elastic.co/t/migration/154061 "2018-10-25T20:34:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![barvepan](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@barvepan](https://discuss.elastic.co/u/barvepan)\
**Post date:** [October 25, 2018, 8:34pm UTC](https://discuss.elastic.co/t/migration/154061/1 "2018-10-25T20:34:09Z")

</div>

We are using elasticsearch 1.5.3 with default configuration i.e. one cluster with one node. We are planning to migrate it to one cluster with 3 nodes.

Can someone please guide us on the steps. Is there any quick way to do this via Elastic to Elastic via using command line.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [October 26, 2018, 8:46am UTC](https://discuss.elastic.co/t/migration/154061/2 "2018-10-26T08:46:30Z")

</div>

@barvepan, First You need to install the elasticserach (same version ) on all the new nodes. Then you can add the new node in your existing cluster. You can refer the below link:

[https://logz.io/blog/elasticsearch-cluster-tutorial/](https://logz.io/blog/elasticsearch-cluster-tutorial/)

Let me know if you have any query.

Thanks.

---

<div class="post-metadata">

**Author:** ![barvepan](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@barvepan](https://discuss.elastic.co/u/barvepan)\
**Post date:** [October 26, 2018, 11:45am UTC](https://discuss.elastic.co/t/migration/154061/3 "2018-10-26T11:45:12Z")

</div>

Thanks. is it possible to migrate data to entirely new cluster with new nodes instead of creating new node and attach it back to existing cluster.

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [October 26, 2018, 11:58am UTC](https://discuss.elastic.co/t/migration/154061/4 "2018-10-26T11:58:08Z")

</div>

@barvepan,

> [@barvepan](#):
>
> is it possible to migrate data to entirely new cluster with new nodes instead of creating new node and attach it back to existing cluster.

You can take snapshots and restore them its only way of backup your data in elasticserach. You need to check the compatibility also of your old elaticserach version and new elasticserach version.

Thanks.

---

<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 26, 2018, 12:04pm UTC](https://discuss.elastic.co/t/migration/154061/5 "2018-10-26T12:04:19Z")

</div>

You might also be able to [reindex from remote](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/reindex-upgrade-remote.html).

---

<div class="post-metadata">

**Author:** ![barvepan](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@barvepan](https://discuss.elastic.co/u/barvepan)\
**Post date:** [November 13, 2018, 11:29am UTC](https://discuss.elastic.co/t/migration/154061/6 "2018-11-13T11:29:20Z")

</div>

Thanks for response.

As, I explained earlier, we have (elasticsearch 1.5.2) with default configuration i.e. one cluster with one node. We are planning to migrate it to one cluster with 3 nodes.

We decided to add new nodes 1 master and 1 data node. I assume its just configurations in elasticsearch.yml file. Just have few questions,

1. what value we should give to discovery.zen.minimum\_master\_nodes . We want 3 nodes cluster ( 2 master +data nodes and 1 only data node )

2. While doing this configuration and settings do we need to take backup of existing data. Is there any chance of losing data in all these configurations.

3. I assume, after adding new nodes to existing cluster, elastic search will take care of distributing data across all nodes.

Please help.

Thanks,

---

<div class="post-metadata">

**Author:** ![barvepan](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@barvepan](https://discuss.elastic.co/u/barvepan)\
**Post date:** [November 13, 2018, 1:49pm UTC](https://discuss.elastic.co/t/migration/154061/7 "2018-11-13T13:49:51Z")

</div>

Thanks for response.

As, I explained earlier, we have (elasticsearch 1.5.2) with default configuration i.e. one cluster with one node. We are planning to migrate it to one cluster with 3 nodes.

We decided to add new nodes 1 master and 1 data node. I assume its just configurations in elasticsearch.yml file. Just have few questions,

1. what value we should give to discovery.zen.minimum\_master\_nodes . We want 3 nodes cluster ( 2 master +data nodes and 1 only data node )
2. While doing this configuration and settings do we need to take backup of existing data. Is there any chance of losing data in all these configurations.
3. I assume, after adding new nodes to existing cluster, elastic search will take care of distributing data across all nodes.

Please help.

Thanks,

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [November 15, 2018, 4:07am UTC](https://discuss.elastic.co/t/migration/154061/8 "2018-11-15T04:07:07Z")

</div>

@Barvepan,

> [@barvepan](#):
>
> what value we should give to discovery.zen.minimum\_master\_nodes . We want 3 nodes cluster ( 2 master +data nodes and 1 only data node )

Its value calculate using the formula N/2+1. Where N is the number of master node. To avoid from split brain problem we should have minimum 3 master node. Then discovery.zen.minimum\_master\_nodes value will be 2 (3/2+1=2).

> [@barvepan](#):
>
> While doing this configuration and settings do we need to take backup of existing data. Is there any chance of losing data in all these configurations.

Yes, you need to take the backup of your data. Because when you upgrade your ELK all data will be lost. I am not sure whether you can restore the elasticserach1.5.2 snapshots in latest elasticsearch or not. The latest elasticsearch version is 6.5.0.

> [@barvepan](#):
>
> I assume, after adding new nodes to existing cluster, Elasticsearch will take care of distributing data across all nodes.

Yes, when you have multiple data node in your cluster the elasticsearch itself take care of data distributing across all data nodes.

Kindly let me know if i can help you more.

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:** [December 13, 2018, 4:07am UTC](https://discuss.elastic.co/t/migration/154061/9 "2018-12-13T04:07:08Z")

</div>

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