# How to enable shards allocation of node that was disabled the shards allocation

**URL:** https://discuss.elastic.co/t/how-to-enable-shards-allocation-of-node-that-was-disabled-the-shards-allocation/264790
**Category:** Elasticsearch
**Created:** [February 19, 2021, 5:31am UTC](https://discuss.elastic.co/t/how-to-enable-shards-allocation-of-node-that-was-disabled-the-shards-allocation/264790 "2021-02-19T05:31:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![testsemd\_email](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/testsemd_email/32/82657_2.png) [@testsemd\_email](https://discuss.elastic.co/u/testsemd_email)
#### Post date: [February 19, 2021, 5:31am UTC](https://discuss.elastic.co/t/how-to-enable-shards-allocation-of-node-that-was-disabled-the-shards-allocation/264790/1 "2021-02-19T05:31:42Z")

</div>

I disabled shards allocation using  
curl -XPUT “http://username:password@host:port/\_cluster/settings” -d  
'{  
"transient" :{  
"cluster.routing.allocation.exclude.\_ip" : "X.X.X.X"  
}  
}'  
command.

Then again enabled using,

curl -XPUT "localhost:9200/\_cluster/settings?pretty" -H 'Content-Type: application/json' -d'  
{  
"transient" : {  
"cluster.routing.allocation.enable" : "all"  
}  
}'

command with username and password.

The above reallocation command didn't work.  
Still unable to re-allocate shards on this node.  
How to reallocate shards on this node?  
Thank You!

---

<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 22, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-enable-shards-allocation-of-node-that-was-disabled-the-shards-allocation/264790/2 "2021-02-22T05:23:03Z")

</div>

You need to null the exclusion you first added, replace the IP with nothing.

---

<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 22, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-enable-shards-allocation-of-node-that-was-disabled-the-shards-allocation/264790/3 "2021-03-22T05:23:31Z")

</div>

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