Hi,
I had to reboot EC2 instances that hosts 5-node cluster. The data stored on corresponding EBS volumes.
Once I have rebooted the instance and started the Elasticsearch my cluster got into status red. _cat/indices
misses majority of recent indices, the indices that have been created after the system rebot are in green status.
The recent indices are not existent.
The old indices ( the system was recovered once around 6 months ago ) are there but has red status. It is very likely majority of the old indices were removed.
I checked if elasticsearch has access to data directory, and it looks like all is fine there. It is version 7.16.3.
Looks like somehow elasticsearch cannot read from data directory.
I run allocation/explain command and got this:
{
"note":"No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.",
"index":"test_failed-measurements-202210",
"shard":0,
"primary":true,
"current_state":"unassigned",
"unassigned_info":{
"reason":"CLUSTER_RECOVERED",
"at":"2023-05-09T13:51:59.885Z",
"last_allocation_status":"no_valid_shard_copy"
},
"can_allocate":"no_valid_shard_copy",
"allocate_explanation":"cannot allocate because a previous copy of the primary shard existed but can no longer be found on the nodes in the cluster",
"node_allocation_decisions":[
{
"node_id":"2qfDaKt9Rgei_3hvscmIrA",
"node_name":"datanode-2",
"transport_address":"10.116.39.168:9300",
"node_attributes":{
"rack":"r1c",
"xpack.installed":"true",
"transform.node":"true"
},
"node_decision":"no",
"store":{
"found":false
}
},
{
"node_id":"AlnFm0gKRtit-rYm2jFfFA",
"node_name":"node-ELK2",
"transport_address":"10.116.32.14:9300",
"node_attributes":{
"rack":"r1a",
"xpack.installed":"true",
"transform.node":"true"
},
"node_decision":"no",
"store":{
"found":false
}
},
{
"node_id":"cx52o2FQRnmCJ4ReU8xCUQ",
"node_name":"node-ELK3",
"transport_address":"10.116.39.197:9300",
"node_attributes":{
"rack":"r1c",
"xpack.installed":"true",
"transform.node":"true"
},
"node_decision":"no",
"store":{
"found":false
}
},
{
"node_id":"nQtgMGm8RjGJkrYmOH9lLw",
"node_name":"datanode-1",
"transport_address":"10.116.37.151:9300",
"node_attributes":{
"rack":"r1a",
"xpack.installed":"true",
"transform.node":"true"
},
"node_decision":"no",
"store":{
"found":false
}
}
]
}
Any idea on this issue would be appreciated,
many thanks