This section describes the backup management maintenance commands.
NAME
swstsrsemtch - recovers resource information
SYNOPSIS
/opt/FJSVswsts/bin/swstsrsemtch [-x]
/opt/FJSVswsts/bin/swstsrsemtch [-x] [-h serverName]
DESCRIPTION
This command recovers resource information if a system failure, etc. has made the resource information inconsistent.
OPTIONS
When executing on the Management Server, specify the name of the target Managed Server.
When executing on the target Managed server, it is not necessary to specify this option.
For the server name, accurately specify the same letters, including upper and lower case, as the server name displayed with the stgxfwcmdispsrv command.
If a recovery operation of the resource information in the Management Server cannot be performed for some reason, specify this option.
EXIT STATUS
=0: Completed successfully
>0: Terminated abnormally
EXAMPLES
Recover resource information:
# /opt/FJSVswsts/bin/swstsrsemtch swstsrsemtch completed #
NOTES
This command can only be executed if none of the following commands are running:
NAME
swstresback - backup of backup management list and recovery control file
SYNOPSIS
/opt/FJSVswsts/bin/swstresback backupDir [-lg logGroupName[/rdbName]]
DESCRIPTION
A backup management list and a recovery control file are backed up to the specified directory.
Backup management list (Management information, such as Managed Server configuration information)
Recovery control file (File that was created when backing up Symfoware database spaces)
The information backed up by this command can be restored by the swstresrst command.
The following two methods are available to back up files.
To back up all the backup management lists and recovery control files
Execute this command without the -lg option.
To back up the backup management list and recovery control file for each log group
Execute this command with the -lg option.
Use this method only if the device map file is used to separate the backup volumes for the transaction volumes in the log group.
The restoration must be performed with the same method as when the files are backed up (for example, if the -lg option is specified for this command, specify the -lg option for the swstresrst command). Note which method to use for the restoration when performing a backup.
OPTIONS
Back up only the backup management list and the recovery control file related to the specified log group to the specified directory.
Specify log group name.
Specify the RDB system name after the log group name, delimited by a slash (/).
If there is no RDB system name, you can omit it.
OPERANDS
Specifies the name of a directory to which the backup management list and the recovery control file are saved.
EXIT STATUS
=0: Completed successfully
>0: Terminated abnormally
EXAMPLES
Backing up of the backup management list and the recovery control file:
# /opt/FJSVswsts/bin/swstresback /home/backup swstresback completed #
Backing up the backup management list and the recovery control file for log groups LG1 and LG2:
# /opt/FJSVswsts/bin/swstresback /home/backup/LG1 -lg LG1/RDB1 swstresback completed # /opt/FJSVswsts/bin/swstresback /home/backup/LG2 -lg LG2/RDB1 swstresback completed #
NOTES
You cannot perform backup if:
The specified directory does not exist.
Copying of data to the specified directory failed because of insufficient free space, etc.
The specified directory has backups that are obtained with different methods.
This command can be executed only while none of the following commands are running:
If a backup is performed with the -lg option, specify different directories for each log group.
If the -lg option is specified in the following conditions, an error occurs.
When the log group that is specified with the -lg option has not been registered
When a directory that has backups of log groups that are different from the one specified with the -lg option is specified
NAME
swstresrst - restore of backup management list and recovery control file
SYNOPSIS
/opt/FJSVswsts/bin/swstresrst backupDir [-lg logGroupName[/rdbName] [-clean]]
DESCRIPTION
A backup management list and a recovery control file are restored from the specified directory.
Managed resources information (Management information, such as Managed Server configuration information)
Recovery control file (File that was created when backing up Symfoware database spaces)
A restoration is available when the target method is the same as the one used to back up with the swstresback command.
To back up all the backup management lists and recovery control files
Execute this command without the -lg option.
To back up the backup management list and recovery control file for each log group
Execute this command with the -lg option.
Use this method only if the device map file is used to separate the backup volumes for the transaction volumes in the log group.
OPTIONS
Restore only the backup management list and the recovery control file related to the specified log group.
Specify log group name.
Specify the RDB system name after the log group name, delimited by a slash (/).
If there is no RDB system name, you can omit it.
Delete all the existing backup management lists and recovery control files, and then restore the backup management list and recovery control file for the specified log group.
Specify this option if the existing backup management lists and recovery control files cannot be used due to reasons such as file corruption.
OPERANDS
The backup location directory name directed by the swstresback command is specified.
EXIT STATUS
=0: Completed successfully
>0: Terminated abnormally
EXAMPLES
Restoring the backup management list and the recovery control file:
# /opt/FJSVswsts/bin/swstresrst /home/backup swstresrst completed #
Restoring the backup management list and the recovery control file for log groups LG1 and LG2:
# /opt/FJSVswsts/bin/swstresrst /home/backup/LG1 -lg LG1/RDB1 swstresrst completed # /opt/FJSVswsts/bin/swstresrst /home/backup/LG2 -lg LG2/RDB1 swstresrst completed #
NOTES
Before the backup management list and the recovery control file is restored by this command, the swstsvrset command must be executed. For the name of the target directory for output of the recovery control file that is specified by the -c option of the swstsvrset command, specify the directory that was set when you performed the resource backup.
You cannot perform restoration if:
The specified directory does not exist.
No backup management list exist in the specified directory.
Copying of data from the specified directory for restoration failed because of insufficient free space, or for some other reason.
The specified directory has backups that are obtained with different methods.
This command can be executed only while none of the following commands are running:
Specify the -lg option with this command to restore the backup management list and the recovery control file that have been backed up with the -lg option.
If the -lg option is specified in the following conditions, an error occurs.
When the log group that is specified with the -lg option has not been registered
When there are no backups for the log group that is specified with the -lg option in the specified directory
When the backup volume used for the resource backup of the log group specified with the -lg option is also used as a backup volume for other transaction volumes