Reconciling Discrepancies in the Managed Virtual Disk Catalog
search cancel

Reconciling Discrepancies in the Managed Virtual Disk Catalog

book

Article ID: 321994

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

In rare cases, the vSphere inventory of managed virtual disks can become temporarily out of synch with datastore disk backing metadata. This problem can be due to a transient condition, such as an I/O error, or it can happen if a datastore is briefly inaccessible. This problem has been observed only under stress testing.

A discrepancy in the inventory can occur any time that a datastore is lost or when a managed virtual disk is created or deleted using a tool other than the vSphere Web Client or the VStorageObjectManager interface in the Web Services API.

Environment

VMware vSphere Web Services SDK 4.1

Resolution

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, invoke a Web Services API method that corrects the problem.
  • Whenever discrepancy in the inventory is suspected, perform a catalog reconciliation.
    • Due to the performance impact, reconcile only when needed. Catalog reconciliation can take minutes.
  1. 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:
  2. Connect to https://server/mob and click Content.
  3. Click the link associated with the property rootFolder, then click the link associated with the property childEntity.
  4. Click one of the links associated with the property dataStore. Select the datastore that holds
    the missing managed virtual disk.
  5. Select and copy the value of the Managed Object ID at the top of the window. For example,
    datastore1.
  6. Click the Home tab to return to the Service Instance, then click Content.
  7. Click vStorageObjectManager.
  8. Click ReconcileDatastoreInventory_Task.
    A pop-up window opens to show the method.
  9. In the Value element, replace MOID with the managed object reference of the datastore that holds
    the missing managed virtual disk.
  10. Click Invoke Method.
  11. Click the link in the value field.
    This action opens the Task object that tracks the progress of the reconciliation operation.
  12. Click info.
    If the value of the state field is "success", the reconciliation is done.