# Create snapshot

**URL:** <https://discuss.elastic.co/t/create-snapshot/363915>\
**Category:** Elasticsearch\
**Created:** [July 28, 2024, 7:19am UTC](https://discuss.elastic.co/t/create-snapshot/363915 "2024-07-28T07:19:29Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 7:19am UTC](https://discuss.elastic.co/t/create-snapshot/363915/1 "2024-07-28T07:19:29Z")

</div>

I have a node1, node2, node3 contract  
in several places and I want to make a snapshot of a specific indicator that is available for example in node2  
I made the path.repo in the configuration file for each node and when I restart the contract it is an error that it was not recognized or did not find the repository  
Knowing that I created the repository file in the device on which the node node is located and restarted it and this was done successfully, but node node node1 and node3 did not work  
It may be related to accessing the repository file in the jazz of node node node2  
Is there a way to do that And link the rest of the contract to the warehouse?

---

<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:** [July 28, 2024, 8:36am UTC](https://discuss.elastic.co/t/create-snapshot/363915/2 "2024-07-28T08:36:16Z")

</div>

Have you set up therepository as [a shared filesystem repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-filesystem-repository.html) that is available on the same path from all nodes in the cluster? Note that local directories on the different nodes will not work even if the path is the same.

If it is not working, what is the full error message?

---

<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:** [July 28, 2024, 8:41am UTC](https://discuss.elastic.co/t/create-snapshot/363915/3 "2024-07-28T08:41:36Z")

</div>

See [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-filesystem-repository.html#_troubleshooting_a_shared_file_system_repository) for more information, particularly:

> Check for common misconfigurations using the [Verify snapshot repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/verify-snapshot-repo-api.html) API and the [Repository analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/repo-analysis-api.html) API. When the repository is properly configured, these APIs will complete successfully. If the verify repository or repository analysis APIs report a problem then you will be able to reproduce this problem outside Elasticsearch by performing similar operations on the file system directly.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 9:05am UTC](https://discuss.elastic.co/t/create-snapshot/363915/4 "2024-07-28T09:05:11Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Have you set up therepository as [a shared filesystem repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-filesystem-repository.html) that is available on the same path from all nodes in the cluster? Note that local directories on the different nodes will not work even if the path is the same.
> 
> If it is not working, what is the full error message?

No, I didn't do that exactly.  
I created a folder named db\_snapshot and then I added the path of the folder to the configuration file for all nodes and when I do a restart, but it does not do so and returns an error, but I noticed that the machine in which the repository folder is located, the node in which it is located, restarts successfully

---

<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:** [July 28, 2024, 9:12am UTC](https://discuss.elastic.co/t/create-snapshot/363915/5 "2024-07-28T09:12:43Z")

</div>

As pointed out in the docs linked to the cluster requires a shared repository, e.g. an NFS mount, that is accessible by all nodes. Local folders does not work. The cluster will validate that this is the case and I would expect this to be shown in the error messages.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 9:14am UTC](https://discuss.elastic.co/t/create-snapshot/363915/6 "2024-07-28T09:14:43Z")

</div>

I have configured the repository correctly and the node on the machine in which the repository was created has been successfully configured but the nodes that do not have the repository return an error  
That is, the creation of the warehouse is correct, but the other two devices did not access the warehouse in the second device

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 9:19am UTC](https://discuss.elastic.co/t/create-snapshot/363915/7 "2024-07-28T09:19:37Z")

</div>

Okay  
Is it possible to make the shot depending on one node only  
That is, I do the repository in the node in which the part of the pointer that I want to make a snapshot of?

---

<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:** [July 28, 2024, 9:21am UTC](https://discuss.elastic.co/t/create-snapshot/363915/8 "2024-07-28T09:21:35Z")

</div>

Snapshots are taken cluster wide, so if you have more than one node in the cluster local repositories will not work.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 9:27am UTC](https://discuss.elastic.co/t/create-snapshot/363915/9 "2024-07-28T09:27:31Z")

</div>

Ok  
I'm going to do a shared filesystem repository and try it out.

Thank you

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 9:39am UTC](https://discuss.elastic.co/t/create-snapshot/363915/10 "2024-07-28T09:39:39Z")

</div>

I have a note  
When I create the same folder and the same place in all nodes, for example, node1, I made the folder for it, and also node2, node3  
Do I put the path of the repository folder in one of the nodes to all nodes or each node has its own folder path only?

---

<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:** [July 28, 2024, 10:08am UTC](https://discuss.elastic.co/t/create-snapshot/363915/11 "2024-07-28T10:08:34Z")

</div>

You need to mount the shared filesystem repository on the same path in all nodes in the cluster.

---

<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:** [July 28, 2024, 10:36am UTC](https://discuss.elastic.co/t/create-snapshot/363915/12 "2024-07-28T10:36:59Z")

</div>

> [@dsagent](#):
>
> I have configured the repository correctly

This isn't true. If you followed the docs we linked, you would have got an error describing the mistake you made. Christian's guidance is accurate, but once you've done it you must use those troubleshooting APIs to check everything is working.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 12:08pm UTC](https://discuss.elastic.co/t/create-snapshot/363915/13 "2024-07-28T12:08:05Z")

</div>

ok  
I'll do it.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 12:20pm UTC](https://discuss.elastic.co/t/create-snapshot/363915/14 "2024-07-28T12:20:22Z")

</div>

But the path has things that differ from one device to another, for example, the name of the device node1 The other device node2  
For example  
If you create a repository in a ready-made where the username or disk is node1 and in the other jazz it is node2 here it is sure that the path is different  
Would it be correct if I added one of them to all the nodes? And is it recognized?

---

<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:** [July 28, 2024, 12:32pm UTC](https://discuss.elastic.co/t/create-snapshot/363915/15 "2024-07-28T12:32:05Z")

</div>

Did you read [the docs Ilinked to](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-filesystem-repository.html)? It states:

> To register a shared file system repository, first mount the file system to the same location on all master and data nodes. Then add the file system’s path or parent directory to the `path.repo` setting in `elasticsearch.yml` for each master and data node. For running clusters, this requires a [rolling restart](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-cluster.html#restart-cluster-rolling) of each node.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 28, 2024, 5:49pm UTC](https://discuss.elastic.co/t/create-snapshot/363915/16 "2024-07-28T17:49:03Z")

</div>

ok  
Thank you, I understand.
