# How to store different index on different storage device?

**URL:** <https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984>\
**Category:** Elasticsearch\
**Created:** [March 4, 2020, 5:35am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984 "2020-03-04T05:35:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Ariful\_Isla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_ariful_isla/32/55732_2.png) [@Muhammad\_Ariful\_Isla](https://discuss.elastic.co/u/Muhammad_Ariful_Isla)\
**Post date:** [March 4, 2020, 5:35am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984/1 "2020-03-04T05:35:23Z")

</div>

Hi there,  
How can I store different index on the different storage device?

I want to storage hot indices to an SSD device and cold ones to a Spinning disk.

How can I achieve this?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 4, 2020, 5:40am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984/2 "2020-03-04T05:40:37Z")

</div>

You will need to have separate hot and cold nodes.

---

<div class="post-metadata">

**Author:** ![Muhammad\_Ariful\_Isla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_ariful_isla/32/55732_2.png) [@Muhammad\_Ariful\_Isla](https://discuss.elastic.co/u/Muhammad_Ariful_Isla)\
**Post date:** [March 4, 2020, 5:45am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984/3 "2020-03-04T05:45:57Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> separate hot and cold nodes.

I only have three nodes and each have their own purpose and can't afford another one just for storing cold indices. Is there any other way by configuring it differently?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 4, 2020, 5:49am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984/4 "2020-03-04T05:49:43Z")

</div>

Not as far as I know. You can not control under which path aim index/shard is stored within a node. You can however have a single zone and freeze older indices on these.

---

<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:** [April 1, 2020, 6:12am UTC](https://discuss.elastic.co/t/how-to-store-different-index-on-different-storage-device/221984/6 "2020-04-01T06:12:55Z")

</div>

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