# Elasticsearch upgrade from v2.3.4 to v6.1.1

**URL:** https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040
**Category:** Elasticsearch
**Created:** [December 22, 2017, 5:03pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040 "2017-12-22T17:03:59Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![vishal\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/50afbb/32.png) [@vishal\_kumar](https://discuss.elastic.co/u/vishal_kumar)
#### Post date: [January 5, 2018, 3:50am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040/10 "2018-01-05T03:50:12Z")

</div>

elasticsearch upgrade is not going to work for following without a patch work:  
v2.3.4 -\> v5.6.0 -\> v6.x

Reason:  
The default datapath in v2.3.4 was '/var/lib/elasticsearch/elasticsearch/nodes'  
The default datapath in 6.x is '/var/lib/elasticsearch/nodes'

When we follow upgrade sequence then after coming to 6.x the data files are still kept at '/var/lib/elasticsearch/elasticsearch/nodes' but the 6.x version is expecting to have data in '/var/lib/elasticsearch/nodes'. If I manually copy the data from '/var/lib/elasticsearch/elasticsearch/nodes' to '/var/lib/elasticsearch/nodes' before starting elasticsearch (v6.x) and the start elasticsearch then the data is available.

Please fix this issue in coming 6.x release. Fix is while instaling 6.x rpm check if any data is present in '/var/lib/elasticsearch/elasticsearch/nodes'. If yes move it to '/var/lib/elasticsearch/nodes'.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040)._
