# How to configure rolling OR delete after X time of data dir , to prevent "out of space" error

**URL:** <https://discuss.elastic.co/t/how-to-configure-rolling-or-delete-after-x-time-of-data-dir-to-prevent-out-of-space-error/260639>\
**Category:** Elasticsearch\
**Created:** [January 10, 2021, 11:09am UTC](https://discuss.elastic.co/t/how-to-configure-rolling-or-delete-after-x-time-of-data-dir-to-prevent-out-of-space-error/260639 "2021-01-10T11:09:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![umen](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@umen](https://discuss.elastic.co/u/umen)\
**Post date:** [January 10, 2021, 11:09am UTC](https://discuss.elastic.co/t/how-to-configure-rolling-or-delete-after-x-time-of-data-dir-to-prevent-out-of-space-error/260639/1 "2021-01-10T11:09:23Z")

</div>

i configured the cluster to claim 5g for the data dir

```auto
    volumeClaimTemplates:
    - metadata:
        name: elasticsearch-data
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 5Gi

```

I like to configure the cluster to roll data for example after it Reaches 4g  
or another method that elastic search is using, the main point is that i don't want it to throw  
"out of space" error when data is Reaches to 5g  
Thanks

---

<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:** [January 11, 2021, 12:10am UTC](https://discuss.elastic.co/t/how-to-configure-rolling-or-delete-after-x-time-of-data-dir-to-prevent-out-of-space-error/260639/2 "2021-01-11T00:10:10Z")

</div>

Roll it where?  
Have you looked at [ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management-api.html)?

---

<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:** [February 8, 2021, 12:10am UTC](https://discuss.elastic.co/t/how-to-configure-rolling-or-delete-after-x-time-of-data-dir-to-prevent-out-of-space-error/260639/3 "2021-02-08T00:10:19Z")

</div>

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