The Web Services API contains several ReconcileDatastoreInventory methods. The reconciliation operation applies to managed virtual disks, which are independent virtual storage objects that vSphere can create and maintain with or without attachment to a virtual machine.
Any time that the inventory of managed virtual disks appears incorrect, you can invoke a Web Services API method that corrects the problem. Whenever you suspect a discrepancy in the inventory, you can perform catalog reconciliation. Due to
the performance impact, reconcile only when needed. Catalog reconciliation can take minutes.
To reconcile the catalog by using the Web Services API, use one of the following methods:
- For vCenter Server:
- ReconcileDatastoreInventory_Task
- ScheduleReconcileDatastoreInventory
- For ESXi:
- HostReconcileDatastoreInventory_Task
- HostScheduleReconcileDatastoreInventory
To reconcile the managed virtual disk inventory from a Web browser, use the VMware Managed
Object Browser to invoke a Web Services method. For example:
- Connect to https://server/mob and click Content.
- Click the link associated with the property rootFolder, then click the link associated with the property childEntity.
- Click one of the links associated with the property dataStore. Select the datastore that holds
the missing managed virtual disk. - Select and copy the value of the Managed Object ID at the top of the window. For example,
datastore1. - Click the Home tab to return to the Service Instance, then click Content.
- Click vStorageObjectManager.
- Click ReconcileDatastoreInventory_Task.
A pop-up window opens to show the method. - In the Value element, replace MOID with the managed object reference of the datastore that holds
the missing managed virtual disk. - Click Invoke Method.
- Click the link in the value field.
This action opens the Task object that tracks the progress of the reconciliation operation. - Click info.
If the value of the state field is "success", the reconciliation is done.