Top
ETERNUS SF AdvancedCopy Manager V16.9A Operation Guide
FUJITSU Storage

7.1.2 Making Package Backup of Databases

This section describes the function of making a backup of management information (e.g., databases) from just one Managed Server or Management Server.

With a package backup of management information, you can make a backup of management information for all Managed Servers and Management Server from just one Managed Server or Management Server. Executing a package backup of management information runs backup commands (making backups of backup management resources) for the databases of other Managed Servers and Management Server, and collects the backup data and management information created by these backup commands.

The server on which you can execute a package backup of management information is called the "package-backup-of-the-management-information execution server". The servers whose data is to be backed up are called the "package-backup-of-the-management-information target servers".

Example

Figure 7.1 Management Server and Managed Server

Assume that the package backup of management information function has been used to back up the management information on a Management Server, Managed Server A, and Managed Server B onto Managed Server B in the diagram above. In this case, Managed Server B is the backup execution server. The Management Server, Managed Server A, and Managed Server B are the backup target servers. That is, Managed Server B operates as both the backup execution server and backup target server.

The following table shows the types of management information that is handled in a package backup of management information.

Table 7.2 Types of Management Information Backed Up by Package Backup of Management Information

Function

Type of Data

Registry

  • Registry

Backup management

  • Backup management list, or backup management list and recovery control file

  • Pre-processing and post-processing scripts

  • Transaction volume locking specification file for backups

  • Backup volume locking specification file for backups

  • Backup-restored volume locking specification file

Replication management

  • Pre-processing and post-processing scripts

  • Copy-source volume locking specification file

  • Copy-destination volume locking specification file

Package backup of management information

  • Policy file

7.1.2.1 Preliminaries

Before creating a package backup of management information, you must perform the following:

  1. Determine the management information package backup target servers and the types of management information to be backed up.

  2. Determine the management information package backup execution server.

  3. Create a directory where the management information package backup execution server stores the backup data. The size of the directory must not be less than the total of the following sizes:

    • The required size for a database is the size of the database backup data multiplied by 1.2.
      For the backup data size, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the operating system running on the Management Server.

    • The required size for the registries is the total of the data sizes of the registry backup data on the management information package backup target servers.
      For the backup data size, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the operating system running on the management information package backup target server.

    • The required size for backup management is the total of the sizes below for each management information package backup target server:
      For the size of each component of backup data, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the operating system running on the management information package backup target server.

      • Size of the backup data for the backup management lists (size of the backup data for the backup management lists plus the size of the backup data for the recovery control files) multiplied by 1.2

      • Size of the pre-processing and post-processing scripts for backup management

      • Size of the transaction volume locking specification file for backups for backup management

      • Size of the backup volume locking specification file for backups for backup management

      • Size of the backup-restored volume locking specification file for backup management

    • The required size for replication management is the total of the following sizes for each management information package backup target server:

      • Size of the pre-processing and post-processing scripts for replication management

      • Size of the copy-source volume locking specification file for replication management

      • Size of the copy-destination volume locking specification file for replication management

  4. Check the size of the working directory for the management information package backup target servers (or the shared disk for shared data for AdvancedCopy Manager in a clustered system). The sizes described below are needed only when a package backup of management information is being created. Use the largest value of the sizes of the databases to be backed up from the management information package backup target servers. The required sizes are as follows:

    • The required size for the databases is the size of the database backup data multiplied by 2.2.
      For the backup data size, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the operating system running on the Management Server.

    • The required size for backup management is the size of the backup data for the backup management lists (size of the backup data for the backup management lists plus the size of the backup data for the recovery control files) multiplied by 2.2.
      For the backup data size, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the operating system running on the management information package backup target server.

    • The working directory does not require any space for registry, replication management, and policy file backups.

  5. Execute the stgmgrinfoset command on the management information package backup execution server (determined in step 2).

  6. Create a policy file on the management information package backup execution server.

    Table 7.3 Management Information Package Backup Execution Server and Policy File Paths

    Management Information Package Backup Execution Server

    Policy File Path

    OS Type

    Operation Type

    Windows

    Non-cluster

    <Environment directory>\etc\stgmgrinfo_policy.ini

    Cluster

    <AdvancedCopy-Manager-shared-data>:\etc\opt\swstorage\etc\stgmgrinfo_policy.ini

    Solaris,
    Linux,
    HP-UX,
    AIX

    Non-cluster

    /etc/opt/FJSVswstf/stgmgrinfo_policy.ini

    Cluster

    /etc/opt/FJSVswstf/logicalNodeName/stgmgrinfo_policy.ini

Note

  • Do not specify more than one Managed Server as a management information package backup execution server.

  • When this server is used for executing transactions on the Managed Server in a clustered system, create a directory for storing backup data on a shared disk.

  • For databases and backup management, backup commands are executed on the corresponding management information package backup target servers. In addition, for database backups and backup management (ie, backup management lists) backups, a temporary capacity that is approximately 2.2 times greater than the total size of the backups is required to save the backup data in an archive log file.

Table 7.4 Policy File Format

Section Name

Key Name

Description(*)

Server name

BkupData

Specifies whether to make a backup of the backup management.

Yes: Make a backup of the backup management.
No: Do not make a backup of the backup management.

ReplData

Specifies whether to make a backup of the replication management.

Yes: Make a backup of the replication management.
No: Do not make a backup of the replication management.

Specifiable only when the applicable function is operating on the server (Management Server or Managed Server).

*: If this key is not specified or if "Yes" is not in the form "Y" (uppercase) + "es" (lowercase), then "No" is set.

Example

Set up a policy file as follows:

  • The Management Server named ACMMGR creates backups for the backup management.

  • The Managed Server named ACMAGT1 creates backups for backup management.

  • The Managed Server named ACMAGT2 creates backups for replication management.

[ACMMGR]
BkupData=Yes
[ACMAGT1]
BkupData=Yes
[ACMAGT2]
ReplData=Yes

Note

  • Create a policy file only if it is used.

  • The policy file cannot include any settings for backups of registries and of the policy file for management information package backup.

7.1.2.2 Backup Operations

Executing the stgmgrinfobkup command on the management information package backup execution server stores the backup data in the directory under the following structure.

Table 7.5 Directory Structure for Execution of Management Information Package Backup and Data Types

Directory

Data Type

*1

Server
name

RegiData

  • Registry

BkupData

FJSVswsts

  • Backup management list, or backup management list and recovery control file

Scripts

  • Pre-processing and post-processing scripts for backup management

data

  • Transaction volume locking specification file for backups, for backup management

  • Backup volume locking specification file for backups, for backup management

  • Backup-restored volume locking specification file for backups, for backup management

ReplData

Scripts

  • Pre-processing and post-processing scripts for replication management

data

  • Copy-source volume locking specification file for replication management

  • Copy-destination volume locking specification file for replication management

MgrInfoData

  • Policy file for management information package backup

*1 is the backup data storage directory specified by the stgmgrinfoset command.

Example

When *1 is /ACMBkupData and the server name is ACMAGT1, the pre-processing and post-processing scripts for backup management are put in the following directory:

/ACMBkupData/ACMAGT1/BkupData/Scripts

Initial Operations

The policy file backup operations are described below. Backup of registries which are not included in the backup targets when a policy file is used to perform backup are also detailed. The initial operations are as follows:

  1. Execute the stgmgrinfobkup command on the management information package backup execution server to make backups of the registries on all of the Managed Server.

  2. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the policy file.

  3. Refer to "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to back up the ETERNUS SF Manager database.

Normal-use Operations

Execute the stgmgrinfobkup command on the management information package backup execution server when you need to make backups of the target data.

Afterwards, refer to "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to back up the ETERNUS SF Manager database.

For the timing of the backups, refer to "Maintaining Database" in the AdvancedCopy Manager Operation Guide for the applicable operating system.

Operations When Server Is Added or Deleted

Operations When Server Added
  1. On the management information package backup execution server, set up a policy for the added Managed Server in the policy file.

  2. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the registry of the added Managed Server.

  3. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the policy file.

  4. Refer to "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to back up the ETERNUS SF Manager database.

Operations When Server Deleted
  1. On the management information package backup execution server, delete the information about the Managed Server that was deleted from the policy file.

  2. In the backup data directory on the management information package backup execution server, delete the directory containing the name of the deleted Managed Server.

  3. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the policy file.

  4. Refer to "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to back up the ETERNUS SF Manager database.

Operations When Server Name Is Changed

  1. On the management information package backup execution server, delete the information for the Managed Server from the policy file.

  2. In the backup data directory on the management information package backup execution server, delete the directory containing the name of the Managed Server.

  3. On the management information package backup execution server, set up a policy for the renamed Managed Server in the policy file.

  4. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the registry of the renamed Managed Server.

  5. Execute the stgmgrinfobkup command on the management information package backup execution server to make a backup of the policy file.

  6. Refer to "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to back up the ETERNUS SF Manager database.

7.1.2.3 Restoration Operations

This section describes how to use the backup data created by the stgmgrinfobkup command and "Backup of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to execute restoration.
Perform the operations below as a root user or with an account that belongs to the Administrators group.

Restoring Registry

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On the management information package backup execution server, copy the registry backup to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-registry-to-be-restored>\RegiData
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-registry-to-be-restored>/RegiData
  3. Transfer the registry backup that was copied in step 2 to the target server in binary mode.

  4. Restore the registry on the server. For details on restoring a registry, refer to "Restoring Registry" in the AdvancedCopy Manager Operation Guide for the operating system running on the target server.

Restoring Database

Refer to "Restore of Common Control and AdvancedCopy Manager Repository" in the AdvancedCopy Manager Operation Guide to restore the ETERNUS SF Manager database on the Management Server.

Restoring Replication Management List

  1. Perform the procedure of "Restoring Database" to restore a database.

    If you have performed it, this step is not needed.

  2. On the target server, execute the swsrprecoverres command with the -r option.

    For details on the command, refer to "swsrprecoverres (Resource Adjustment Command)" in the AdvancedCopy Manager Operation Guide for the operating system running on the target server.

Restoring Backup Management List, or Backup Management List and Recovery Control File

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the backup of the backup management list or the backups of the backup management list and the recovery control file to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-list/file-to-be-restored>\BkupData\FJSVswsts
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-list/file-to-be-restored>/BkupData/FJSVswsts
  3. Transfer the backup of the backup management list or the backups of the backup management list and the recovery control file copied in step 2 to the target server in binary mode.

  4. Expand the backup of the backup management list or the backups of the backup management list and recovery control file transferred in step 3 on the target server.

    • On a Windows version server:

      Expand the backup of the backup management list using the stgarcext (Backup Data Expansion Command) in the AdvancedCopy Manager Operation Guide (for Windows).

    • On a Solaris/Linux/HP-UX/AIX version server:

      Expand the backup of the backup management list or the backups of the backup management list and recovery control file by using the tar command supported by the operating system.

  5. Restore the backup management list, or the backup management list and recovery control file on the target server. For details on restoring, refer to "Restoring Backup Management List and Recovery Control File" in the AdvancedCopy Manager Operation Guide for the operating system running on the target server. The Backup-Directory specified in the resource restoration command is the directory expanded in step 4.

Restoring Backup Management Pre-processing/Post-processing Scripts

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the backups of the backup management pre-processing/post-processing scripts for backup management to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-scripts-to-be-restored>\BkupData\Scripts
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-scripts-to-be-restored>/BkupData/Scripts
  3. Transfer the backups of the backup management pre-processing/post-processing scripts copied in step 2 to the target server in binary mode.

  4. Transfer the backups of the backup management pre-processing/post-processing scripts copied in step 3 to the directory in which the scripts are executed on the target server in binary mode. For the directory in which the pre-processing and post-processing scripts for backup management are executed (that is, the directory to which the scripts are to be copied), refer to "Pre-processing and Post-processing of Backup and Restoration" in the AdvancedCopy Manager Operation Guide for the operating system running on the target server.

  5. On a Solaris/Linux/HP-UX/AIX-version server, change the access permission assigned to the pre-processing and post-processing scripts for backup management copied in step 4 on the target server by using the chmod command supported by the operating system. Set execution permission for the root user, which is the owner.

Restoring Locking Specification Files for Backup Management

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the backups of the locking specification files for backup management to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-files-to-be-restored>\BkupData\data
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-files-to-be-restored>/BkupData/data
  3. Transfer the backups of the locking specification files for backup management copied in step 2 to the target server in binary mode.

  4. Copy the backups of the locking specification files for backup management transferred in step 3 to the target server. For the directory in which the locking specification files for backup management are used (that is, the directory to which the files are to be copied), refer to "Pre-processing and Post-processing of Backup and Restoration" in the AdvancedCopy Manager Operation Guide (for Windows).

Restoring Pre-processing and Post-processing Scripts for Replication Management

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the backups of the pre-processing and post-processing scripts for replication management to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-scripts-to-be-restored>\ReplData\Scripts
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-scripts-to-be-restored>/ReplData/Scripts
  3. Transfer the backups of the pre-processing and post-processing scripts for replication management copied in step 2 to the target server in binary mode.

  4. Copy the backups of the pre-processing and post-processing scripts for replication management transferred in step 3 to the directory in which the scripts are executed on the target server. For the directory in which the pre-processing and post-processing scripts for replication management are executed (that is, the directory to which the scripts are to be copied), refer to "Appendix C Pre-processing and Post-processing of Replication" in the AdvancedCopy Manager Operation Guide for the operating system running on the target server.

  5. On a Solaris/Linux/HP-UX/AIX server, change the access permission assigned to the pre-processing and post-processing scripts copied in step 4 on the target server by using the chmod command supported by the operating system. Set execution permission for the root user, which is the owner.

Restoring Locking Specification Files for Replication Management

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the backups of the locking specification files for replication management to the following directory:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-files-to-be-restored>\ReplData\data
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-files-to-be-restored>/ReplData/data
  3. Transfer the backups of the locking specification files for replication management copied in step 2 to the target server in binary mode.

  4. Copy the backups of the locking specification files for replication management transferred in step 3 to the target server. For the directory in which the locking specification files for replication management are used (that is, the directory to which the files are to be copied), refer to "Pre-processing and Post-processing of Replication" in the AdvancedCopy Manager Operation Guide (for Windows).

Restoring Policy File for Management Information Package Backup

  1. Execute the stgmgrinfoset command on the management information package backup execution server to determine which directory contains the backup data.

  2. On this server, copy the policy file located in the following directory to the policy file for the management information package backup command:

    • For Windows environments

      <Directory-determined-in-step1>\<server-whose-file-to-be-restored>\MgrInfoData
    • For Solaris, Linux, HP-UX or AIX environments

      <Directory-determined-in-step1>/<server-whose-file-to-be-restored>/MgrInfoData

    For information on the directory for the policy file for the management information package backup command, refer to step 6 in "7.1.2.1 Preliminaries".