# Upgrade 2.x to 5.x instructions; no config or data directories?

**URL:** <https://discuss.elastic.co/t/upgrade-2-x-to-5-x-instructions-no-config-or-data-directories/84040>\
**Category:** Elasticsearch\
**Created:** [April 28, 2017, 5:44pm UTC](https://discuss.elastic.co/t/upgrade-2-x-to-5-x-instructions-no-config-or-data-directories/84040 "2017-04-28T17:44:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlfriedrichgauss](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlfriedrichgauss](https://discuss.elastic.co/u/carlfriedrichgauss)\
**Post date:** [April 28, 2017, 5:44pm UTC](https://discuss.elastic.co/t/upgrade-2-x-to-5-x-instructions-no-config-or-data-directories/84040/1 "2017-04-28T17:44:43Z")

</div>

I'm looking at the directions for upgrading from 2.x to 5.x. In section 3 "Shutdown and upgrade all nodes", these are the instructions:

To upgrade using a zip or compressed tarball:

• Either copy the files in the config directory from your old installation to your new installation, or set the environment variable ES\_JVM\_OPTIONS to the location of the jvm.options file and use the -E path.conf= option on the command line to point to an external config directory.  
• Either copy the files in the data directory from your old installation to your new installation, or configure the location of the data directory in the config/elasticsearch.yml file, with the path.data setting.

The problem is, I have no "config" or "data" directories in my old install. Was there another analogous directory? I see config files in /etc/elasticsearch. I just need to know what 'should' be in those directories so I can place the proper contents in "config" and "data"

Doc referenced: [https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html)

---

<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:** [April 28, 2017, 8:59pm UTC](https://discuss.elastic.co/t/upgrade-2-x-to-5-x-instructions-no-config-or-data-directories/84040/2 "2017-04-28T20:59:56Z")

</div>

> [@carlfriedrichgauss](#):
>
> The problem is, I have no "config" or "data" directories in my old install

Did you install these with a zip/tarball?

> [@carlfriedrichgauss](#):
>
> I see config files in /etc/elasticsearch

Suggests not, so you may want to follow the step before that one here [Rolling upgrade | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html#upgrade-node)

---

<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:** [May 26, 2017, 9:08pm UTC](https://discuss.elastic.co/t/upgrade-2-x-to-5-x-instructions-no-config-or-data-directories/84040/3 "2017-05-26T21:08:58Z")

</div>

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