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 expand a block storage by methods.ExpandVmfsDatastore? #3452

Open
jiangbo202 opened this issue May 29, 2024 · 1 comment
Open

How to expand a block storage by methods.ExpandVmfsDatastore? #3452

jiangbo202 opened this issue May 29, 2024 · 1 comment

Comments

@jiangbo202
Copy link

jiangbo202 commented May 29, 2024

I want to expand a block storage that is currently in use through "methods.ExpandVmfsDatastore".

Actual testing found that it is necessary to specify the "EndSection" after expansion
But I couldn't find how to get the "EndSection" after expansion.

I can obtain the last sectors on esxi by using the command "partedUtil getUsableSectors"/vmfs/devices/disks/naa.600a0980383047526e3f4c6c31625xxx".

I tried using "methods. ComputeDiskPartitionInfoForResize" and the result was "Returnval.Spec.Partition[0].EndSector", but what I got was the last sections before the expansion, not the last sections after the expansion.

If I directly use the "EndSection" before expansion, an error message will appear: "ServerFaultCode: Cannot change the host configuration."

I generated code by enabling developer mode on the vmware page, and the EndSection was set directly in the result. I don't know where to obtain it, as shown in the figure
image

Copy link
Contributor

Howdy 🖐   jiangbo202 ! 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.

@jiangbo202 jiangbo202 changed the title How to expand a block of storage by methods.ExpandVmfsDatastore? How to expand a block storage by methods.ExpandVmfsDatastore? May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant