If the vCenter Inventory Service Database is corrupted or otherwise inoperable, you can reset it. You should also reset the vCenter Inventory Service Database if you reset the vCenter Server database.

Caution

Resetting the vCenter Inventory Service Database can cause data loss. Perform this procedure only with VMware Technical Support.

1

Stop the vCenter Inventory Service.

a

From the Windows Administrative Tools control panel, select Services.

b

Right-click VMware vCenter Inventory Service and select Stop.

2

Open a command prompt.

3

Delete the entire contents of the C:\Program Files\VMware\Infrastructure\Inventory_Service\data directory.

If you installed vCenter Server in a different location from the default C:\Program Files\, adjust the path accordingly.

4

Change directory to C:\Program Files\VMware\Infrastructure\Inventory_Service\scripts

If you installed vCenter Server in a different location from the default C:\Program Files\, adjust the path accordingly.

5

Run the createDB.bat command, with no arguments, to reset the vCenter Inventory Service database.

6

Start the vCenter Inventory Service.

a

From the Windows Administrative Tools control panel, select Services.

b

Right-click VMware vCenter Inventory Service and select Start.

7

Change directory to C:\Program Files\VMware\Infrastructure\VirtualCenter Server\isregtool.

If you installed vCenter Server in a different location from the default C:\Program Files\, adjust the path accordingly.

8

Run the register-is.bat command to update the stored configuration information of the Inventory Service.

register-is.bat vCenter_Server_URL Inventory_Service_URL Lookup_Service_URL

Use the following example as a model.

register-is.bat https://machinename.corp.com:443/sdk https://machinename.corp.com:10443 https://machinename.corp.com:7444/lookupservice/sdk

In this example, 443, 10443, and 7444 are the default HTTPS port numbers for vCenter Server, Inventory Service, and vCenter Single Sign On respectively. If you use custom ports, replace the port numbers in the example with the port numbers you use.

9

Restart vCenter Server.

The vCenter Inventory Service database is reset.