Skip to content
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

The value set by Filesystem Overhead does not take effect #11888

Open
silenceper opened this issue May 10, 2024 · 7 comments
Open

The value set by Filesystem Overhead does not take effect #11888

silenceper opened this issue May 10, 2024 · 7 comments
Labels

Comments

@silenceper
Copy link

What happened:

image image

What you expected to happen:
I think the virtual size of this img file should be less than 200G;

In addition, I verified that this overhead parameter will only take effect during resize, and will not take effect for the initial creation.

How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior.

Additional context:
Add any other context about the problem here.

Environment:

  • KubeVirt version (use virtctl version): 1.1.1
  • Kubernetes version (use kubectl version): 1.24
  • VM or VMI specifications: N/A
  • Cloud provider or hardware configuration: N/A
  • OS (e.g. from /etc/os-release): N/A
  • Kernel (e.g. uname -a): N/A
  • Install tools: N/A
  • Others: N/A
@xpivarc
Copy link
Member

xpivarc commented May 10, 2024

@akalenyu can you have a look?

@silenceper
Copy link
Author

Please confirm whether this is a bug or a design flaw; if it is confirmed to be a bug, I can submit a PR to fix it.

@xpivarc @akalenyu

@akalenyu
Copy link
Contributor

Hey! How are you populating the PVC with a disk image?
If created through the DataVolume resource, CDI will orchestrate the overhead reservation

@silenceper
Copy link
Author

@akalenyu Some empty data disks are not generated through DataVolume

@akalenyu
Copy link
Contributor

@akalenyu Some empty data disks are not generated through DataVolume

Interesting, I see the name for this disk is "datavolumedisk1"

@silenceper
Copy link
Author

@akalenyu It's just a name, because he is an ordinary pvc

@akalenyu
Copy link
Contributor

akalenyu commented May 27, 2024

@akalenyu It's just a name, because he is an ordinary pvc

Right so Filesystem overhead is a CDI feature and thus will not take effect without usage
of CDI. What's on this PVC? Have you considered creating a blank disk?
https://github.com/kubevirt/containerized-data-importer/blob/main/doc/datavolumes.md#blank-data-volume
Note you can also use populators to achieve the same without a DataVolume:
https://github.com/kubevirt/containerized-data-importer/blob/main/doc/cdi-populators.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants