# How do I change the File system storage types?

**URL:** https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974
**Category:** Elasticsearch
**Created:** [March 19, 2019, 1:09pm UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974 "2019-03-19T13:09:45Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [March 19, 2019, 1:09pm UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/1 "2019-03-19T13:09:45Z")

</div>

hi,all  
When I turn on Es and I don't want to restart，Can I change the File system storage types?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 19, 2019, 1:55pm UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/2 "2019-03-19T13:55:06Z")

</div>

Do you mean: [https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-store.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-store.html) ?

If you define it in `elasticsearch.yml` you need to restart your node.  
If you define it in an index, you don't need to restart. This can't be modified though after the index has been created.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [March 19, 2019, 2:08pm UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/3 "2019-03-19T14:08:54Z")

</div>

Yes, but I want to modify storage types after the index has been created,and not need to restart my node.For now,There is no way to do this.thanks for you reply!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 19, 2019, 2:32pm UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/4 "2019-03-19T14:32:42Z")

</div>

No. There is no way to do that after the index has been created as this is a static setting.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [March 20, 2019, 9:53am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/5 "2019-03-20T09:53:50Z")

</div>

hello,David  
Can you tell me the specific reason why I need to restart es?

In my case,The Production Environment generally does not restart, we have customized the new type, and want to enter through the plugin without restarting.

Is there any other way to solve this problem?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 20, 2019, 10:09am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/6 "2019-03-20T10:09:14Z")

</div>

> [@azuresky11](#):
>
> Can you tell me the specific reason why I need to restart es?

Because `elasticsearch.yml` file is only read when the node starts.

> [@azuresky11](#):
>
> want to enter through the plugin without restarting

Sorry but which plugin? You never mentioned a plugin.

> [@azuresky11](#):
>
> Is there any other way to solve this problem?

What exact problem you want to solve?

> [@azuresky11](#):
>
> In my case,The Production Environment generally does not restart

You can do a rolling restart by following this guide [Rolling upgrade | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html)

Just skip steps 5 and 6.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [March 21, 2019, 3:08am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/7 "2019-03-21T03:08:59Z")

</div>

It's a plugin that I define a new storage type like mmapfs, nio and so on.  
I want to add the plugin to set the new storage type without restarting.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 21, 2019, 6:08am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/8 "2019-03-21T06:08:47Z")

</div>

I don't know what your plugin is doing (what's the full code) but I don't think you can.

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 7:40am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/9 "2019-04-17T07:40:02Z")

</div>

hello @dadoonet  
Does es`current compression algorithm suppot only lz4 and deflate?Whether it supports other open source algorithms,or custom algorithms?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 17, 2019, 7:52am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/10 "2019-04-17T07:52:55Z")

</div>

AFAIK it only supports the ones that are documented (and implemented)...

---

<div class="post-metadata">

### Author: ![azuresky11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azuresky11/32/41283_2.png) [@azuresky11](https://discuss.elastic.co/u/azuresky11)
#### Post date: [April 17, 2019, 9:28am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/11 "2019-04-17T09:28:16Z")

</div>

Is there only two algorithms in Lucene, so es can only use lz4 and deflecte？[About store compression,Does es`current compression algorithm suppot only lz4 and deflate?](https://discuss.elastic.co/t/about-store-compression-does-es-current-compression-algorithm-suppot-only-lz4-and-deflate/177185/6)

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 17, 2019, 10:53am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/12 "2019-04-17T10:53:29Z")

</div>

Oh? You already asked the same question elsewhere. Let's keep the discussion in a single place.

---

<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 15, 2019, 10:53am UTC](https://discuss.elastic.co/t/how-do-i-change-the-file-system-storage-types/172974/13 "2019-05-15T10:53:29Z")

</div>

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