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

Able to set IOPS with "knife vsphere vm vmdk add"? #448

Open
petericebear opened this issue Sep 4, 2018 · 8 comments
Open

Able to set IOPS with "knife vsphere vm vmdk add"? #448

petericebear opened this issue Sep 4, 2018 · 8 comments

Comments

@petericebear
Copy link
Contributor

Hi,

Is it possible to set the IOPS of a new vmdk on attachment to a VM?
We have SSD, Block and Archive which we want to limit IOPS based on the datastore it goed to.

Thanks in advance, for reply

@swalberg
Copy link
Collaborator

swalberg commented Sep 4, 2018

We don't expose that directly. Would need to look up where in the API this gets set. might be able to do it through knife vsphere vm config...

Which version of vsphere is this for?

@petericebear
Copy link
Contributor Author

That is for version 5.5, but going to upgrade to 6.5 soon. Would be great if that it is possible :D

@petericebear
Copy link
Contributor Author

Do you have an idea how to set this, at which level?

@swalberg
Copy link
Collaborator

I couldn't find anything about iops. There was some stuff about disk shares (SharesInfo) but I'm not clear if that translates into iops. I think the easiest way to find it is to set it in the web UI and then try and find it in a console session. Just haven't had the time this week -- my day just just changed into our busy period.

@petericebear
Copy link
Contributor Author

It should be possible:
https://github.com/lamw/vghetto-scripts/blob/master/powershell/configurePerVMDKIOPS.ps1

In this PowerShell script the setting can be set. I will look into this, and will give you an update.

@petericebear
Copy link
Contributor Author

petericebear commented Sep 11, 2018

https://gist.github.com/petericebear/02739f8b9b3c4dd20040b6b996d7e722
This gist works now for setting IOPS. Will try to make a PR for it this week some where.

@swalberg
Copy link
Collaborator

Aha, good find. Same comment as the other one -- did you want to PR that after switching to SearchHelpers and ui.info?

Or let me know if you want me to do it; just wanted to make sure you have the opportunity for the credit in the commit log.

@petericebear
Copy link
Contributor Author

Yeah will do, think at the end of the week I have some time for that

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

No branches or pull requests

2 participants