# Regarding Upgrade from 2.x to 5.x

**URL:** https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411
**Category:** Elasticsearch
**Created:** [February 19, 2018, 8:11am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411 "2018-02-19T08:11:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)
#### Post date: [February 19, 2018, 8:11am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/1 "2018-02-19T08:11:30Z")

</div>

Hi,  
As I understand it, snapshot repos get upgraded as part of the upgrade to 5.x. Does this mean that 2.x snapshots in that repo can be restored into the now 5.x cluster? Also, what will happen to fields with conflicting types? Will they be dropped?  
I'm asking in the context of indices that we might drop during upgrade due to mapping conflicts and which we would then want to restore. Unfortunately, due to dynamic mappings and ill-defined log formats we can't be 100% sure that some rogue mapping type conflict might appear prior to the upgrade.

Regards,  
D

---

<div class="post-metadata">

### Author: ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)
#### Post date: [February 21, 2018, 10:05am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/2 "2018-02-21T10:05:57Z")

</div>

Hi,  
Do I need to provide any further information? It would be extremely helpful to have an answer to this before we upgrade.

Regards,  
D

---

<div class="post-metadata">

### Author: ![Indisol](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@Indisol](https://discuss.elastic.co/u/Indisol)
#### Post date: [February 21, 2018, 10:49am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/3 "2018-02-21T10:49:41Z")

</div>

Hi Dawiro,

yes 2.x snapshots will be restored in 5.x.  
can you use the interactive migration tool, to find steps that you need to follow.

cheers,  
sapan

---

<div class="post-metadata">

### Author: ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)
#### Post date: [February 21, 2018, 11:52am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/4 "2018-02-21T11:52:24Z")

</div>

The version of elasticsearch we're running (2.1.2) doesn't give us all of the features of the migration tool.

---

<div class="post-metadata">

### Author: ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)
#### Post date: [February 21, 2018, 11:54am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/5 "2018-02-21T11:54:32Z")

</div>

What I'm concerned about is not whether it's possible to restore a 2.x snapshot. But rather, I'm conerned that if we remove an index to complete the upgrade what will happen when restoring an index that contains fields with clashing types. My hope is that they'll be dropped allowing the rest of the index to restore..?

---

<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: [February 21, 2018, 11:57am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/6 "2018-02-21T11:57:58Z")

</div>

I would recommend upgrading to the Elasticsearch 2.4 so you can use the migration plugin, before moving on to Elasticsearch 5.x.

---

<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: [March 21, 2018, 11:58am UTC](https://discuss.elastic.co/t/regarding-upgrade-from-2-x-to-5-x/120411/7 "2018-03-21T11:58:04Z")

</div>

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