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

How to set disk IOPS limit using govc? #2806

Closed
embano1 opened this issue Apr 5, 2022 Discussed in #2801 · 0 comments · Fixed by #2807
Closed

How to set disk IOPS limit using govc? #2806

embano1 opened this issue Apr 5, 2022 Discussed in #2801 · 0 comments · Fixed by #2807
Assignees

Comments

@embano1
Copy link
Contributor

embano1 commented Apr 5, 2022

Discussed in #2801

Originally posted by Heiko-san March 28, 2022
Hi,

What I want to achieve is to set the IOPS limit for the disk of an existing vm.
I mean the setting that goes into vm's config as "sched.scsi0:0.throughputCap=xy", which you set in GUI by "edit settings" -> go to the disk -> "Limit IOPs" -> if you switch to "user defined" you can enter any number ...

  • I found govc vm.disk.change but it seems I can only set disk size there.
  • I see the disk using govc device.info -vm myvm disk-1000-0
  • There is also a govc disk.ls, but it doesn't show anything

How can I set this limit?

Update:

  • I found this, but doesn't seem to work either (even if it doesn't show any errors): govc vm.change -vm myvm -e sched.scsi0:0.throughputCap=123
@embano1 embano1 self-assigned this Apr 5, 2022
embano1 pushed a commit to embano1/govmomi that referenced this issue Apr 5, 2022
Closes: vmware#2806
Signed-off-by: Michael Gasch <mgasch@vmware.com>
@embano1 embano1 mentioned this issue Apr 5, 2022
12 tasks
embano1 pushed a commit to embano1/govmomi that referenced this issue Apr 26, 2022
Closes: vmware#2806
Signed-off-by: Michael Gasch <mgasch@vmware.com>
embano1 pushed a commit to embano1/govmomi that referenced this issue Apr 26, 2022
Closes: vmware#2806
Signed-off-by: Michael Gasch <mgasch@vmware.com>
embano1 pushed a commit to embano1/govmomi that referenced this issue Apr 28, 2022
Closes: vmware#2806
Signed-off-by: Michael Gasch <mgasch@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant