Save the repository data to the specified directory all at once.
Perform this operation on the Management Server (Storage Management Server).
When Pre-Upgrade Environment Is Version 16.0 or Earlier
Note
Create a directory in which data is saved in advance.
Perform this operation as a root user.
Perform this operation with the locale specified when you installed the Management Server. If Symfoware has been installed in advance, perform this operation with the locale specified at the time of installing Symfoware.
The procedure is shown below:
Execute the following command.
# /opt/swstorage/bin/stgdbbackup
The following message is displayed.
To continue processing, enter "y". To stop processing, enter "n".
//////////////////////////////////////////////////////////////////// AdvancedCopy Manager Storage Management Server ( **** ) Database backup //////////////////////////////////////////////////////////////////// +----------------------------------------------------------------+ | | | All of the stored data will be saved in an external file. | | | | [Notes] | | Prepare a directory for storing the data to be saved. | | | +----------------------------------------------------------------+ Do you want to continue with processing? [y/n] ==> y
The following message is displayed.
Enter the absolute path name of the directory for storing the data to be saved.
//////////////////////////////////////////////////////////////////// AdvancedCopy Manager Storage Management Server ( **** ) Database backup //////////////////////////////////////////////////////////////////// Enter the absolute path name of the directory for storing the data to be saved. Enter ==> /storage/backdir
Note
If the saved data exists in the directory, the processing is not performed.
Delete the saved data in the directory or specify another directory to retry the processing.
The following message is displayed.
Enter "y" to continue processing or "n" to stop processing.
When you enter "n", the screen returns step 2.
//////////////////////////////////////////////////////////////////// AdvancedCopy Manager Storage Management Server ( **** ) Database backup //////////////////////////////////////////////////////////////////// Directory containing the saved data : /storage/backdir Do you want to continue with processing? [y/n] ==> y
The processing is performed and the execution results are displayed on the screen.
The following example is for the execution result.
////// AdvancedCopy Manager database backup ////// ================================================================== DB data backup will start. ================================================================== .... Unloading of data is complete.(base) ... Unloading of data is complete.(backup) . Unloading of data is complete.(repl) ================================================================== Backup of DB data is complete. ================================================================== Database backup ended normally. #
Check that the backup of database has been completed successfully.
Make sure that the file with ".unl" extension is created in the specified directory.
When Pre-Upgrade Environment Is Version 16.1 or Later
Note
Create a directory in which data is saved in advance.
Perform this operation as a root user.
Information
Notation in Procedure:
File Name | Explanation |
---|---|
$BAK_FILE | Backup file name for which an absolute path is specified |
The procedure is shown below:
Stop the ETERNUS SF Manager Web service.
Execute the following shell script to stop the service.
/opt/FJSVesfcm/bin/stop-webservice.sh
Create backup data.
From a user with OS Administrator privilege, execute the following command to create backup data.
If you did not change the port number, specify 15432 for portNumber. If you did change the port number, specify the changed port number for portNumber.
The file name of the created backup data is $BAK_FILE.
/opt/FJSVesfcm/postgres/bin/pg_dump -U esfpostgres -a --attribute-inserts -p portNumber -t esccs.\"BASE_\"* -t esccs.\"REP_REPVOL\" -t esccs.\"BR_\"* -f $BAK_FILE esfdb
The prompt is displayed, and waiting for input. Input the following strings.
master01!
Start the ETERNUS SF Manager Web service.
Execute the following shell script to start the service.
/opt/FJSVesfcm/bin/start-webservice.sh