# Add new storage for elasticsearch

**URL:** <https://discuss.elastic.co/t/add-new-storage-for-elasticsearch/164273>\
**Category:** Elasticsearch\
**Created:** [January 15, 2019, 9:18am UTC](https://discuss.elastic.co/t/add-new-storage-for-elasticsearch/164273 "2019-01-15T09:18:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [January 15, 2019, 9:18am UTC](https://discuss.elastic.co/t/add-new-storage-for-elasticsearch/164273/1 "2019-01-15T09:18:41Z")

</div>

Hello!

I need some help on Elasticsearch and adding another storage device in Elastic. The thing is: I have a server running Elasticsearch, Logstash and Kibana. But Elasticsearch data path is running on a disk with only 30gb. I have another disk on that same server for 500gb, but it is not being used...

Does anyone know how to add this device and start indexing on it, and not on the other disk of 30gb?7

Thanks! I really need some help and guidance on this!!

---

<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:** [January 15, 2019, 10:14am UTC](https://discuss.elastic.co/t/add-new-storage-for-elasticsearch/164273/2 "2019-01-15T10:14:06Z")

</div>

If you can tolerate the downtime, the simplest approach is to shut down Elasticsearch, move the data folder onto the larger disk, adjust the `path.data` setting in `elasticsearch.yml` and then start the node back up again.

If you need to do this without downtime then you can start up a second node configured to use the new disk and then use [shard allocation filtering](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html) to evict the shards from the node that uses smaller disk. Once all the shards are moved over you can retire the old node. Be aware that this doesn't _completely_ work because you have to increase `discovery.zen.minimum_master_nodes` from `1` to `2` while there are two nodes in the cluster, and then reduce it to `1` again, and you will see warnings that it's not set correctly at some points in the process.

I should add that you should take a backup (snapshot) before doing any of this.

---

<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 12, 2019, 10:14am UTC](https://discuss.elastic.co/t/add-new-storage-for-elasticsearch/164273/3 "2019-02-12T10:14:09Z")

</div>

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