# ES data persistence?

**URL:** <https://discuss.elastic.co/t/es-data-persistence/141745>\
**Category:** Elasticsearch\
**Created:** [July 26, 2018, 11:03am UTC](https://discuss.elastic.co/t/es-data-persistence/141745 "2018-07-26T11:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjg2](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bjg2](https://discuss.elastic.co/u/bjg2)\
**Post date:** [July 26, 2018, 11:03am UTC](https://discuss.elastic.co/t/es-data-persistence/141745/1 "2018-07-26T11:03:16Z")

</div>

Hi!

I have kubernetes with elasticsearch in it, for logs. I have a single-node elastic search cluster (to keep things simple as I think I don't need bigger at the moment). `/data` folder is on persisted storage.

In this setup, even though data folder is persisted, each restart seems to do data loss (i don't see old logs after restart). Is that expected, and can I make a different setup so that after restart ES continues from persisted data folder?

`image: docker.elastic.co/elasticsearch/elasticsearch:6.2.1`  
`ES_JAVA_OPTS : "-Xms256m -Xmx256m"`  
`discovery.type: "single-node"`  
`es-volume: /data`

ES logs after restart, if important: [https://pastebin.com/C2KvzHeQ](https://pastebin.com/C2KvzHeQ)

---

<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:** [August 23, 2018, 11:03am UTC](https://discuss.elastic.co/t/es-data-persistence/141745/2 "2018-08-23T11:03:16Z")

</div>

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