# Curator: action allocated not working

**URL:** https://discuss.elastic.co/t/curator-action-allocated-not-working/226017
**Category:** Elasticsearch
**Tags:** curator
**Created:** [April 1, 2020, 9:57am UTC](https://discuss.elastic.co/t/curator-action-allocated-not-working/226017 "2020-04-01T09:57:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Dmytro\_Kolodiaziev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmytro_kolodiaziev/32/46635_2.png) [@Dmytro\_Kolodiaziev](https://discuss.elastic.co/u/Dmytro_Kolodiaziev)
#### Post date: [April 1, 2020, 8:32pm UTC](https://discuss.elastic.co/t/curator-action-allocated-not-working/226017/3 "2020-04-01T20:32:46Z")

</div>

Yes, target nodes have `node.attr.storage_type: spinning`  
I've been reallocating indices during the last half-year with my own script

`#!/bin/bash`

`INDEX=$1`  
`NODE_TYPE=$2`

`if [[-z $INDEX || -z $NODE_TYPE]] ; then`  
`echo "Usage: $0 <index> <ssd|spinning|hot|archive>"`  
`exit 1`  
`fi`

`curl -H "Content-Type: application/json" -s -XPUT "http://``hostname``:9200/$INDEX/_settings" -d '{ "index.routing.allocation.require.storage_type" : "'"$NODE_TYPE"'", "index.routing.allocation.require.tag" : "" }' `

---

_[View the full topic](https://discuss.elastic.co/t/curator-action-allocated-not-working/226017)._
