Back to all scenarios
Scenario #391
Storage
Kubernetes v1.24, AWS EBS, ext4 filesystem
PVC Resizing Didn’t Expand Filesystem Automatically
PVC was resized but the pod’s filesystem didn’t reflect the new size.
Find this helpful?
What Happened
The PersistentVolume was expanded, but the pod using it didn’t see the increased size until restarted.
Diagnosis Steps
- 1df -h inside the pod showed old capacity.
- 2PVC showed updated size in Kubernetes.
Root Cause
Filesystem expansion requires a pod restart unless using CSI drivers with ExpandInUse support.
Fix/Workaround
• Restarted the pod to trigger filesystem expansion.
Lessons Learned
Volume expansion is two-step: PV resize and filesystem resize.
How to Avoid
- 1Use CSI drivers that support in-use expansion.
- 2Add automation to restart pods after volume resize.