# Change cluster name and storage location folder

**URL:** <https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 8:03am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171 "2017-12-18T08:03:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [December 18, 2017, 8:03am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/1 "2017-12-18T08:03:05Z")

</div>

Hi all,

currently we have elastic stack's major version number in following fields:

```
cluster.name
path.data

```

Is it save to rename them, rename the folders or do I need some reindexing or other stuff?

Currently we are running a single instance, so no problem with other nodes.

I would like to get rid of version names to give less room for confusion after upgrading from 5.1.2 to 6.0.1

Thanks a lot.  
Andreas

---

<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:** [December 18, 2017, 8:04am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/2 "2017-12-18T08:04:15Z")

</div>

How did you install Elasticsearch and what OS are you on?

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [December 18, 2017, 8:05am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/3 "2017-12-18T08:05:40Z")

</div>

running on centos.  
manual install by tar package.

---

<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:** [December 18, 2017, 8:09am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/4 "2017-12-18T08:09:53Z")

</div>

How are you planning on upgrading?

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [December 18, 2017, 8:18am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/5 "2017-12-18T08:18:25Z")

</div>

Since I am originally the windows guy I build my own filestructure to have complete elastic stack in one place.

filestructure for ES as example:

```
[root@myserver elasticsearch]# ls -l
insgesamt 0
lrwxrwxrwx 1 logiweb_admin elasticsearch 19 15. Dez 15:47 current_elasticsearch -> elasticsearch-6.1.0
drwx------ 3 elasticsearch elasticsearch 18 21. Feb 2017 data
drwxr-xr-x 7 logiweb_admin elasticsearch 131 14. Feb 2017 elasticsearch-5.1.2
drwxr-xr-x 7 logiweb_admin elasticsearch 131 14. Aug 14:35 elasticsearch-5.5.2
drwxr-xr-x 7 logiweb_admin elasticsearch 131 10. Nov 19:42 elasticsearch-6.0.0
drwxr-xr-x 7 logiweb_admin elasticsearch 131 4. Dez 10:30 elasticsearch-6.0.1
drwxr-xr-x 7 logiweb_admin elasticsearch 131 12. Dez 13:34 elasticsearch-6.1.0
drwxr-xr-x 2 elasticsearch elasticsearch 199 18. Dez 09:07 log

```

The current version of elasticsearch is linked via current\_elasticsearch.  
The service is addressing the linked path current\_elasticsearch.

so my data.path is currently: **/usr/local/elk/elasticsearch/data/elk5**

I would like to rename it to **/usr/local/elk/elasticsearch/data/logicontrol\_prod**

[cluster.name](http://cluster.name) is currently set to **logicontrol\_5x**. I would like to change it to **logicontrol\_prod**.

my way of update is working so far, but I did not touch both parameters I asked for.

---

<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:** [December 18, 2017, 8:33am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/6 "2017-12-18T08:33:45Z")

</div>

I would suggest using the repo's and installing with that method. Then you can either point the config at the path you want after you have renamed it.

---

<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:** [January 15, 2018, 8:33am UTC](https://discuss.elastic.co/t/change-cluster-name-and-storage-location-folder/112171/7 "2018-01-15T08:33:59Z")

</div>

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