This section explains how to backup CMDB resources.
Check the space available for backup in the backup location.
To estimate approximately how much space the backup location will require, calculate the total volume of the following directories:
[Windows]
<Destination Folder of CMDB>\FJSVcmdbm\Enabler\EnablerDStores
<Destination Folder of CMDB>\FJSVcmdbm\Enabler\EnablerATFiles
<Destination Folder of CMDB>\FJSVcmdbm\Enabler\EnablerBackups
[UNIX]
/opt/FJSVcmdbm/var/Enabler/EnablerDStores
/opt/FJSVcmdbm/var/Enabler/EnablerATFiles
/opt/FJSVcmdbm/var/Enabler/EnablerBackups
Continue with the following procedure after confirming that the backup location has more space available than the total volume taken up by the above three directories.
Back up the CMDB resources.
Make sure that the location you specify as the backup location in the command parameters has the available space described above, then use the following backup command to create a backup directory:
[Windows]
<Destination Folder of CMDB>\FJSVcmdbm\bin\cmdbbackup.bat -d <backup directory> |
[UNIX]
/opt/FJSVcmdbm/bin/cmdbbackup.sh -d <backup directory> |
Note
Specify a full path for the backup directory. Directories with spaces in the path cannot be specified. ([UNIX] This directory should also be able to be referenced by the OMS user.)
If the specified directory already exists at the location specified, it will be overwritten when you run the command.
To restore the backed-up resources on another machine, you must manually move the resources to the other machine.
This section explains how to restore backed-up CMDB resources.
Stop the CMDB service.
Stop the CMDB service before restoration using the following command:
[Windows]
<Destination Folder of CMDB>\FJSVcmdbm\bin\cmdbstop.bat |
[UNIX]
/opt/FJSVcmdbm/bin/cmdbstop.sh |
Set up CMDB.
This is only necessary if CMDB setup has not yet been done, such as just after installation of the CMDB on a new environment.
[Windows]
<Destination Folder of CMDB Manager>\FJSVcmdbm\bin\cmdbsetupenv.bat -k MGR |
[UNIX]
/opt/FJSVcmdbm/bin/cmdbsetupenv.sh-k MGR |
Restore the CMDB resources.
Restore the CMDB resources by running the restoration command (note that you will need the folder name of the backup resources as one of the parameters for the command).
[Windows]
<Destination Folder of CMDB>\FJSVcmdbm\bin\cmdbrestore.bat -d <backup directory> |
[UNIX]
/opt/FJSVcmdbm/bin/cmdbrestore.sh -d <backup directory> |
Note
Specify a full path for the backup directory. Directories with spaces in the path cannot be specified.
Start the CMDB service.
Use the following command to start the CMDB service.
[Windows]
<Destination Folder of CMDB>\FJSVcmdbm\bin\cmdbstart.bat |
[UNIX]
/opt/FJSVcmdbm/bin/cmdbstart.sh |