# Elasticsearch Upgrade from 2.4 to 6.8

**URL:** <https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580>\
**Category:** Elasticsearch\
**Created:** [January 28, 2021, 11:44pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580 "2021-01-28T23:44:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [January 28, 2021, 11:44pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/1 "2021-01-28T23:44:42Z")

</div>

We are planning to upgrade elasticsearch from version 2.4 to 6.8. The current version of elasticsearch was an upgrade from 1.7 (side by side upgrade. Indices were restored to the new cluster). Since the indices are created by version 1.7, we are planning to perform the following steps to upgrade the cluster.

1. We have to upgrade the indices that are created in 1.7 to 2.4 by reindexing them before we can restore the indices to a new cluster with version 5.x. Otherwise, the nodes from the new cluster won't start.
2. Once the re-indexing is done (step 1), we can take a fresh snapshot from the existing cluster (2.4) and restore it to the new cluster with version 5.x (side by side upgrade).
3. We have to reindex the indices on the new cluster to 5.x before we can perform an in-place upgrade of the new cluster to 6.x.
4. Perform the in-place upgrade by installing new binaries and removing old binaries and pointing to the new .yml file.

I have omitted steps like the template, indices settings, and mapping changes to keep the conversation around the indices version. Please let me know if the above steps make sense or need to modify them.

---

<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:** [January 28, 2021, 11:48pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/2 "2021-01-28T23:48:30Z")

</div>

Why not start up a 6.8 cluster (or even 7.10) and then run a remote reindex of all the old data?

---

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [January 29, 2021, 12:25am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/3 "2021-01-29T00:25:38Z")

</div>

@warkolm Remote re-indexing will take longer due to the volume of data and we don't have the budget for hosting the second cluster for months. Can you please confirm the above steps look fine?

---

<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:** [January 29, 2021, 1:03am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/4 "2021-01-29T01:03:24Z")

</div>

It should work, yes.

---

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [January 29, 2021, 1:04am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/5 "2021-01-29T01:04:28Z")

</div>

@warkolm Thank you so much for your response.

---

<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:** [January 29, 2021, 1:06am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/6 "2021-01-29T01:06:08Z")

</div>

Just make sure you take snapshots before every major step 🙂

---

<div class="post-metadata">

**Author:** ![mario12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario12/32/29324_2.png) [@mario12](https://discuss.elastic.co/u/mario12)\
**Post date:** [January 29, 2021, 1:07am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/7 "2021-01-29T01:07:37Z")

</div>

Sure 😃

---

<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:** [February 26, 2021, 1:08am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-to-6-8/262580/8 "2021-02-26T01:08:12Z")

</div>

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