1.去5480端口开启VCENTER的远程ssh连接登陆.

2.停止 vCenter Inventory Service:
service vmware-inventoryservice stop

3.进入备份脚本目录:
cd /usr/lib/vmware-vpx/inventoryservice/scripts/

4.备份 vCenter Inventory Service 数据库:
./backup.sh -file /tmp/InventoryServiceDB.DB
成功的 vCenter Inventory Service 数据库导出将显示类似于以下内容的输出:
Opening Inventory Service data files
Inventory Service data files opened
Backing up data…
Backup completed successfully

———以下开始还原
5.还原 vCenter Inventory Service 数据库
上传备份文件InventoryServiceDB.DB至VCENTER的/tmp目录

6.停止 vCenter Inventory Service:
service vmware-inventoryservice stop

7.进入还原脚本目录:
cd /usr/lib/vmware-vpx/inventoryservice/scripts/

8.还原 vCenter Inventory Service 数据库
./restore.sh -backup /tmp/InventoryServiceDB.DB
成功的 vCenter Inventory Service 数据库导出将显示类似于以下内容的输出:
Restoring from backup: /tmp/InventoryServicedb.DB
Restoring…
Attempting to save existing data to /storage/db/inventoryservice/data-1382478584969.old
Saved existing data to /storage/db/inventoryservice/data-1382478584969.old
Restore completed successfully

9.启动 vCenter Inventory Service
service vmware-inventoryservice start

=================
还原完成后,登录到 vSphere Web Client(默认 URL 为 https://VCSA_FQDN:9443)以验证 Inventory Service 是否可以正常运行。执行以下检查:
确保虚拟机和模板视图和主机和群集视图中列出了所有虚拟机。
确保已还原环境中已配置的任何标记。