Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume Resizing work only when no Pod are running on it ? #699

Open
albundy83 opened this issue Apr 19, 2023 · 4 comments
Open

Volume Resizing work only when no Pod are running on it ? #699

albundy83 opened this issue Apr 19, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@albundy83
Copy link
Contributor

albundy83 commented Apr 19, 2023

Hello,

Using latest version available (v1.2.0), I'd like to be sure that I can't expand a PVC while I have a Pod running on it.
If it's correct, is it something that could be implemented some days ?

Thanks for your help

@jerome-jutteau
Copy link
Contributor

Hi @albundy83,

Underlying block device (BSU) is currently not able to be resized while in use (meaning attached to node). This is mainly a IaaS limitation for now.
Forcing block device detach on node would cause I/O errors in Pods, potential data loss and should break CSI state.

Lets keep this issue to keep track of your need once the API will support it.

@jerome-jutteau jerome-jutteau added the enhancement New feature or request label Apr 20, 2023
@pierreozoux
Copy link

Hi,

I'd like to resize a pvc attached to a stateful set.
Do you have some kind of procedure to do so?
I detached the volume from outscale UI, but I think kubernetes is lost.
How could I reset the system?

Thanks for your help!

@ghost
Copy link

ghost commented Nov 10, 2023

Hi @pierreozoux ,

In order that Kubernetes find its way back after detach volume with ui, please change the number of replicas of the stateful to 0 (the pvc will be not destroyed). Then set the statefulset replicas to its original values so that volumes will be managed and mount by the csi.

In order to to resize a pvc attached to a statefulset, you can follow this first answer here (https://serverfault.com/questions/955293/how-to-increase-disk-size-in-a-stateful-set)
Because Block device (BSU) is currently not able to be resized while in use (it meaning when node is attached), you have to set replicas to 0 before beginning and go back your original value of replicas before step 3 (kubectl apply -f ..).

@pierreozoux
Copy link

I could manage without deleting sts:

https://serverfault.com/a/1166255/192049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants