# Upgrade storage space for elasticsearch

**URL:** https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [February 10, 2020, 4:05pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630 "2020-02-10T16:05:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![atotheb](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@atotheb](https://discuss.elastic.co/u/atotheb)
#### Post date: [February 10, 2020, 4:05pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/1 "2020-02-10T16:05:53Z")

</div>

I try to increase the capacity of my persistant volume for elasticsearch.

However this seems to be not so straightforward, as explained in this article:

[https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestration.html#k8s-orchestration-limitations](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestration.html#k8s-orchestration-limitations)

I'm new to Kubernetes, and I struggle to make sense of this article.

The article suggest to rename NodeSet, but I can't find any resources of type NodeSet in my cluster.  
And how can renaming a nodeset create a new StatfulSet with increased storage capacity?

Many thanks!

---

<div class="post-metadata">

### Author: ![Vincent\_Ngai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_ngai/32/43594_2.png) [@Vincent\_Ngai](https://discuss.elastic.co/u/Vincent_Ngai)
#### Post date: [February 10, 2020, 4:30pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/2 "2020-02-10T16:30:58Z")

</div>

I do try this before ...  
Modify the Node Set Name and New Size , then reapply the yaml

> ```
> > ...
> > nodeSets:
> > #Define the Node nameing and number of size 
> > - name: master-1 # Modify This Name
> > count: 3  
> > #Define Using PVC and Size
> > volumeClaimTemplates:
> > - metadata:
> > name: elasticsearch-data
> > spec:
> > accessModes:
> > - ReadWriteOnce
> > resources:
> > requests:
> > storage: 500Gi #Modify your new size
> > storageClassName: standard
> > config:
> > #Define the role for the node
> > node.master: true
> > ...
> 
> ```

---

<div class="post-metadata">

### Author: ![ykozlov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ykozlov/32/62377_2.png) [@ykozlov](https://discuss.elastic.co/u/ykozlov)
#### Post date: [February 10, 2020, 4:33pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/3 "2020-02-10T16:33:38Z")

</div>

I am interested in how to do it as well!

---

<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: [February 10, 2020, 4:43pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/4 "2020-02-10T16:43:31Z")

</div>

The nodeSet in the doc you referenced is an item in the `spec.nodeSets` part of the Elasticsearch resource. There's an example in the quickstart:  
[https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html)

---

<div class="post-metadata">

### Author: ![atotheb](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@atotheb](https://discuss.elastic.co/u/atotheb)
#### Post date: [February 11, 2020, 8:11am UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/5 "2020-02-11T08:11:41Z")

</div>

Thank you, this solved my problem!

---

<div class="post-metadata">

### Author: ![Shobhit\_Jain1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shobhit_jain1/32/97834_2.png) [@Shobhit\_Jain1](https://discuss.elastic.co/u/Shobhit_Jain1)
#### Post date: [July 4, 2022, 12:59pm UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/6 "2022-07-04T12:59:49Z")

</div>

Do Increasing the disk's storage space by this method, takes care of the existing data in ElasticSearch node ?

---

<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:44am UTC](https://discuss.elastic.co/t/upgrade-storage-space-for-elasticsearch/218630/7 "2022-11-04T07:44:18Z")

</div>


