Any time the inventory of managed virtual disks appears incorrect, you can invoke a Web Services API method that corrects the problem. This problem is rare in testing, but a discrepancy in the inventory can occur any time you lose a datastore, or when you create or delete a managed virtual disk using a tool other than the vSphere Web Client or the VStorageObjectManager interface in the Web Services API.
Whenever you suspect a discrepancy in the inventory, you can perform catalog reconciliation. Due to the performance impact, you should reconcile only when needed. Catalog reconciliation can take minutes.
To reconcile the catalog 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.
- Click Content.
- Click the link associated with the property rootFolder.
- Click the link associated with the property childEntity.
- Click one of the links associated with the property dataStore. Choose 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, datastore-1.
- Click the Home tab to return to the Service Instance.
- Click Content.
- Click vStorageObjectManager.
- Click ReconcileDatastoreInventory_Task. A popup window opens to show the method.
- In the Value field, 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 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.