# Unassigned replica shards after cluster restart

**URL:** <https://discuss.elastic.co/t/unassigned-replica-shards-after-cluster-restart/21810>\
**Category:** Elasticsearch\
**Created:** [January 24, 2015, 12:48am UTC](https://discuss.elastic.co/t/unassigned-replica-shards-after-cluster-restart/21810 "2015-01-24T00:48:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddp](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@ddp](https://discuss.elastic.co/u/ddp)\
**Post date:** [January 24, 2015, 12:48am UTC](https://discuss.elastic.co/t/unassigned-replica-shards-after-cluster-restart/21810/1 "2015-01-24T00:48:10Z")

</div>

We are using ES version 1.4.1. We have hourly index with 50 shards per  
index and replication is 1 . We restarted our cluster after the some  
maintenance we had from system side. No we don't have any disk failures.  
After the restart, i see all primary shards are assigned but all replicas  
are unassigned?

After cluster shutdown, these are the steps we followed to do the restart

1. Start all master nodes
2. "cluster.routing.allocation.enable" : "none"
3. Start all data nodes
4. After all nodes joined the cluster we did  
cluster.routing.allocation.enable" : "all"

for cluster setting this it shows.  
{

- persistent: { },
- transient:  
{
  - cluster:  
{
    - routing:  
{
      - allocation:  
{
        - enable: "all"  
}  
}  
}  
}

}

Pending tasks queue is empty. Cluster status is yellow

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e36555af-9aab-4496-9c72-b26ba19866ed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e36555af-9aab-4496-9c72-b26ba19866ed%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ddp](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@ddp](https://discuss.elastic.co/u/ddp)\
**Post date:** [January 24, 2015, 12:58am UTC](https://discuss.elastic.co/t/unassigned-replica-shards-after-cluster-restart/21810/2 "2015-01-24T00:58:09Z")

</div>

One correction. Pending tasks queue is not empty and it shows one task.

18596 56.1m URGENT reroute\_after\_cluster\_update\_settings. I think this is \*cluster.routing.allocation.\*_enable" : "all"_ we executed after all nodes joined the cluster. Setting got updated on all the nodes. But why it is still in the queue from last 56 m?

On Friday, January 23, 2015 at 4:48:10 PM UTC-8, Darsh wrote:

> We are using ES version 1.4.1. We have hourly index with 50 shards per  
> index and replication is 1 . We restarted our cluster after the some  
> maintenance we had from system side. No we don't have any disk failures.  
> After the restart, i see all primary shards are assigned but all replicas  
> are unassigned?
> 
> After cluster shutdown, these are the steps we followed to do the restart
> 
> 1. Start all master nodes
> 2. "cluster.routing.allocation.enable" : "none"
> 3. Start all data nodes
> 4. After all nodes joined the cluster we did  
> cluster.routing.allocation.enable" : "all"
> 
> for cluster setting this it shows.  
> {
> 
> - persistent: { },
> - transient:  
> {
> - cluster:  
> {
> - routing:  
> {
> - allocation:  
> {
> - enable: "all"  
> }  
> }  
> }  
> }
> 
> }
> 
> Cluster status is yellow

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8a04bad1-6985-46ea-8f04-bec0c86c65bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8a04bad1-6985-46ea-8f04-bec0c86c65bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:36am UTC](https://discuss.elastic.co/t/unassigned-replica-shards-after-cluster-restart/21810/3 "2017-07-06T00:36:53Z")

</div>


