To restore the Common Services backup data, run the csrestore command.
Make sure that the installation configuration and version of
Common Services on the restoration-destination system are the same as those on the
system where the backup was taken. You cannot restore backup data to a system that has a
different installation configuration and version.
-
Log in to the management server as the root user.
If you log in as an ordinary user, use the sudo command to complete the following procedure as the root
user.
-
Stop the Common Services service.
-
Run the csrestore command.
- Command location
- installation-directory-of-Common-Services/utility/bin/csrestore.sh
- Format
-
csrestore.sh -file path-to-backup-file
- Option
-
- -file path-to-backup-file
- Specify the path to the backup file to be restored. A relative path can be
specified.
-
If the server certificate and secret key were stored in a location other than the following
directory and backed up manually, store the server certificate and secret key in
the same location that was used for backup:
/var/installation-directory-of-Common-Services/tls/
Note: If you set up SSL
communication by using the cssslsetup
command prior to performing backup, store the server certificate and the
secret key in the location you specified.
-
If the host name, IP address, or port number of Common Services at the restoration
destination is changed, run the cschgconnect
command to change the settings.
-
Start the Common Services service.
-
As necessary, restore the backup data for each product registered in Common
Services.
For details on the restoration method and the prerequisites for restoring
backup data, see the documentation for each product.
-
If any products are registered in Common Services, delete each product
in the Hitachi Ops Center Portal, and then register the products in Common Services again.
To re-register the products in Common Services, run the setupcommonservice command for each product. For details
on the setupcommonservice command, see the
documentation for each product.