# Is it possible to move one ES indice to a different mount in a linux server?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-move-one-es-indice-to-a-different-mount-in-a-linux-server/68450>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 4:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-one-es-indice-to-a-different-mount-in-a-linux-server/68450 "2016-12-08T16:08:31Z")\
**Posts on this page:** 3\
**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:** [December 8, 2016, 4:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-one-es-indice-to-a-different-mount-in-a-linux-server/68450/1 "2016-12-08T16:08:31Z")

</div>

I'm currently having all my indices mounted on `/` by default. Since I'm currently having some indices which would grow day by day, hence I wanted some indices to move it to another mount safely. For example, I'm having an indice called `testing`, and I wanted it to move to the mount, `/boot` within my server itself.

How should I go ahead with this? Does taking a `snapshot` of an indice and `restoring` it to another location would do?

OR would that be fine if I just move my ES data folder itself to another mount if I'm to move the whole node? ES version which I'm using is v5.0.

Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [December 9, 2016, 6:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-one-es-indice-to-a-different-mount-in-a-linux-server/68450/2 "2016-12-09T18:39:35Z")

</div>

You can shut down Elasticsearch, move the data directory to a different location, and then change the `path.data` configuration in `elasticsearch.yml` to point to the new location. Once you start ES back up it will see the data and recover normally.

That said. I _highly_ recommend mounting a different partition somewhere like `/mnt/esdata`, not putting anything inside of `/boot`. `/boot` is intended on Linux machines only for kernel images and bootloader configuration, it can be really bad if you run out of space on 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 6, 2017, 6:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-move-one-es-indice-to-a-different-mount-in-a-linux-server/68450/3 "2017-01-06T18:39:36Z")

</div>

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