# Move all Indexes to new host

**URL:** <https://discuss.elastic.co/t/move-all-indexes-to-new-host/329825>\
**Category:** Elasticsearch\
**Created:** [April 12, 2023, 10:33am UTC](https://discuss.elastic.co/t/move-all-indexes-to-new-host/329825 "2023-04-12T10:33:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acosta353](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acosta353/32/106634_2.png) [@acosta353](https://discuss.elastic.co/u/acosta353)\
**Post date:** [April 12, 2023, 10:33am UTC](https://discuss.elastic.co/t/move-all-indexes-to-new-host/329825/1 "2023-04-12T10:33:43Z")

</div>

Hello,

I have a host for Warm and another to Cold Phase without replicas configured. Now, I need to proceed to a maintenance on this Warm host, so i wanted to move all those Warm Indexes temporarily to Cold host (Added warm role to it) so that I can empty the actual warm host.

In the end, I want to move all the warm data to the normal host again.

I'm not really experienced with this kind of stuff, so can anyone help me if there is any way to achieve this?

Thanks in advance,  
Best Regards.

---

<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:** [April 19, 2023, 2:14am UTC](https://discuss.elastic.co/t/move-all-indexes-to-new-host/329825/2 "2023-04-19T02:14:39Z")

</div>

[Cluster-level shard allocation and routing settings | Elasticsearch Guide [8.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/modules-cluster.html#cluster-shard-allocation-filtering) is how you go about this, where you can exclude a specific hostname/node name/IP from hosting shards, do what you want, then allow them back.

---

<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:** [May 17, 2023, 2:15am UTC](https://discuss.elastic.co/t/move-all-indexes-to-new-host/329825/3 "2023-05-17T02:15:22Z")

</div>

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