# What if my storage is full?

**URL:** <https://discuss.elastic.co/t/what-if-my-storage-is-full/95658>\
**Category:** Elasticsearch\
**Created:** [August 3, 2017, 7:42am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658 "2017-08-03T07:42:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravbhutani30](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Post date:** [August 3, 2017, 7:42am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/1 "2017-08-03T07:42:17Z")

</div>

Hi Everyone,

We are running a elastisearch cluster of 3 nodes and we have mounted our storage on SAN.  
I was just wandering if the storage is full, what will happen to our cluster?

We wanted to test this scenario. Please help what are the possibilities in this kind case, what will be the solution and how we can replicate and test this scenario?

Thanks in advance!!  
Gaurav

---

<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:** [August 3, 2017, 8:30am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/2 "2017-08-03T08:30:27Z")

</div>

From 6.0.0-beta1 (not available yet), this will be put your indices as readonly.

> <https://github.com/elastic/elasticsearch/pull/25541>
>
> Today when we run out of disk all kinds of crazy things can happen
> and nodes ar…e becoming hard to maintain once out of disk is hit.
> While we try to move shards away if we hit watermarks this might not
> be possible in many situations. Based on the discussion in #24299
> this change monitors disk utiliation and adds a floodstage watermark
> that causes all indices that are allocated on a node hitting the floodstage
> mark to be switched read-only (with the option to be deleted). This allows users to react on the low disk situation while subsequent write requests will be rejected. Users can switch
> individual indices read-write once the situation is sorted out. There is no
> automatic read-write switch once the node has enough space. This requires
> user interaction.
> 
> The floodstage watermark is set to \`95%\` utilization by default.
> 
> Closes #24299

Before this version, you will have to suffer from some troubles.  
Best thing to do is to have a monitoring and stop injecting data when your nodes are running low on space.

Not related to your question but:

> we have mounted our storage on SAN

This is not what we recommend. We actively recommend using local disks instead.

---

<div class="post-metadata">

**Author:** ![gauravbhutani30](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Post date:** [August 3, 2017, 1:47pm UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/3 "2017-08-03T13:47:15Z")

</div>

Hi David,

Thanks for the response!  
Does elasticsearch provides any API/mechanism from which we can monitor the disk usage?

Thanks  
Gaurav

---

<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:** [August 3, 2017, 3:10pm UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/4 "2017-08-03T15:10:57Z")

</div>

x-pack monitoring does that.  
Note that it requires a licence. The Basic (free) one is enough.

---

<div class="post-metadata">

**Author:** ![gauravbhutani30](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Post date:** [August 4, 2017, 9:10am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/5 "2017-08-04T09:10:17Z")

</div>

Ok...i see that x-pack has one month free subscription only.

---

<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:** [August 4, 2017, 9:36am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/6 "2017-08-04T09:36:49Z")

</div>

No. The Basic license is for one year and is free.

This one month trial is to test all x-pack features. But as soon as you add your basic license the trial stops.

[https://register.elastic.co/](https://register.elastic.co/)

---

<div class="post-metadata">

**Author:** ![gauravbhutani30](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Post date:** [August 4, 2017, 10:23am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/7 "2017-08-04T10:23:52Z")

</div>

Ok. Let me try.  
Thanks for all your help 🙂

---

<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:** [September 1, 2017, 10:23am UTC](https://discuss.elastic.co/t/what-if-my-storage-is-full/95658/8 "2017-09-01T10:23:53Z")

</div>

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