A Pod that mounts a large PVC takes 10 minutes to start, stuck in ContainerCreating with no errors.
IntermediateTroubleshootingStorage and volumes
Answer
Likely causes → fsGroup is set and the kubelet recursively changes ownership and permissions of every file on the volume at each mount. Millions of files means minutes.
Diagnose →
kubectl get pod data-x -o jsonpath='{.spec.securityContext}{"\n"}'
# On the node, look for kubelet logging the volume ownership change
journalctl -u kubelet | grep -i 'SetVolumeOwnership'
Fix → Set fsGroupChangePolicy: OnRootMismatch so the chown only runs when the root directory ownership is wrong.
Prevent → Default OnRootMismatch in all stateful charts.
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