# NO(too many shards on node for attribute: \[rack\], required per attribute: \[1\], node count: \[2\], leftover: \[0\])\]

**URL:** <https://discuss.elastic.co/t/no-too-many-shards-on-node-for-attribute-rack-required-per-attribute-1-node-count-2-leftover-0/91129>\
**Category:** Elasticsearch\
**Created:** [June 28, 2017, 2:47pm UTC](https://discuss.elastic.co/t/no-too-many-shards-on-node-for-attribute-rack-required-per-attribute-1-node-count-2-leftover-0/91129 "2017-06-28T14:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vimal\_Thickvijayan\_V](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Vimal\_Thickvijayan\_V](https://discuss.elastic.co/u/Vimal_Thickvijayan_V)\
**Post date:** [June 28, 2017, 2:47pm UTC](https://discuss.elastic.co/t/no-too-many-shards-on-node-for-attribute-rack-required-per-attribute-1-node-count-2-leftover-0/91129/1 "2017-06-28T14:47:42Z")

</div>

We have total 6 nodes in our cluster, when i tried to assign an unassigned shards as below I get the following error  
curl -XPOST 'localhost:9200/\_cluster/reroute' -d '{  
"commands" : [ {  
"allocate" : {  
"index" : "vts\_companydirectory\_20170625\_2040",  
"shard" : 32,  
"node" : "10.0.2.75"  
}  
}  
]  
}'

{"error":{"root\_cause":[{"type":"remote\_transport\_exception","reason":"[10.0.2.159][10.0.2.159:9300][cluster:admin/reroute]"}],"type":"illegal\_argument\_exception","reason":"[allocate] allocation of [vts\_companydirectory\_20170625\_2040][32] on node {10.0.2.75}{qu\_wNMMfTUmvSNZE7qDraA}{10.0.2.75}{10.0.2.75:9300}{max\_local\_storage\_nodes=1, rack=rack.10-0-2, master=true} is not allowed, reason: [YES(shard is not allocated to same node or host)][YES(allocation disabling is ignored)][YES(shard count under index limit [10] and node limit [-1] of total shards per node)][YES(target node version [2.3.3] is same or newer than source node version [2.3.3])][YES(primary is already active)][YES(shard not primary or relocation disabled)][YES(node passes include/exclude/require filters)][YES(allocation disabling is ignored)][YES(enough disk for shard on node, free: [1.4tb])][NO(too many shards on node for attribute: [rack], required per attribute: [1], node count: [2], leftover: [0])][YES(below shard recovery limit of [10])]"},"status":400}

---

<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 26, 2017, 2:47pm UTC](https://discuss.elastic.co/t/no-too-many-shards-on-node-for-attribute-rack-required-per-attribute-1-node-count-2-leftover-0/91129/2 "2017-07-26T14:47:47Z")

</div>

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