# Forcing index to be created/realocated in/to specific data dir

**URL:** <https://discuss.elastic.co/t/forcing-index-to-be-created-realocated-in-to-specific-data-dir/20198>\
**Category:** Elasticsearch\
**Created:** [October 11, 2014, 10:29am UTC](https://discuss.elastic.co/t/forcing-index-to-be-created-realocated-in-to-specific-data-dir/20198 "2014-10-11T10:29:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piavlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piavlo/32/1214_2.png) [@Piavlo](https://discuss.elastic.co/u/Piavlo)\
**Post date:** [October 11, 2014, 10:29am UTC](https://discuss.elastic.co/t/forcing-index-to-be-created-realocated-in-to-specific-data-dir/20198/1 "2014-10-11T10:29:10Z")

</div>

I have ES nodes in ec2 with both with local ephemeral SSD disks and large  
EBS disks  
New indexes are created on daily basis.  
I want current day index to be created and on SSD disks  
with number\_of\_replicas = 1  
Once the day ends i want to move the index to EBS disks and change  
the number\_of\_replicas to 0

I could not find a feature to choose specific data dir for index shards at  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html)  
I know i can move index shards to different nodes (and control number of  
shards per node  
) with index.routing.allocation.\*, so I was wondering i can also control in  
which data dir within same node index shard will be created and realocated?

tnx

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAJ15%3D1KK6sqE4FJemVt6C3rVxKnGdSY7GFywauOM6wz6rckFrw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJ15%3D1KK6sqE4FJemVt6C3rVxKnGdSY7GFywauOM6wz6rckFrw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:56am UTC](https://discuss.elastic.co/t/forcing-index-to-be-created-realocated-in-to-specific-data-dir/20198/2 "2017-07-06T00:56:49Z")

</div>


