# Setup repository on cluster across two servers

**URL:** <https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 18, 2021, 4:55am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945 "2021-10-18T04:55:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [October 18, 2021, 4:55am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/1 "2021-10-18T04:55:19Z")

</div>

Hello, I have a cluster set up on two servers,

1. Node master and coordination on IP 10.10.10.1.
2. Node data on IP 10.10.10.2.

I want to set up repository on my cluster, here is my question

1. How I can declare my path.repo here, should I declare the path from node data or node master?
2. Can I declare path.repo from multiple hosts despite I have pretty similar path on each host, so I think they can't communicate each other. (i.e: "/data/master" on master host and "/data/node\_data" on data host)

Is there any suggestion I can implement to setup repository on my case?

feel free to ask additional information about this, because I already on deadend rn lol,  
Thanks in advance

---

<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:** [October 18, 2021, 5:02am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/2 "2021-10-18T05:02:49Z")

</div>

> [@alfianaf](#):
>
> How I can declare my path.repo here, should I declare the path from node data or node master?

Both. All master and data nodes need to have access to the shared storage on the same path.

> [@alfianaf](#):
>
> Can I declare path.repo from multiple hosts despite I have pretty similar path on each host, so I think they can't communicate each other. (i.e: "/data/master" on master host and "/data/node\_data" on data host)

No, the shared storage must be mapped to exactly the same path.

---

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [October 18, 2021, 5:05am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/3 "2021-10-18T05:05:51Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Both. All master and data nodes need to have access to the shared storage on the same path.

so if my master or data node don't have "direct access" to the current path, it couldn't be configured right?

---

<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:** [October 18, 2021, 5:10am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/4 "2021-10-18T05:10:26Z")

</div>

You will need to create a shared data volume, e.g. using NFS, and mount it on the same path on both nodes. If that is not possible you will not be able to create snapshots, at least with a file system repository. You could still use e.g. an S3 repository if you have access to that.

---

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [October 18, 2021, 5:15am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/5 "2021-10-18T05:15:52Z")

</div>

I see, thank you for the kindly help  
hope you have a nice day

---

<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:** [November 15, 2021, 5:16am UTC](https://discuss.elastic.co/t/setup-repository-on-cluster-across-two-servers/286945/6 "2021-11-15T05:16:07Z")

</div>

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