# Shards locating on one node

**URL:** <https://discuss.elastic.co/t/shards-locating-on-one-node/28772>\
**Category:** Elasticsearch\
**Created:** [September 7, 2015, 11:03am UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772 "2015-09-07T11:03:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![it2](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@it2](https://discuss.elastic.co/u/it2)\
**Post date:** [September 7, 2015, 11:03am UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772/1 "2015-09-07T11:03:56Z")

</div>

Hi guys.  
Few days ago I added a new node to my ES Cluster.  
And after that all my shards start to locate only on this new node!

> **[Screenshot](https://prnt.sc/8dklad)**
>
> Captured with Lightshot

  
Please gyus, give me some advice where I need to look?

New node has ES 1.7.1 instead 1.5 in the cluster.  
[https://github.com/elastic/elasticsearch/issues/7363](https://github.com/elastic/elasticsearch/issues/7363) here it's said that I need one version everywhere? Is that true?

---

<div class="post-metadata">

**Author:** ![a2tirb](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@a2tirb](https://discuss.elastic.co/u/a2tirb)\
**Post date:** [September 7, 2015, 4:25pm UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772/2 "2015-09-07T16:25:34Z")

</div>

I assume you mean shards of new indexes?  
When an index is created elasticsearch makes sure that shards that were created on a newer version node will only ever be allocated on other nodes that have a version at least as up-to-date as the one where is was created. So depending on where a shard was created it might never be able to relocate anywhere else and also replicas will not be assigned on lower version nodes. Upgrading the other nodes will fix this in this case.  
In addition, it looks like data2 and data3 are running low on disk space which _might_ be another reason for the decision to allocate the shards on the new node in the beginning.

---

<div class="post-metadata">

**Author:** ![it2](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@it2](https://discuss.elastic.co/u/it2)\
**Post date:** [September 8, 2015, 9:47am UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772/3 "2015-09-08T09:47:38Z")

</div>

I upgrade whole cluster to es 1.7  
But new shards (prim or replica ) allocated only on new cluster. Now it looks like  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/fef9affcb3067ccac286260f154985ed73b42f20.png)  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c21c6970710d4938e11702f7447c4d8d8fb1722f.png)  
And why some shards unaasigned? ☹

---

<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:** [September 8, 2015, 9:51am UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772/4 "2015-09-08T09:51:52Z")

</div>

This does seem to be a duplicate of: [Space ending in ES cluster](https://discuss.elastic.co/t/space-ending-in-es-cluster/28667)

---

<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 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/shards-locating-on-one-node/28772/5 "2017-07-05T23:51:41Z")

</div>


