# How can I safely move Elasticsearch indices to another mount in Linux?

**URL:** <https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979>\
**Category:** Elasticsearch\
**Created:** [January 27, 2017, 6:50am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979 "2017-01-27T06:50:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 27, 2017, 6:50am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/1 "2017-01-27T06:50:48Z")

</div>

I'm having a number of indices which are actually causing some space issues at the moment in my **Ubuntu** machine. The indices keep growing on a daily basis.

So I thought of moving it to another mount directory which has more space apparently. How can I do this safely?

And I have to make sure that the existing ES _indices_ and the `Kibana` graphs would be safe enough after the doing the move.

**What I did** : Followed this [SO](http://stackoverflow.com/questions/35143926/how-to-move-elasticsearch-data-directory) and moved my **data** directory of `Elasticsearch` somehow to the directory _(/data/es\_data)_ I needed, but after I did that, I couldn't view my existing _indices_ plus the `Kibana` _graphs_ and _dashboards_ which I created as well.

Am I doing something wrong? Any help could be appreciated.

---

<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:** [January 27, 2017, 6:54am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/2 "2017-01-27T06:54:51Z")

</div>

Did you shut down ES?  
Did you update `path.data`?

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 27, 2017, 6:57am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/3 "2017-01-27T06:57:59Z")

</div>

Thanks @warkolm for the response. 🙂

Yes, I did shut down first and then only I moved the `data`.

> [@warkolm](#):
>
> Did you update path.data?

yes I had it as:

`path.data: /data/es_data`

And the data folder is actually within the `es_data`, so I reckon path should've been as follows, which I guess I've missed it out:

`path.data: /data/es_data/data`

Or is there something I'm missing out?

---

<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:** [January 27, 2017, 7:55am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/4 "2017-01-27T07:55:22Z")

</div>

What are the old and new paths?

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 27, 2017, 9:08am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/5 "2017-01-27T09:08:46Z")

</div>

I've actually given the `path` wrong. Now it works!

Thank you @warkolm 🙂

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 27, 2017, 11:36am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/6 "2017-01-27T11:36:29Z")

</div>

@warkolm A small clarification on the above change:

Should I also have to point `Kibana` to pick up ES data from the new location?

Or will it automatically pick it up?

Is there any change, I should make in the `Kibana` 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:** [January 27, 2017, 9:18pm UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/7 "2017-01-27T21:18:06Z")

</div>

No, nothing to change there.

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 28, 2017, 3:56am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/8 "2017-01-28T03:56:36Z")

</div>

Thanks again 🙂

---

<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:** [February 25, 2017, 3:56am UTC](https://discuss.elastic.co/t/how-can-i-safely-move-elasticsearch-indices-to-another-mount-in-linux/72979/9 "2017-02-25T03:56:36Z")

</div>

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