VMware VS4-ENT-PL-A Setup Guide - Page 119
Back Up the Inventory Service Database on Linux, Restore an Inventory Service Database Backup on Linux
View all VMware VS4-ENT-PL-A manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 119 highlights
Chapter 5 After You Install vCenter Server 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, stop the Inventory Service. a From the Windows Administrative Tools control panel, select Services. b Right-click VMware vCenter Inventory Service and select Stop. The Status changes from Started to blank. 2 On the destination machine, open the command prompt in the vCenter Server and change the directory to vCenter Server install location\Infrastructure\Inventory Service\scripts. 3 Run the following command at the command prompt to restore the Inventory Service database. restore -backup backup_file_name When the restore operation finishes, the message The Restore completed successfully message appears. Back Up the Inventory Service Database on Linux You should back up the Inventory Service database as part of your regular vCenter Server database administration. To move the Inventory Service database to a different host machine, back up the database on the source machine and restore the database on the destination machine. 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 source 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 source 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 to back up the Inventory Service database. ./backup.sh -file backup_file_name When the backup operation finishes, the message Backup completed successfully appears. What to do next See "Restore an Inventory Service Database Backup on Linux," on page 119. Restore an Inventory Service Database Backup on Linux You can restore a backup of your Inventory Service database for disaster recovery, after a vCenter Server upgrade, or to move the database to a new machine. The machine that you back up the database from is the source machine. The machine that you restore the database to is the destination machine. VMware, Inc. 119