Mount Shared Drive

Hi, I am trying to mount a shared drive across three elasticsearch nodes with the aim of snapshotting an elasticsearch repository.

I have three different nodes across three different centos servers, e.g. 10.212.145.10, 10.212.145.20, 10.212.145.30.

I have added the path.repo field in my elasticsearch.yml file (etc/elasticsearch/elasticsearch.yml) on all my nodes:

path.repo: ["/mnt/elasticsearch_repository/backup"]

I have run the following to register the repository, which works fine (thanks to help from @dadoonet in a previous question).

curl -XPUT -H "Content-Type: application/json" 'http://10.212.145.10:9200/_snapshot/backup' -d '{
    "type": "fs",
    "settings": {
        "location": "/mnt/elasticsearch_repository/backup",
        "compress": true
    }
}'

However, I don't know how to make the drive visible across all nodes.

Should I be adding:

path.repo: ["\\\10.212.45.10\\mnt/elasticsearch_repository/backup"]

instead?

Any help would be greatly appreciated.

Thanks

You need to mount the /mnt/elasticsearch_repository/backup dir on every machine where elasticsearch is running.

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