How to reset Inventory Service database for vCenter Server Appliance 6.0
book
Article ID: 313933
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
This article provides steps to reset the Inventory Service database in vCenter Server Appliance 6.0.
Environment
VMware vCenter Server Appliance 6.0.x
Resolution
Caution:
Resetting the Inventory Service database is destructive. Ensure you reset the database only after resetting the Individual Data Providers in the Inventory Service.
If you reset the Inventory Service database:
vCloud Director goes out of sync with vCenter Server and does not have accurate information about managed virtual machines.
Any Storage Profiles that you are using through the vSphere Profile-Driven Storage service are lost.
All object tags are deleted during a reset.
If the vCenter Server environment has Site Recovery Manager and you reset the Inventory Service database, you need to run a Change/Modify and Repair on Site Recovery Manager from the Windows Programs and Features to re-register Site Recovery Manager with the vCenter Server and Inventory Service.
To reset the Inventory Service database in vCenter Server Appliance 6.0:
Create a snapshot or backup of the vCenter Server Appliance virtual machine.
Open a console to the vCenter Sever Appliance and log in using root credentials.
Verify that the vCenter Server Appliance Inventory Service is stopped by running this command:
service-control --status
Note: All other services should be listed as running.
Download the 2119422_VCSA_reset-isdb6.0-bundle.zip file attached to this Knowledge Base article.
Note: From 6.0 U2 onwards, the script is already located at /usr/lib/vmware-invsvc/scripts/create-db.sh.
Copy the files to the vCenter Server Appliance using SCP.
Extract the zip file by running this command:
unzip 2119422_VCSA_reset-isdb6.0-bundle.zip
Change the permissions on the script with this command:
chmod 700 invreset_kb2119422.sh
Run the script:
./invreset_kb2119422.sh
Confirm all services are running by using this command: