-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing iSCSI volumes does not automatically expand filesystem (ext4) #911
Comments
Not sure why this is not working for you. I tried the following in a lab, verbose notes below to make it easy to reproduce in your env. A very simple PVC + Deployment. Container writes timestamps into a file just to simulate regular write access to the PVC:
When I apply this, PVC and pod are up and the pod reports the expected PVC size:
I then modify the PVC yaml to 15GB and apply it again. After a short moment, the PVC reflects the new size. Pod is not restarted:
The pod sees the new capacity as well (without being restarted):
What filesystem type are you using? My setup is on default ext4, not sure if that makes a difference?
|
@phhutter thank you for reporting this. If you are still encountering this, would you share debug logs from the Trident Deployment and DaemonSet Pods? |
Hey @jwebster7 I have tried to reproduce it several times in various scenarios with different kubernetes/trident versions, but i was not able to. we only saw the behavior once on a replicaset of kafka where resizing of the pvc did not work as expected. At this time, we saw the same issue on 3 different iscsi pvcs, which were all used by the same kafka isntance. In the meantime we have fixed all the affected volumes by running resize2fs manually. As long as no other customer experiences similar issues, I think we can archive the problem for now. |
Describe the bug
We are encountering an issue where, upon resizing iscsi volumes (ext4), only the volume is being resized, but not the fs itself. We have already tried restarting the application pod that mounts the iscsi volume and attempted to rebind it on a different node using node-selector. However, it seems that resize2fs is not being executed.
I have not been able to find any relevant log files in the trident ds pods. When I perform a manual resize2fs on the volume through the node, the filesystem is successfully resized to the desired size without any errors.
Could you please guide me on how to locate the appropriate logs, or let me know which component is responsible for the fs expansion?
Is my assumption correct, that resizing iscsi volumes necessarily requires a reboot of the application pod?
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Upon restart of an application pod which mounts an iscsi volume, a resize2fs is automatically executed.
The text was updated successfully, but these errors were encountered: