You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 CONTRIBUTIONguidelines.
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
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](https://private-user-images.githubusercontent.com/12761320/334769961-02404062-1944-4394-942e-d259092685a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NTg3MjAsIm5iZiI6MTcyMDY1ODQyMCwicGF0aCI6Ii8xMjc2MTMyMC8zMzQ3Njk5NjEtMDI0MDQwNjItMTk0NC00Mzk0LTk0MmUtZDI1OTA5MjY4NWE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDAwNDAyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiZTNiNTlkODIwYWE0MjAwY2M4MjM5NWE1OThkYmI5NjgwODc0MjkyNzMyYmQxYjRmOWU3M2ZlMDQwOTVkZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LB0ma0e8vjGuu-STk_1OKVXbbg_5SSRfu1wM5Q1Dfi4)
The text was updated successfully, but these errors were encountered: