-
Notifications
You must be signed in to change notification settings - Fork 124
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
Extending the Disk #433
Comments
Hello! How big is the disk right now? The command expects the new disk size, in kilobytes. So Let me know if that's the case, please. |
Hi swalberg, Thanks for you reply ! Is there any chance to give the disk value in MB or GB instead? |
Hi, I don't think you can shrink it through the API we're using. If I ever learn of a way to do that I'll put it on the backlog. I've got some concerns about the user experience so maybe putting it in a separate Allowing it to accept human readable numbers like |
Hi, Do we have a command to add the extra disk as well? |
Hi Sean Walberg,
Do we have a separate knife vSphere command to add extra disk to the VM post provisioning/Cloning ?
Thanks & Regards.
Bhargavi.A.
[cid:[email protected]]
Vnet: 572301
Email: [email protected]<mailto:[email protected]>
From: Sean Walberg <[email protected]>
Sent: Wednesday, May 30, 2018 5:36 PM
To: chef-partners/knife-vsphere <[email protected]>
Cc: Allada, Bhargavi (Cognizant) <[email protected]>; Author <[email protected]>
Subject: Re: [chef-partners/knife-vsphere] Extending the Disk (#433)
Hi, I don't think you can shrink it through the API we're using. If I ever learn of a way to do that I'll put it on the backlog. I've got some concerns about the user experience so maybe putting it in a separate knife vsphere vm disk shrink command might be better.
Allowing it to accept human readable numbers like 100g or 200m is a great idea. Going to flag this as an enhancement.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#433 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AlGwdj_QI2MreTqOsNHYhO_sfkMO7GEBks5t3os8gaJpZM4US74k>.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
|
Discussion in #437. |
Versions:
Platform Details
Scenario:
We are trying to extend the disk size.
Please paste the command and output (run with
-VV
). Don't forget to X out any passwords or sensitive information:Command we used is below:
knife vsphere vm disk extend VM_Name 1000000 --folder Chef_Test --diskname "Hard disk 2" -VV
Output (run with
'-VV
):/root/.chefdk/gem/ruby/2.4.0/gems/rbvmomi-1.11.7/lib/rbvmomi/vim/Task.rb:14:in
wait_for_completion': InvalidDeviceOperation: Invalid operation for device '0'. (RbVmomi::Fault) from /root/.chefdk/gem/ruby/2.4.0/gems/knife-vsphere-2.0.4/lib/chef/knife/vsphere_vm_disk_extend.rb:62:in
run'from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/knife.rb:442:in
block in run_with_pretty_exceptions' from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/local_mode.rb:44:in
with_server_connectivity'from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/knife.rb:441:in
run_with_pretty_exceptions' from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/knife.rb:219:in
run'from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/application/knife.rb:156:in
run' from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/bin/knife:25:in
<top (required)>'from /bin/knife:255:in
load' from /bin/knife:255:in
Expected Result:
We are trying to extend the existing VM disk size.
Actual Result:
We are getting the below error:
ERROR: RbVmomi::Fault: InvalidDeviceOperation: Invalid operation for device '0'.
The text was updated successfully, but these errors were encountered: