Location of the path.repo #6809
-
Hello, SO standard 2.7.50 version. I am trying to back up the indices in the elasticsearch database to an external storage. When I change the config of the elasticsearch.yml file and insert path.repo: /arch the configuration is being overwritten when I restart elasticsearch. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
I worked through the same issue, I've currently got a slightly clunky solution that requires some manual configuration, and I've got a pretty good idea of how to do it cleanly, but it will take a bit of work (so this is a good exercise in documenting what needs to get done :-). To answer your question directly, your changes gets overwritten because But wait, there's more. Elastic runs in a container, and only sees the paths bound to the container. You have to bind the mount point for the repo to the Elasticsearch container, and then specify that path as the Then you can register the repo with Elastic. Here's a summary of what I did (on a Distributed install)
And here's the long version:
I set up an NFSv4 server and exported a directory for each of the search nodes, and mounted them on their respective nodes. I'm not going to delve into the details of configuring fileservers/exports/mount points here. But if someone wants, I can share the specifics of what I did with NFS.
In each of the searchnode minion files, under the
Note that the the Note also that while I specified the mount path, technically it's actually the bind point on the container (see next bullet). It works here because I'm going to use the same path for both.
I made a copy of Under
That creates entries for a bind in the container with the same path as the actual directory. As I mentioned above, the Note that every time I run Also note that for a Standalone install, one might have to use a different role name.
For a more permanent, and comprehensive solution, I'm looking at doing the following, which will allow one to specify all the options necessary for creating repos, and generate all the configs including registering the repos.
The first three bullet items will be pretty straightforward, the last one will take some effort; I'll need to up my Salt game. |
Beta Was this translation helpful? Give feedback.
-
This will be supported out of the box in .100 |
Beta Was this translation helpful? Give feedback.
This will be supported out of the box in .100