# Shrink on multi path is not working

**URL:** <https://discuss.elastic.co/t/shrink-on-multi-path-is-not-working/164280>\
**Category:** Elasticsearch\
**Created:** [January 15, 2019, 9:35am UTC](https://discuss.elastic.co/t/shrink-on-multi-path-is-not-working/164280 "2019-01-15T09:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/izek/32/37113_2.png) [@Izek](https://discuss.elastic.co/u/Izek)\
**Post date:** [January 15, 2019, 9:35am UTC](https://discuss.elastic.co/t/shrink-on-multi-path-is-not-working/164280/1 "2019-01-15T09:35:45Z")

</div>

I am try to reduce the number of shards on my cluster.  
But there have multi data.path in my elasticsearch.yml file.  
I saw this post [Curator fails to shrink index](https://discuss.elastic.co/t/curator-fails-to-shrink-index/100010/3?u=izek)  
I know it is hard to do it.

But when I manually run the shrink API , it works.  
Here is the step:

```json
PUT /test1/_settings
{
  "settings": {
    "index.routing.allocation.require._name": "ServerA", 
    "index.blocks.write": true 
  }
}

POST test1/_shrink/test1_shrink
{
  "settings": {
    "index.routing.allocation.require._name": null, 
    "index.blocks.write": null 
  }
}

```

Is curator going to support this or is there another solution I can try on ?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 16, 2019, 4:38am UTC](https://discuss.elastic.co/t/shrink-on-multi-path-is-not-working/164280/2 "2019-01-16T04:38:15Z")

</div>

This is an issue I'm aware of. It will be added at some point, but it's not in there right now. Feel free to dig in and add a pull request that removes the code that prevents multi-path.

---

<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:** [February 13, 2019, 4:38am UTC](https://discuss.elastic.co/t/shrink-on-multi-path-is-not-working/164280/3 "2019-02-13T04:38:36Z")

</div>

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