Elasticsearch shards unassigned

can I please get some help on getting my shards assigned, here is the info I have so far as to why it is not working.

root@graylog:~# curl -XGET localhost:9200/_cluster/allocation/explain?pretty
{
  "index" : "graylog_0",
  "shard" : 3,
  "primary" : false,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "CLUSTER_RECOVERED",
    "at" : "2018-07-11T15:29:04.930Z",
    "last_allocation_status" : "no_attempt"
  },
  "can_allocate" : "no",
  "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
  "node_allocation_decisions" : [
    {
      "node_id" : "K2W8IicPQR2H5hi0fM02qQ",
      "node_name" : "K2W8Iic",
      "transport_address" : "10.160.1.100:9300",
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "same_shard",
          "decision" : "NO",
          "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[graylog_0][3], node[K2W8IicPQR2H5hi0fM02qQ], [P], s[STARTED], a[id=Rvs4w-a4S3SCPhqYGLe72g]]"
        }
      ]
    }
  ]
}

root@graylog:~# curl -XGET http://localhost:9200/_cat/shards
graylog_0 3 p STARTED    4547665 916.9mb 10.160.1.100 K2W8Iic
graylog_0 3 r UNASSIGNED
graylog_0 1 p STARTED    4550583 917.3mb 10.160.1.100 K2W8Iic
graylog_0 1 r UNASSIGNED
graylog_0 2 p STARTED    4552011 918.9mb 10.160.1.100 K2W8Iic
graylog_0 2 r UNASSIGNED
graylog_0 0 p STARTED    4550824   916mb 10.160.1.100 K2W8Iic
graylog_0 0 r UNASSIGNED

root@graylog:~# curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   276  100   276    0     0  16709      0 --:--:-- --:--:-- --:--:-- 17250
graylog_0 3 r UNASSIGNED CLUSTER_RECOVERED
graylog_0 1 r UNASSIGNED CLUSTER_RECOVERED
graylog_0 2 r UNASSIGNED CLUSTER_RECOVERED
graylog_0 0 r UNASSIGNED CLUSTER_RECOVERED

By definition, you can’t have replica shards with a single Elasticsearch node.

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