# Migration from ES2.1 to ES6.4

**URL:** https://discuss.elastic.co/t/migration-from-es2-1-to-es6-4/152600
**Category:** Elasticsearch
**Created:** [October 16, 2018, 8:20am UTC](https://discuss.elastic.co/t/migration-from-es2-1-to-es6-4/152600 "2018-10-16T08:20:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![boeledi01](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@boeledi01](https://discuss.elastic.co/u/boeledi01)
#### Post date: [October 16, 2018, 8:20am UTC](https://discuss.elastic.co/t/migration-from-es2-1-to-es6-4/152600/1 "2018-10-16T08:20:15Z")

</div>

Hi,

I have to migrate from ES2.1 to ES6.4. I have an index with ~450 million documents.

Could anyone give me a hint on how to do it ?

Many thanks

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [October 17, 2018, 7:41am UTC](https://discuss.elastic.co/t/migration-from-es2-1-to-es6-4/152600/2 "2018-10-17T07:41:08Z")

</div>

Hey,

you cannot directly upgrade to 6.4, as the data cannot be read due to two major version upgrades (2.x to 5.x to 6.x). Also there are breaking changes in between that you need to cater for.

You basically have two possibilities.

1. Upgrading to latest 5.x first, ensure everything works on 5.x, then go to 6.x from there - and of course ensuring all your clients keep working as expected.
2. Running a parallel 6.x cluster and reindex from 2.x into 6.x, either using the reindex API or have some custom tooling doing that. You could run both clusters in parallel and have infrastructure to index into both clusters, and then switch over your consumers one by one to the new cluster.

--Alex

---

<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 14, 2018, 7:43am UTC](https://discuss.elastic.co/t/migration-from-es2-1-to-es6-4/152600/3 "2018-11-14T07:43:08Z")

</div>

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