# Question about unassigned shards

**URL:** https://discuss.elastic.co/t/question-about-unassigned-shards/13892
**Category:** Elasticsearch
**Created:** [October 9, 2013, 8:12pm UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892 "2013-10-09T20:12:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mark\_2](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mark\_2](https://discuss.elastic.co/u/mark_2)
#### Post date: [October 9, 2013, 8:12pm UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892/1 "2013-10-09T20:12:53Z")

</div>

I've spun up a new ES cluster (0.90.5) that consists of two nodes with zone  
awareness. I created a test index with 5 shards and 1 replica via the API  
which returns successfully. When I examine the cluster health endpoint, the  
result shows that the shards are unassigned and remains that way:

{"cluster\_name": "mysearchcluster","status": "red","timed\_out": false,"  
number\_of\_nodes": 2,"number\_of\_data\_nodes": 2,"active\_primary\_shards": 0,"  
active\_shards": 0,"relocating\_shards": 0,"initializing\_shards": 0,"  
unassigned\_shards": _10_}

There doesn't appear to be anything in the logs that indicate an errors.  
Also I cannot (as I would expect) able to access the index via curl.

I'm sure I'm missing something obvious here but just looking for help as to  
what step I may have missed in setting up this two node cluster.

Thanks in advance!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [October 9, 2013, 9:35pm UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892/2 "2013-10-09T21:35:26Z")

</div>

The cluster state is red, so I'm sure there is something in the logs... can  
you please give us insight about your logs and the command how you did set  
up zone awareness.

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mark\_2](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mark\_2](https://discuss.elastic.co/u/mark_2)
#### Post date: [October 9, 2013, 10:04pm UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892/3 "2013-10-09T22:04:55Z")

</div>

Certainly.

Here's all the log output after a data node restart:  
[https://gist.github.com/mgreene/6909159](https://gist.github.com/mgreene/6909159)

elasticsearch.yml: [https://gist.github.com/mgreene/6909279](https://gist.github.com/mgreene/6909279)

On Wednesday, October 9, 2013 5:35:26 PM UTC-4, Jörg Prante wrote:

> The cluster state is red, so I'm sure there is something in the logs...  
> can you please give us insight about your logs and the command how you did  
> set up zone awareness.
> 
> Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mark\_2](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mark\_2](https://discuss.elastic.co/u/mark_2)
#### Post date: [October 9, 2013, 10:15pm UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892/4 "2013-10-09T22:15:11Z")

</div>

Ok fixed my own problem.

We were missing node.zone in our yml file and had the  
'cluster.routing.allocation.awareness.attributes' property set wrong.

On Wednesday, October 9, 2013 6:04:55 PM UTC-4, [ma...@evertrue.com](mailto:ma...@evertrue.com) wrote:

> Certainly.
> 
> Here's all the log output after a data node restart:  
> [https://gist.github.com/mgreene/6909159](https://gist.github.com/mgreene/6909159)
> 
> elasticsearch.yml: [https://gist.github.com/mgreene/6909279](https://gist.github.com/mgreene/6909279)
> 
> On Wednesday, October 9, 2013 5:35:26 PM UTC-4, Jörg Prante wrote:
> 
> > The cluster state is red, so I'm sure there is something in the logs...  
> > can you please give us insight about your logs and the command how you did  
> > set up zone awareness.
> > 
> > Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:13am UTC](https://discuss.elastic.co/t/question-about-unassigned-shards/13892/5 "2017-07-06T02:13:10Z")

</div>


