# Store Path Data to Multiple Location FIle

**URL:** <https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538>\
**Category:** Elasticsearch\
**Created:** [February 8, 2022, 2:26am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538 "2022-02-08T02:26:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xenial](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xenial/32/97821_2.png) [@Xenial](https://discuss.elastic.co/u/Xenial)\
**Post date:** [February 8, 2022, 2:26am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/1 "2022-02-08T02:26:04Z")

</div>

Hello, i've Elasticsearch server, but the storage is full.

My server run on vmware, i want to add new disk, and i want to mount on /backup location.

When i add to /etc/Elasticsearch/Elasticsearch.yml and add line Path.Data, still failed when i restart the Elasticsearch.

Can you help me?

Thankyou

 ![Screen Shot 2022-02-08 at 09.21.24](https://us1.discourse-cdn.com/elastic/original/3X/3/3/33a0b9cc3f3d44a8c137016e7b35789cc6b2d9f8.png)

---

<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:** [February 8, 2022, 2:27am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/2 "2022-02-08T02:27:53Z")

</div>

> [@Xenial](#):
>
> When i add to /etc/Elasticsearch/Elasticsearch.yml and add line Path.Data, still failed when i restart the Elasticsearch.

Failed how? What did you actually change?

---

<div class="post-metadata">

**Author:** ![Xenial](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xenial/32/97821_2.png) [@Xenial](https://discuss.elastic.co/u/Xenial)\
**Post date:** [February 8, 2022, 2:53am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/3 "2022-02-08T02:53:29Z")

</div>

i want to add new location on path.data from file Elasticsearch.yml

 ![Screen Shot 2022-02-08 at 09.51.08](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b159a59011266f5ea86849bd47bd4943e02e562.png)

when i restart di services, always failed

 ![Screen Shot 2022-02-08 at 09.51.47](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cebfc37cc8c5e14e1df69cb2a017adc84b5e245.png)

---

<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:** [February 8, 2022, 2:54am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/4 "2022-02-08T02:54:12Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![Xenial](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xenial/32/97821_2.png) [@Xenial](https://discuss.elastic.co/u/Xenial)\
**Post date:** [February 8, 2022, 5:57am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/5 "2022-02-08T05:57:24Z")

</div>

ok, can you tell me, how i use two different path.data to store Elasticsearch data??

Thankyou

---

<div class="post-metadata">

**Author:** ![Dheeraj\_Gupta](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@Dheeraj\_Gupta](https://discuss.elastic.co/u/Dheeraj_Gupta)\
**Post date:** [February 8, 2022, 6:15am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/6 "2022-02-08T06:15:01Z")

</div>

You can read the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#_multiple_data_paths) on using multiple data paths. You need to specify a list of entries

```auto
path:
  data:
    - /var/lib/elasticsearch
    - /backup/elasticsearch

```

Be advised, support for multiple data paths is **deprecated since 7.13.0** and will be removed in a future release. Documentation recommends using LVM to create logical volumes and expanding them by adding space as your data grows.

---

<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:** [February 8, 2022, 6:19am UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/7 "2022-02-08T06:19:15Z")

</div>

Yep, please don't use multiple paths!

---

<div class="post-metadata">

**Author:** ![Xenial](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xenial/32/97821_2.png) [@Xenial](https://discuss.elastic.co/u/Xenial)\
**Post date:** [February 10, 2022, 1:00pm UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/8 "2022-02-10T13:00:58Z")

</div>

Thankyou, i've extend my disk using LVM in ubuntu

---

<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:** [March 10, 2022, 1:01pm UTC](https://discuss.elastic.co/t/store-path-data-to-multiple-location-file/296538/9 "2022-03-10T13:01:48Z")

</div>

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