# Data migration from Old to New Cluster

**URL:** <https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143>\
**Category:** Elasticsearch\
**Tags:** migration\
**Created:** [August 1, 2021, 9:30am UTC](https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143 "2021-08-01T09:30:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imad\_Mekkaoui](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imad_mekkaoui/32/92400_2.png) [@Imad\_Mekkaoui](https://discuss.elastic.co/u/Imad_Mekkaoui)\
**Post date:** [August 1, 2021, 9:30am UTC](https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143/1 "2021-08-01T09:30:10Z")

</div>

Hi,  
I have a running elaticsearch cluster comprised of two (02) nodes (both master and data).  
I wish to migrate my database to a new cluster comprised of seven (07) nodes (3 Master nodes, 2 Data nodes, 1 Coordinator node and 1 ingest node).

```
 What is the best way to proceede to migrate the database and preserve the indices so I can use the new cluster with my old Kibana node (Use the old dashboards).

```

Thanks in advance..

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [August 1, 2021, 5:36pm UTC](https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143/2 "2021-08-01T17:36:40Z")

</div>

I'm not sure what "stage" you are in, but if you new nodes don't yet exist or can be destroyed, I would ADD the new nodes to the existing cluster and eventually turn off the old nodes after the data migration is done by elastic.

Doc: [Add and remove nodes in your cluster | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/add-elasticsearch-nodes.html)

---

<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:** [August 2, 2021, 5:47am UTC](https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143/3 "2021-08-02T05:47:45Z")

</div>

Welcome to our community! 😃

That would be the simplest, if you can do it!  
Otherwise you can use snapshot and restore, or a remote reindex.

---

<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:** [August 30, 2021, 5:48am UTC](https://discuss.elastic.co/t/data-migration-from-old-to-new-cluster/280143/4 "2021-08-30T05:48:36Z")

</div>

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