Jump to content

At least one primary shard (and all of its replicas) are missing


Cowboy Denny

Recommended Posts

At times you get the following error message in BIG-IQ

At least one primary shard (and all of its replicas) are missing. This means that you are missing data; searches will return partial results, and indexing into that shard will return an exception.

Only solution I have discovered is running the following command to DELETE the unassigned shards

Log in to bash on the BIG-IQ system with administrator credentials.

Delete the unassigned shards by entering the following command:

BIG-IQ 8.0.0 and later

curl -s -k https://localhost:9200/_cat/shards | grep UNAS | awk '{print $1}' | sort | uniq | sed 's/+/%2B/g' | while read line ; do curl -s -k -X DELETE "https://localhost:9200/$line" ; done

BIG-IQ 7.1.0 and earlier

curl -s http://localhost:9200/_cat/shards | grep UNAS | awk '{print $1}' | sort | uniq | sed 's/+/%2B/g' | while read line ; do curl -s -X DELETE "localhost:9200/$line" ; done

..

Link to comment
Share on other sites

×
×
  • Create New...