You can detect and fix resource pool mismatches between VMware Cloud Director and vCenter Server by using the cell management tool.

Starting with VMware Cloud Director 10.4.1, you can detect and fix mismatches between the resource pools in the inventory of VMware Cloud Director and the inventory of vCenter Server by using the cell management tool. The detect-rp-mismatches subcommand of the cell management tool detects a new resource pool that was added or recreated in the vCenter Server inventory and includes it as a backing resource of the provider VDCs and organization VDCs in VMware Cloud Director.

Prerequisites

Verify that VMware Cloud Director is up and running.

Procedure

  1. Log in or SSH to the OS of the VMware Cloud Director cell as root.
  2. Run the command in the following form.
    /opt/vmware/vcloud-director/bin/cell-management-tool detect-rp-mismatches options
    Table 1. Cell Management Tool Options and Arguments, detect-rp-mismatches Subcommand
    Option Argument Description
    --help (-h) None Provides a summary of available commands in this category.
    --detect-mismatch-with-vc None Detect a resource pool mismatch between the vCenter Serverinventory and the provider VDCs and organization VDCs in your VMware Cloud Director environment. If you use this option without further input, such as the optional --vdcs and --pvdcs, the command runs for all VDCs and PVDs.
    --fix-mismatch-with-vc None

    Fix the resource pool mismatch between the vCenter inventory and VMware Cloud Director for both the provider VDCs and the organization VDCs in your environment. If you use this option without further input, such as the optional --vdcs and --pvdcs, the command runs for all VDCs and PVDs.

    After you run the command, follow the cell management tool prompts and provide the necessary input to recreate the resource pool in the vCenter inventory, if necessary. To sync the updated vCenter resource pool inventory to the VMware Cloud Director database, make sure the VMware Cloud Directorinstance is running.

    Note: If the resource pool was deleted or recreated in the vCenter Server instance, follow the command prompts to recreate it and to let the updated inventory sync with the running VMware Cloud Director instance. Provide the necessary information about the recreated resource pool.

    When the resource pool mismatch fix completes, a notification appears.

    If there were VMs that were originally under the resource pool which was recreated and these VMs were moved to another one upon the resource pool deletion, the cell management tool provides a list of all the VMs that you must move back under the recreated resource pool to complete the fix.

    --vdcs vdc1, vdc2,vdc3 Optional. A comma-separated list of organization VDC names for which to detect or fix resource pool mismatches. If the VDC name contains a comma or a space, surround the VDC name with quotation marks.
    --pvdcs pvdc1,pvdc2,pvdc3 Optional. A comma-separated list of provider VDC names for which to detect or fix resource pool mismatches. If the VDC name contains a comma or a space, surround the VDC name with quotation marks.