I am using 2.3.3 ES in CENTOS 7. I am maintaining 2 node cluster both are master & data. I want to take a snapshot of the indices. I created the repo path in both nodes & created snapshot in both nodes. Is it really needed to created in both nodes???
I created /home/ES/backup/
in both nodes & given permissions in both nodes. After that I created the snapshot
PUT _snapshot/my_backup { "type": "fs", "settings": { "location": "/home/ES/backup/" } }
PUT _snapshot/my_backup/snapshot_2 { "indices": "articles,cpuload" }
GET _snapshot/my_backup/snapshot_2
After creating snapshot I checked it. But it showing as 3 shards are failed. Why these 3 shards are failed.
{ "snapshots": [ { "snapshot": "snapshot_2", "version_id": 2030399, "version": "2.3.3", "indices": [ "articles", "cpuload" ], "state": "PARTIAL", "start_time": "2016-08-19T05:55:59.902Z", "start_time_in_millis": 1471586159902, "end_time": "2016-08-19T05:56:00.020Z", "end_time_in_millis": 1471586160020, "duration_in_millis": 118, "failures": [ { "index": "cpuload", "shard_id": 1, "reason": "RepositoryMissingException[[my_backup] missing]", "node_id": "TOiQIaLvS4iZihVSNrqkOA", "status": "INTERNAL_SERVER_ERROR" }, { "index": "articles", "shard_id": 0, "reason": "RepositoryMissingException[[my_backup] missing]", "node_id": "TOiQIaLvS4iZihVSNrqkOA", "status": "INTERNAL_SERVER_ERROR" }, { "index": "cpuload", "shard_id": 3, "reason": "RepositoryMissingException[[my_backup] missing]", "node_id": "TOiQIaLvS4iZihVSNrqkOA", "status": "INTERNAL_SERVER_ERROR" } ], "shards": { "total": 10, "failed": 3, "successful": 7 } } ] }