vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.29k stars 907 forks source link

[BUG] Didn't find way to expand datastore capacity #3490

Open HaruChebrolu opened 2 months ago

HaruChebrolu commented 2 months ago

Describe the bug I was unable to find a way to expand datastore capacity using govc. Please let me know if we have govc command to expand or reduce the size of datastore.

github-actions[bot] commented 2 months ago

Howdy 🖐   HaruChebrolu ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

dougm commented 1 month ago

We don't have that in govc. Sounds like expandVmfsDatastore or extendVmfsDatastore could be used and we have the generated govmomi methods. Don't know about reducing.

HaruChebrolu commented 1 month ago

Sure, thanks for your response. For reducing, can't we use shrinkVmfsDatastore. Please correct me if I am wrong When can we expect to include the change on (https://github.com/vmware/govmomi/commit/3139de3295843e0a96665694b52aa33e45147834) into a new release.

dougm commented 1 month ago

@HaruChebrolu your original question was on "expand datastore capacity". But based on your last comment it sounds like you're asking about vmdk capacity, rather than the datastore itself, is that right? https://github.com/vmware/govmomi/commit/3139de3295843e0a96665694b52aa33e45147834 is included in the 0.39 release.

HaruChebrolu commented 3 weeks ago

@dougm I am asking about increase Datastore capacity from created block devices.

Screenshot 2024-08-12 at 3 50 03 PM