Elasticsearch health shows RED

Currently ES version is 5.4.3 and we are planning to upgrade to latest version.
But before doing this i need to make the cluster GREEN.Please help
{"cluster_name":"TestCluster",
"status":"red",
"timed_out":false,
"number_of_nodes":5,
"number_of_data_nodes":4,
"active_primary_shards":1662,
"active_shards":1914,"relocating_shards":0,"initializing_shards":0,
"unassigned_shards":3,
"delayed_unassigned_shards":0,
"number_of_pending_tasks":0,
"number_of_in_flight_fetch":0,
"task_max_waiting_in_queue_millis":0,
"active_shards_percent_as_number":99.8435054773083}

you need to assign the 3 unassigned shards to a node in your cluster

do you have enough free space on your nodes to assign it?

I have 2TB of data.How to assign the unassigned shards?

i have 2TB storage free space

have a look at _cluster/reroute

https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-reroute.html

Thank you .I deleted the corrupted files and restarted the nodes.Now Health shows GREEN.

Glad you got it sorted! :+1:

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