# First time cluster installation- cluster status red

**URL:** https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234
**Category:** Elasticsearch
**Created:** [October 9, 2017, 1:25pm UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234 "2017-10-09T13:25:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [October 9, 2017, 1:25pm UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234/1 "2017-10-09T13:25:14Z")

</div>

Hello,

I am trying to setup my first ES cluster with 3 nodes, all master. During the setup of the cluster I was rebooting the ES service on the nodes which seems to have corrupted some of the indexes in the nodes(I believe). I then removed the cluster configuration from elasticsearch.yml hoping this would make all the nodes all single nodes, not within the cluster anymore.  
When checking the indexes, I see a number of them are in state red.

curl -XGET 'localhost:9200/\_cat/indices?v&pretty'  
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
red open logstash-2017.05.20 yLfLmOpJQ4S4J8Ha4rucOQ 5 1 8365 0 8.1mb 8.1mb

I left the default setting for replication to 1, which I wrongly assumed that it wont replicate the data between the nodes.  
My questions are:  
1)can I recover from index in state red? Or do I need to delete it and start from scratch?  
2)will all my indexes replicate in cluster by default?  
3)Some of my indexes seem to have not been affected. If I restart the service of ES after I changed the configuration of the cluster in order to remove it from the cluster, is it possible they will get corrupted further?  
If so, can I do a backup of index on the fly without having to configure a backup path, which would make me restart the service?

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [October 9, 2017, 3:18pm UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234/2 "2017-10-09T15:18:05Z")

</div>

Also I see the following when executing command:  
curl -XPOST "http://localhost:920GET localhost:9200/\_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED

logstash-2017.09.01 4 p UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 4 r UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 2 p UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 2 r UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 3 p UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 3 r UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 1 p UNASSIGNED CLUSTER\_RECOVERED  
logstash-2017.09.01 1 r UNASSIGNED CLUSTER\_RECOVERED

They all show unassigned, cluster\_recovered.

At this stage took out this node out of my 3 node cluster and want it to be isolated on its own.  
Is it possible to fix or does it look like my data is corrupted?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [October 9, 2017, 3:23pm UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234/3 "2017-10-09T15:23:11Z")

</div>

It seems like you might be having quite small shards, and possibly quite a few of them, which can be inefficient and cause problems. I would recommend reading the following [blog post about shards and sharding](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster).

What is the output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html)?

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [October 11, 2017, 7:56am UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234/4 "2017-10-11T07:56:08Z")

</div>

Thanks for the link, really useful. Setup my cluster from scratch and it works!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 8, 2017, 7:56am UTC](https://discuss.elastic.co/t/first-time-cluster-installation-cluster-status-red/103234/5 "2017-11-08T07:56:40Z")

</div>

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