# Downgrading to the previous version of elasticsearch

**URL:** <https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740>\
**Category:** Elasticsearch\
**Created:** [November 16, 2015, 10:58pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740 "2015-11-16T22:58:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mramaprasad](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mramaprasad](https://discuss.elastic.co/u/mramaprasad)\
**Post date:** [November 16, 2015, 10:58pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/1 "2015-11-16T22:58:29Z")

</div>

I am running elasticsearch1.1.1. I am planning to upgrade our test and production cluster to elasticsearch 2.0.

I would like to know the steps if I want to revert back to 1.1.1 if the upgrade does not go well.

Thanks  
Malini

---

<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:** [November 17, 2015, 12:53am UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/2 "2015-11-17T00:53:21Z")

</div>

You cannot due to underlying Lucene changes.  
Make sure you take a snapshot before an upgrade so you can restore this.

---

<div class="post-metadata">

**Author:** ![mramaprasad](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mramaprasad](https://discuss.elastic.co/u/mramaprasad)\
**Post date:** [November 17, 2015, 4:30pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/3 "2015-11-17T16:30:39Z")

</div>

I have data and logs folders outside the elasticsearch installation directory (/clusterdata/data and /clusterdata/logs).  
Does the following steps sound ok?

Take the snapshot of the data.  
Unzip elasticsearch2.0 and modify the elasticsearch.yml so that the data and logs paths are pointing to /clusterdata/data and /clusterdata/logs.  
Shut down all the elasticssearch 1.1.1 servers  
Start elasticsearch 2.0 one node at a time.  
If the upgrade does not go well, shut down 2.0 and restart 1.1.1 and restore data from the snapshot?

---

<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:** [November 17, 2015, 9:30pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/4 "2015-11-17T21:30:15Z")

</div>

I don't think that will work, you will need to move the data aside completely before moving back to 1.1.1.

---

<div class="post-metadata">

**Author:** ![mramaprasad](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mramaprasad](https://discuss.elastic.co/u/mramaprasad)\
**Post date:** [November 17, 2015, 9:48pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/5 "2015-11-17T21:48:53Z")

</div>

What do you mean by moving data aside?  
If upgrade does not work, should we delete the data folder and restart 1.1.1 and restore data from snapshot?

---

<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:** [November 17, 2015, 9:55pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/6 "2015-11-17T21:55:06Z")

</div>

Yes, that will work as well.

---

<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:** [July 5, 2017, 11:37pm UTC](https://discuss.elastic.co/t/downgrading-to-the-previous-version-of-elasticsearch/34740/7 "2017-07-05T23:37:51Z")

</div>


