# Path.data and path.repo difference

**URL:** https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106
**Category:** Elasticsearch
**Created:** [April 15, 2020, 11:49am UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106 "2020-04-15T11:49:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shubham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham/32/62276_2.png) [@Shubham](https://discuss.elastic.co/u/Shubham)
#### Post date: [April 15, 2020, 11:49am UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/1 "2020-04-15T11:49:11Z")

</div>

I am trying to take backup of ES indices in my two nodes cluster. Getting error like : the store [/user/home/esbackup] is not shared between this node [data node] and the master node or that permissions on the store don't allow reading files written by the master node. That I understand.

Now coming to my query, ES documentation says :

**Every data and master-eligible node requires access to a data directory where shards and index and cluster metadata will be stored.**

Now, If I change the data path in elasticsearch.yml file (node.data) then won't I be required to make new data path as shared fs like NFS, S3, HDFS ? Because in case of backup repo(path.repo), I need to make backup file as shared fs. How is the data repository different from backup repository ?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 15, 2020, 12:08pm UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/2 "2020-04-15T12:08:44Z")

</div>

They are two completely different concepts and have no dependency apart from that they have to be different paths. A nodes data is stored under `path.data` while any snapshots are stored somewhere under the paths specified by `path.repo`. The first should be on local storage while second need to use shared storage.

---

<div class="post-metadata">

### Author: ![Shubham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham/32/62276_2.png) [@Shubham](https://discuss.elastic.co/u/Shubham)
#### Post date: [April 15, 2020, 12:15pm UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/3 "2020-04-15T12:15:59Z")

</div>

Thanks @Christian\_Dahlqvistfor quick reply!

If I use multi nodes cluster, then data stored in `path.data` is not specific to that node. It will be available to whole cluster and every node can read data from that location.  
If the data in path.data is consistent throughout the cluster then can I use something like this :  
`path.data: /var/data/elasticsearch`  
`path.repo: /var/data/elasticsearch/backups`

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 15, 2020, 12:21pm UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/4 "2020-04-15T12:21:39Z")

</div>

> [@Shubham](#):
>
> If I use multi nodes cluster, then data stored in `path.data` is not specific to that node. It will be available to whole cluster and every node can read data from that location.

No, the node in question manages the data stored here. This is not accessible directly from other nodes. Requests are however served by the cluster as a whole.

I would recommend using two completely different paths.

---

<div class="post-metadata">

### Author: ![Shubham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham/32/62276_2.png) [@Shubham](https://discuss.elastic.co/u/Shubham)
#### Post date: [April 15, 2020, 12:28pm UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/5 "2020-04-15T12:28:43Z")

</div>

Thank you @Christian_Dahlqvist

---

<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: [May 13, 2020, 12:44pm UTC](https://discuss.elastic.co/t/path-data-and-path-repo-difference/228106/6 "2020-05-13T12:44:12Z")

</div>

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