# Moving elk data path to dedicated volume

**URL:** <https://discuss.elastic.co/t/moving-elk-data-path-to-dedicated-volume/203779>\
**Category:** Elasticsearch\
**Created:** [October 16, 2019, 8:30am UTC](https://discuss.elastic.co/t/moving-elk-data-path-to-dedicated-volume/203779 "2019-10-16T08:30:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agiorgi](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@agiorgi](https://discuss.elastic.co/u/agiorgi)\
**Post date:** [October 16, 2019, 8:30am UTC](https://discuss.elastic.co/t/moving-elk-data-path-to-dedicated-volume/203779/1 "2019-10-16T08:30:25Z")

</div>

Hello everyone,

I've been asked to move Elasticsearch's data path from default path, to a new dedicated volume.  
I still do not have any detail (except that cluster is running on RHEL VMs), but i'm afraid that the volume is going to be provided through an NFS share.  
I know that data on NFS kills indexing performance, but besides performance, do i need to care about something else? e.g. Indexes getting corrupted or similar etc...  
There are some serious consequences on having data on an NFS share?  
Beside that, which are going to be the steps to actually do this migration?  
Assuming that i already have the new volume mounted and available on my nodes, these are the steps that i would do:  
Cluster level:

- Disable shard allocation

For every Elasticsearch node:

- Shut down ES
- Copy/mv data to the new volume (maybe using rsync)
- Amend ES config file with correct data.path
- Start ES

Once all nodes are up and back running  
Cluster level:

- Re-enable shard allocation

What do you think about that?  
is is enough?  
Do i have to completely take off the cluster?

Many thanks!  
Regards,  
Alessandro

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [October 16, 2019, 10:16am UTC](https://discuss.elastic.co/t/moving-elk-data-path-to-dedicated-volume/203779/2 "2019-10-16T10:16:05Z")

</div>

> [@agiorgi](#):
>
> There are some serious consequences on having data on an NFS share?

It depends how the NFS share is configured. It needs to behave like a local filesystem for Elasticsearch to work correctly, which I think means it needs to be at least NFS 4.1. I don't have any more details on how to configure it, however.

> [@agiorgi](#):
>
> Assuming that i already have the new volume mounted and available on my nodes, these are the steps that i would do:

Yes, that seems reasonable. You must move the data (or copy it and then delete the original) to avoid starting up two copies of the same node by accident.

---

<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:** [November 13, 2019, 10:16am UTC](https://discuss.elastic.co/t/moving-elk-data-path-to-dedicated-volume/203779/3 "2019-11-13T10:16:11Z")

</div>

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