VMware VS4-ENT-PL-A Setup Guide - Page 120
Reset the vCenter Inventory Service Database
View all VMware VS4-ENT-PL-A manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 120 highlights
vSphere Installation and Setup Prerequisites n Consult your database administrator about backing up and restoring databases. n Verify that you have system administrator privileges to perform backup or restore operations. Procedure 1 On the destination machine, open a console and run the service vmware-inventory service stop command to stop the Inventory Service before you restore the Inventory Service database. 2 On the destination machine, open a command prompt in the vCenter Server and change the directory to /usr/lib/vmware-vpx/inventoryservice/scripts/. 3 Run the following command at the prompt to restore the Inventory Service database. ./restore.sh -backup backup_file_name When the restore operation finishes, the message The Restore completed successfully message appears at the command prompt. Reset the vCenter Inventory Service Database 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. Procedure 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. 120 VMware, Inc.