-
Notifications
You must be signed in to change notification settings - Fork 227
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
Trident allocating too much storage (10%) for LUN metadata #953
Comments
Not to diminish the request in any way, but just for additional clarity: Unless you explicitly configure it otherwise, everything will be thin provisioned. So none of that extra space is actually used/taken, the volume size is just a number that specifies the upper limit. |
Thanks for your comment. Our problem is that we purchased a license for the specific amount of storage and since this is a production environment, we preferred using thick provision. We were not able to create all the volumes due to insufficient storage, regardless of our calculation (Which of course didn't take into consideration the 10%) |
Not sure at which value your license enforcement is looking, might be provisioned capacity, in which case I understand the pain. |
Describe the bug
When creating PVCs in Kubernetes, a volume is created in Ontap based on the following calulation:
Total volume size = [(PVC request size)/(1 -(snapshotReserve percentage)/100) * 1.1
Based on this calculation, when snapshotReserve=0, the volume size in Ontap is always 10% larger than the useable storage in Kubernetes.
This means that if I create a 6TB PVC, I will be able to use 6TB, but the allocated space in Ontap will be 6.6TB (600GB for LUN metadata). In an HA cluster, maybe even 1.2TB will be used for LUN metadata.
This seams unreasonable.
The calculation is taken from the following KB:
https://docs.netapp.com/us-en/trident/trident-use/ontap-san-examples.html#backend-configuration-options
I was asked by NetApp support to open an issue here, since they weren't able to help me.
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
Create a pvc. For example a 100GB PVC. Can be created from the example in the trident installation folder under: sample-input/pvc-samples/iscsi-pvc-basic.yaml
In Kubernetes, the PVC and PV will appear as 100GB. In Ontap, the LUN will appear 100GB and the volume will appear as 110GB.
Expected behavior
The larger the LUN will be, the smaller the percentage of extra space allocated for LUN metadata.
Additional context
N/A
The text was updated successfully, but these errors were encountered: