# Data Storage Policy in Elastic Search

**URL:** <https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121>\
**Category:** Elasticsearch\
**Created:** [November 22, 2019, 11:02pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121 "2019-11-22T23:02:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjain14](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kjain14](https://discuss.elastic.co/u/kjain14)\
**Post date:** [November 22, 2019, 11:02pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121/1 "2019-11-22T23:02:52Z")

</div>

Hi,

The version of ES is 7.0.0. I am curious to know how index stored at ES nodes. Let me give you one scenario:

In our ES cluster, there are 5 indices including .kibana. The \_cat/shards api has been showing that data of only two indices reside on IP **A**. The role of **A** is mdi (master, data, ingest eligible node). But when I am going to /app/elasticsearch/data/ESNode/nodes/0/indices directory in IP **A** , there are five folders. The name of each folder corresponds to uuid of those five indices. According to me, as \_cat/shards has been showing that data of only two indices reside on IP **A** , there should be only two folders in /app/elasticsearch/data/ESNode/nodes/0/indices. Please let me know if I am missing out something.

Thanks for your time,  
Karan

---

<div class="post-metadata">

**Author:** ![kjain14](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kjain14](https://discuss.elastic.co/u/kjain14)\
**Post date:** [November 25, 2019, 6:00pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121/2 "2019-11-25T18:00:47Z")

</div>

Hey Folks,

Any explanation for above scenario.

Thanks,  
Karan

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [November 25, 2019, 8:22pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121/3 "2019-11-25T20:22:46Z")

</div>

Hi @kjain14,

A folder per index is created on following nodes:

- master eligible nodes
- data nodes having that index

The folder will contain meta-data about the index and for the data-node holding shards of the index, the actual data.

Please never touch anything inside these folders, doing so can easily lead to data loss.

---

<div class="post-metadata">

**Author:** ![kjain14](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kjain14](https://discuss.elastic.co/u/kjain14)\
**Post date:** [December 4, 2019, 10:01pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121/4 "2019-12-04T22:01:50Z")

</div>

Hi,

Thanks for the explanation.

Best,  
Karan

---

<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 1, 2020, 10:15pm UTC](https://discuss.elastic.co/t/data-storage-policy-in-elastic-search/209121/5 "2020-01-01T22:15:48Z")

</div>

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