# Reclaim persistent volume

**URL:** <https://discuss.elastic.co/t/reclaim-persistent-volume/228197>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 15, 2020, 7:28pm UTC](https://discuss.elastic.co/t/reclaim-persistent-volume/228197 "2020-04-15T19:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolas\_Mousouros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas_mousouros/32/66155_2.png) [@Nikolas\_Mousouros](https://discuss.elastic.co/u/Nikolas_Mousouros)\
**Post date:** [April 15, 2020, 7:28pm UTC](https://discuss.elastic.co/t/reclaim-persistent-volume/228197/1 "2020-04-15T19:28:09Z")

</div>

I deleted my stateful set on openshift believing that I could reuse my persistent volume claim but it got deleted.

On the bright side I think I still have this EBS volume on AWS so I added it again on openshift but when I try to reuse it my pvc named elasticsearch-data gets deleted and my persistent volume gets released.

Anyone know what should I do to mount this or get the data from the volume?

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [April 15, 2020, 7:59pm UTC](https://discuss.elastic.co/t/reclaim-persistent-volume/228197/2 "2020-04-15T19:59:26Z")

</div>

> [@Nikolas\_Mousouros](#):
>
> Anyone know what should I do to mount this or get the data from the volume?

We have an example tool to reattach persistent volumes: [https://github.com/elastic/cloud-on-k8s/tree/master/hack/reattach-pv](https://github.com/elastic/cloud-on-k8s/tree/master/hack/reattach-pv)

Though it is not officially supported or tested extensively.

---

<div class="post-metadata">

**Author:** ![Nikolas\_Mousouros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas_mousouros/32/66155_2.png) [@Nikolas\_Mousouros](https://discuss.elastic.co/u/Nikolas_Mousouros)\
**Post date:** [April 17, 2020, 3:04pm UTC](https://discuss.elastic.co/t/reclaim-persistent-volume/228197/3 "2020-04-17T15:04:00Z")

</div>

I didn't really understand how to use the tool the readme refers to a script I didn't have.

However the templates included with it really helped me get a better understanding of what I should do and I managed to reattach the persistent volumes. thanks

---

<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:** [November 4, 2022, 7:53am UTC](https://discuss.elastic.co/t/reclaim-persistent-volume/228197/4 "2022-11-04T07:53:59Z")

</div>


