question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to resize ES storage volume?

See original GitHub issue

I know resizing volumes is possible, but is there a suggested method for resizing a volume for an ES cluster? Is that a feature that can be added to the chart?

Changing the volumeClaimTemplate storage size throws the error:

Error: UPGRADE FAILED: cannot patch "elasticsearch-master" with kind StatefulSet: StatefulSet.apps "elasticsearch-master" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

I did notice it was being discussed there, just not sure if its something that needs to be implemented in the ES helm chart. https://github.com/kubernetes/kubernetes/issues/68737

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
krishoppercommented, Aug 20, 2020

You have to deploy a new node group with the size you want, drain the old nodes, and then delete them.

1reaction
jmlrtcommented, Aug 25, 2020

Hi, Indeed the recommended way is to deploy a new chart release / node group in the same cluster with the good size, drain the nodes and delete the old chart release as mentionned by @krishopper.

Resizing volumes is potentially possible with K8S for some storage class but may not be possible in the case of StatefulSets with the limitations of immutable fields.

At least it hasn’t been studied/tested internally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resize EBS Volumes Attached to a Linux or Windows ...
First, go to your volume and choose “Modify Volume” under “Actions.” You are then given the option to change both the disk size...
Read more >
CSI Volume Resizing and Elasticsearch - Pure Storage Blogs
This post focuses on how to use a new CSI feature volume resizing, which allows online expansion of storage volumes.
Read more >
Resizing Persistent Volumes using Kubernetes
This feature allows users to easily resize an existing volume by editing the PersistentVolumeClaim (PVC) object. Users no longer have to ...
Read more >
Troubleshoot low storage space in Amazon OpenSearch ...
Increase the size of the EBS volumes. The maximum volume size depends on the node's Amazon Elastic Compute Cloud (Amazon EC2) instance type...
Read more >
Resizing a Volume - Oracle Help Center
Online Resizing of Block Volumes Using the Console · Open the navigation menu and click Storage. · In the Block Volumes list, click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found