# Change of unit

**URL:** <https://discuss.elastic.co/t/change-of-unit/318122>\
**Category:** Elasticsearch\
**Created:** [November 3, 2022, 4:14pm UTC](https://discuss.elastic.co/t/change-of-unit/318122 "2022-11-03T16:14:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isay](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@Isay](https://discuss.elastic.co/u/Isay)\
**Post date:** [November 3, 2022, 4:14pm UTC](https://discuss.elastic.co/t/change-of-unit/318122/1 "2022-11-03T16:14:19Z")

</div>

My disk is full and I want to change my information to another Elasticsearch unit, in the configuration I know that the new route is added

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

#path.data: /path/to/data  
path.data: E:\path\data

# 

# Path to log files:

# 

#path.logs: /path/to/logs  
path.logs: E:\path\logs

# 

What files do I have to move so that it detects it and does not change the configuration.

---

<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 3, 2022, 9:52pm UTC](https://discuss.elastic.co/t/change-of-unit/318122/2 "2022-11-03T21:52:13Z")

</div>

This isn't a fully supported approach, but it usually works.

1. take a snapshot of your data
2. shut down Elasticsearch
3. move your data directory to the new location that has more space
4. update `path.data` to point to the above directory
5. start Elasticsearch

---

<div class="post-metadata">

**Author:** ![Isay](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@Isay](https://discuss.elastic.co/u/Isay)\
**Post date:** [November 3, 2022, 10:11pm UTC](https://discuss.elastic.co/t/change-of-unit/318122/3 "2022-11-03T22:11:54Z")

</div>

I moved the files that are in the log folder and I have no problems, but the Data folder is where I have problems since it is the folder that has a lot of information stored, do I have to move some specific files?

---

<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 4, 2022, 12:43am UTC](https://discuss.elastic.co/t/change-of-unit/318122/4 "2022-11-04T00:43:53Z")

</div>

You need to move it all.

---

<div class="post-metadata">

**Author:** ![Isay](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@Isay](https://discuss.elastic.co/u/Isay)\
**Post date:** [November 4, 2022, 1:00am UTC](https://discuss.elastic.co/t/change-of-unit/318122/5 "2022-11-04T01:00:24Z")

</div>

There is a way to only move some files since it is the one that weighs a lot, so I will add another disk

---

<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 4, 2022, 1:03am UTC](https://discuss.elastic.co/t/change-of-unit/318122/6 "2022-11-04T01:03:23Z")

</div>

You can't do that sorry, it has to be everything.

---

<div class="post-metadata">

**Author:** ![Isay](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@Isay](https://discuss.elastic.co/u/Isay)\
**Post date:** [November 4, 2022, 1:27am UTC](https://discuss.elastic.co/t/change-of-unit/318122/7 "2022-11-04T01:27:39Z")

</div>

is that they are 2TB

---

<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:** [December 2, 2022, 1:28am UTC](https://discuss.elastic.co/t/change-of-unit/318122/8 "2022-12-02T01:28:19Z")

</div>

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