# How to temporarily stop a single node for storage maintenance

**URL:** <https://discuss.elastic.co/t/how-to-temporarily-stop-a-single-node-for-storage-maintenance/225202>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [March 26, 2020, 1:50pm UTC](https://discuss.elastic.co/t/how-to-temporarily-stop-a-single-node-for-storage-maintenance/225202 "2020-03-26T13:50:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkvz](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dkvz](https://discuss.elastic.co/u/dkvz)\
**Post date:** [March 26, 2020, 1:50pm UTC](https://discuss.elastic.co/t/how-to-temporarily-stop-a-single-node-for-storage-maintenance/225202/1 "2020-03-26T13:50:50Z")

</div>

Hi,

I'm currently running experiments with ECK and a 3-nodes Elasticsearch cluster with 2 data/master and one master only.

The idea is that the data nodes are each on their own different storage system (this is a bare metal k8s) and I use 1 replica for all my indices.

Let's say I have to do maintenance on one of the storages, I noticed that if I just forcibly take out the storage with no action, reads can continue normally but all writes will error (node is still marked online) unless I force delete the pod that can no longer write using kubectl (writing can resume if I do as the ES node is then marked offline).

Is there a way to temporarily remove one of my data nodes so that I can take down its storage for a while? Using kubectl delete obviously causes a restart of the pod.

I thought of just editing the deployment (the Elasticsearch k8s resource) and removing the node from it. But if I re-add it will it find all its previous storage and be cool with it?

Thanks for your time,

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [April 2, 2020, 1:05pm UTC](https://discuss.elastic.co/t/how-to-temporarily-stop-a-single-node-for-storage-maintenance/225202/2 "2020-04-02T13:05:32Z")

</div>

@dkvz are you using PersistentVolumes?  
I'm wondering if there's a way you could manipulate the PVC resource then delete the Pod in such a way that the corresponding Pod stays Pending until the storage gets back.

---

<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:50am UTC](https://discuss.elastic.co/t/how-to-temporarily-stop-a-single-node-for-storage-maintenance/225202/3 "2022-11-04T07:50:54Z")

</div>


