How to increase MinIO storage for grafana/loki

I have installed Loki with Helm that is using MinIO as storage.

helm upgrade -n loki --create-namespace --install loki grafana/loki -f loki-values.yaml

Now the MinIO storage is full and I would like to expand it.

I adjusted my loki-values.yaml

minio:
  enabled: true  
  persistence:
    size: 20Gi

And I get the error when upgrading with Helm

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

Does this mean, I need to re-deploy MinIO with new storage size and then migrate my data? Is this the only way?

This is not directly Loki related. I would recommend you to look for answers and assistance from MinIO’s forum or support channels.