Set Up Disk Partitions
The Web Services API enables you to manage disk partitions on ESXi host storage devices.
To set up the disk partitions, use the following steps.
Procedure
- Call HostStorageSystem.RetrieveDiskPartitionInfo to retrieve information about existing partitions.
- Call HostStorageSystem.ComputeDiskPartition, passing in the desired disk layout. The server computes a new partition information object for a specific disk representing the desired layout and returns a HostDiskPartitionInfo object that you can use in the HostDiskPartitionSpec you pass into UpdateDiskPartitions.
- Call HostStorageSystem.UpdateDiskPartitions to update partitions by passing in a HostDiskPartitionSpec.