# Elasticsearch pod going into crashloopbackoff state due to no space left on the device

**URL:** <https://discuss.elastic.co/t/elasticsearch-pod-going-into-crashloopbackoff-state-due-to-no-space-left-on-the-device/303719>\
**Category:** Elasticsearch\
**Created:** [May 2, 2022, 8:20am UTC](https://discuss.elastic.co/t/elasticsearch-pod-going-into-crashloopbackoff-state-due-to-no-space-left-on-the-device/303719 "2022-05-02T08:20:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushsharma191](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ayushsharma191](https://discuss.elastic.co/u/ayushsharma191)\
**Post date:** [May 2, 2022, 8:20am UTC](https://discuss.elastic.co/t/elasticsearch-pod-going-into-crashloopbackoff-state-due-to-no-space-left-on-the-device/303719/1 "2022-05-02T08:20:33Z")

</div>

Caused by: org.Elasticsearch.gateway.WriteStateException: failed to write state to the first location tmp file /usr/share/Elasticsearch/data/nodes/0/node-1.st.tmp",  
"at org.Elasticsearch.gateway.MetaDataStateFormat.writeStateToFirstLocation(MetaDataStateFormat.java:127) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:243) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.gateway.MetaDataStateFormat.writeAndCleanup(MetaDataStateFormat.java:185) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.env.NodeEnvironment.loadOrCreateNodeMetaData(NodeEnvironment.java:431) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:304) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.node.Node.(Node.java:275) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.node.Node.(Node.java:255) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:221) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[Elasticsearch-7.4.0.jar:7.4.0]",  
"... 6 more",  
"Caused by: java.io.IOException: No space left on device",  
"at

It seems like the PV is fully consumed for one of the 2 replica pods in the configuration. What is the best way to handle such situation. Please help.

---

<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:** [May 5, 2022, 2:25am UTC](https://discuss.elastic.co/t/elasticsearch-pod-going-into-crashloopbackoff-state-due-to-no-space-left-on-the-device/303719/2 "2022-05-05T02:25:40Z")

</div>

Welcome to our community! 😃

Are you using ECK here?

---

<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:** [June 2, 2022, 2:25am UTC](https://discuss.elastic.co/t/elasticsearch-pod-going-into-crashloopbackoff-state-due-to-no-space-left-on-the-device/303719/3 "2022-06-02T02:25:53Z")

</div>

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