`kubectl edit pvc data` to grow from 50Gi to 100Gi fails with `persistentvolumeclaims "data" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize`.
BeginnerTroubleshootingStorage and volumes
Answer
Likely causes → The StorageClass does not have allowVolumeExpansion: true, or the PV was statically created.
Diagnose →
kubectl get sc gp3 -o jsonpath='{.allowVolumeExpansion}{"\n"}'
Fix → Enable expansion on the class (that field is mutable), then patch the PVC:
kubectl patch sc gp3 -p '{"allowVolumeExpansion": true}'
kubectl patch pvc data -p '{"spec":{"resources":{"requests":{"storage":"100Gi"}}}}'
Watch for the FileSystemResizePending condition; modern CSI drivers grow the filesystem online.
Prevent → Create every StorageClass with allowVolumeExpansion: true.
More on Storage and volumes
A PVC is `Pending` with `no persistent volumes available for this claim and no storage class is set`.BeginnerA PVC sits `Pending` with event `waiting for first consumer to be created before binding`. Is something broken?BeginnerA PVC is stuck with `waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator`.IntermediateA Pod is stuck `ContainerCreating` with `Multi-Attach error for volume "pvc-3f1c..." Volume is already exclusively attached to one node and can't be attached to another`.IntermediateA Deployment with one replica and an RWO PVC gets `Multi-Attach error` on every rollout.BeginnerVolume attach fails with `AttachVolume.Attach failed for volume "pvc-..." : rpc error: code = Internal desc = Could not attach volume ... UnauthorizedOperation: You are not authorized to perform this operation`.Intermediate