# Unassigned replicas with status CLUSTER\_RECOVERED

**URL:** <https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746>\
**Category:** Elasticsearch\
**Created:** [February 9, 2022, 3:38pm UTC](https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746 "2022-02-09T15:38:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adityadgr8](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Adityadgr8](https://discuss.elastic.co/u/Adityadgr8)\
**Post date:** [February 9, 2022, 3:38pm UTC](https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746/1 "2022-02-09T15:38:55Z")

</div>

Hello All,

I have a single node Elasticsearch setup. I have unassigned replicas

Here is the kibana query through which I am checking:

```auto
GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state

```

and output is:

```auto
index shard prirep state node unassigned.reason
%{[@metadata][cluster]}-metrics-server-20210818 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-metrics-server-20210804 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210622 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210621 0 r UNASSIGNED CLUSTER_RECOVERED

```

I am not sure why it is showing unassigned.  
As this is single node cluster so I have set the no. of replicas to 0, using the below query

```auto
PUT /_all/_settings
{
  "index" : {
    "number_of_replicas" : 0
  }
}

```

still the status is same as above(unassigned replicas).

Adittionally I ran the below command also to solve the issue:

```auto
PUT /_cluster/settings
{
  "transient" : {
    "cluster.routing.rebalance.enable" : "all"
  }
}

```

but this also not worked.

please help in this.  
Thanks in Advance...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 9, 2022, 11:02pm UTC](https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746/2 "2022-02-09T23:02:51Z")

</div>

> [@Adityadgr8](#):
>
> I have a single node Elasticsearch setup. I have unassigned replicas

You cannot have replica's assigned on a single node, as there's no redundancy.

---

<div class="post-metadata">

**Author:** ![Adityadgr8](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Adityadgr8](https://discuss.elastic.co/u/Adityadgr8)\
**Post date:** [February 10, 2022, 7:00am UTC](https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746/3 "2022-02-10T07:00:18Z")

</div>

Hello @warkolm , you are right that we can't have replicas on a single node, so I am setting the replicas to 0 using the below kibana query:

```auto
PUT /_all/_settings
{
  "index" : {
    "number_of_replicas" : 0
  }
}

```

but after that also I have unassigned replicas:

```auto
index shard prirep state node unassigned.reason
%{[@metadata][cluster]}-metrics-server-20210818 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-metrics-server-20210804 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210622 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210621 0 r UNASSIGNED CLUSTER_RECOVERED

```

How to get rid of this?

---

<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:** [March 10, 2022, 7:01am UTC](https://discuss.elastic.co/t/unassigned-replicas-with-status-cluster-recovered/296746/4 "2022-03-10T07:01:00Z")

</div>

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