-
Notifications
You must be signed in to change notification settings - Fork 35
After enlarge database persistence disk size, no change applied to the database pod #1107
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/174568809 The labels on this github issue will be updated when the story is started. |
We discussed the issue and updated the story in trackers. Can you check if k8s can handle this automatically: kubernetes/kubernetes#35941 (comment) Some storage classes do support this: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims |
@manno Below is the storageclass, it doesn't have
After changing the size of persistent disk of database to 40G, the database statefulset still has 20G in
|
Looking at the code I can see the quarks statefulset reconciler cannot update the
The process seems to be more complicated, than just updating the sts spec. Our CI is not using a storage class that supports this. Can you check if you can manually change the size in the PVC, Using the Same error with 'ibmc-file-gold'. |
I just edit the pvc, change it to request 40Gi.
But after the above update, nothing changed.
|
I guess k8s doesn't automatically resize, because the storageclass is missing the We resized an underlying volume manually in the past, then shelled (k9s, ...) into the container and ran |
Is your feature request related to a problem? Please describe.
After kubecf deployed, try to enlarge the database persistence disk size with below change:
update
values.yaml
, change the database disk size from 20G to 40G==>
then run helm upgrade, then pod database-0 terminated and start as a new one.
Then perform below check:
login the pod database-0 and check the disk size, no change applied to the disk, still 20G.
Describe the solution you'd like
After enlarging the disk size and then applying the change with helm upgrade, there should be a smooth data migration from the original database disk to a new bigger disk and then have new disk mounted to the database pod.
The text was updated successfully, but these errors were encountered: