# Move index/data to new drive

**URL:** <https://discuss.elastic.co/t/move-index-data-to-new-drive/8579>\
**Category:** Elasticsearch\
**Created:** [July 31, 2012, 2:12pm UTC](https://discuss.elastic.co/t/move-index-data-to-new-drive/8579 "2012-07-31T14:12:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garryc](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@garryc](https://discuss.elastic.co/u/garryc)\
**Post date:** [July 31, 2012, 2:12pm UTC](https://discuss.elastic.co/t/move-index-data-to-new-drive/8579/1 "2012-07-31T14:12:36Z")

</div>

Hello

I'm trying to figure out how to move the ES indexes from one drive to anther. Our current setup was not customized and all data is being written to a small partition and we'd like to move it to a larger one.

Is it just a matter of updating the elasticsearch.yml with the 'path.data:' and then copying the data to the new location?

I noticed that the indexes are located in:

/var/lib/elasticsearch//nodes/0/indices

Do I just replace '/var/lib/elasticsearch/' in the config file and copy '/nodes/0/indices'

thanx  
Garry

---

<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:** [July 6, 2017, 3:18am UTC](https://discuss.elastic.co/t/move-index-data-to-new-drive/8579/2 "2017-07-06T03:18:18Z")

</div>


