Top
ETERNUS SF AdvancedCopy Manager 14.2 Operator's Guide

8.1.2 Making a package backup of databases

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

With a package backup of management information, you can make a backup of management information for all Storage Servers, Storage Management Servers, and tape servers from just one Storage Server, Storage Management Server, or tape server. Executing a package backup of management information runs backup commands (making backups of backup management resources and databases) for the databases of other Storage Servers, Storage Management Servers, and tape servers, 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".

Figure 8.1 Storage Management Server and Storage Server

Example

Assume that the package backup of management information function has been used to back up the management information on a Storage Management Server, Storage Server A, and Storage Server B onto Storage Server B in the diagram above. In this case, Storage Server B is the backup execution server. The Storage Management Server, Storage Server A, and Storage Server B are the backup target servers. That is, Storage 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 8.2 Types of management information backed up by package backup of management information

Function

Type of data

Database

Database

Authentication feature

Authentication management list

Registry

Registry

Backup management

Backup management list, or backup management list and recovery control file
Pre-processing and post-processing scripts
Tape-copy 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
Tape-copy backup volume-locking 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

Tape backup
management

Tape management information

Note

Storage Server management information created by Softek AdvancedCopy Manager 10.3 (V10.0L40) or earlier cannot be handled by the package backup of management information function. To create a backup, back up each management information component individually as described in "Maintaining a database" in the Operator's Guide applicable to the Storage Server.


8.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 will store 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 a database" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide" for the operating system running on the Storage Management Server.

    • The required size for an authentication management list is the size of the authentication management list backup data.

    • For the backup data size, refer to "Maintaining a database" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide" for the operating system running on the Storage 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 a database" in the "ETERNUS SF AdvancedCopy Manager Operator's 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 a database" in the Operator's 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

      • Sizes of the pre-processing and post-processing scripts for tape-copy

      • 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

      • Size of the backup volume locking specification file for backups for tape copy

    • 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

    • The required size for the policy file for package backup of management information is the size of the policy file backup.

      • The size required for tape management information is 1.2 times the size of backup of the tape management information.

      For details on the size of tape management information, refer to "Maintaining Databases" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide for Tape Backup Option".

  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 cluster 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 a database" in the Operator's Guide for the operating system running on the Storage Management Server.

    • The required size for the authentication management list is the size of the authentication management list backup data.
      For the backup data size, refer to "Maintaining a database" in the Operator's Guide for the operating system running on the Storage 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 a database" in the Operator's 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.

    • The size required for tape management information is 2.2 times the size of the backup of tape management information.
      For details on the size of tape management information, refer to the section titled "Maintaining Databases" in the ETERNUS SF AdvancedCopy Manager Operator's Guide for Tape Backup Option.

  5. Execute the stgmgrinfoset command as described in stgmgrinfoset (Management information package backup server registration/deletion 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 8.3 Management information package backup execution server and policy file paths

    Management information package backup execution server

    Policy file path

    OS

    Operation type

    Windows

    Non-cluster

    environment-setting-directory\etc\stgmgrinfo_policy.ini

    Cluster

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

    Solaris

    HP-UX

    Linux

    AIX

    Non-cluster

    /etc/opt/FJSVswstf/stgmgrinfo_policy.ini

    Cluster

    /etc/opt/FJSVswstf/<logical-node-name>/stgmgrinfo_policy.ini

Note

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

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

  • For databases, backup management, authentication management lists, and tape backup management, backup commands are executed on the corresponding management information package backup target servers. In addition, for database backups, backup management (ie, backup management lists) backups, and tape backup management information 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 file.

Table 8.4 Policy file format

Section
name

Key
name

Description

Whether specifiable on

Storage
Management
Server

Storage
Server

Tape
Server

Server
name

DBData

Specifies whether to make a backup of the database.

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

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

A

C

C

AuthData

Specifies whether to make a backup of the authentication feature.

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

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

A

C

C

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.

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

B

B

C

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.

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

B

B

C

TapeData

Specifies whether to make a backup of tape backup management information.

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

Note that failing to specify "Yes" with the correct capitalization ("Y" in uppercase or "es" in lowercase) or failing to specify the key sets the value to "No."

C

C

B

A: Specifiable,
B: Specifiable only when the applicable function is operating on the server,
C: Unspecifiable

Example

Set up a policy file as follows:

  • The Storage Management Server named ACMMGR creates backups for the database, the authentication feature, and backup management.

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

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

  • The tape server named ACMTAPE makes a tape backup management backup.

    [ACMMGR]
    DBData=Yes
    AuthData=Yes
    BkupData=Yes
    [ACMAGT1]
    BkupData=Yes
    [ACMAGT2]
    ReplData=Yes
    [ACMTAPE]
    TapeData=Yes

Note

  • Create a policy file only if it will be used.

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


8.1.2.2 Backup operations

Executing stgmgrinfobkup (Management information package backup command) on the management information package backup execution server stores the backup data in the directory under the following structure:

Table 8.5 Directory structure for execution of management information package backup and data types

Directory

Data type

*1

Server
name

DBData

Database

AuthData

Authentication management list

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
Pre-processing and post-processing scripts for tape-copy

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
Backup volume locking specification file for tape-copy

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

TapeData

Tape management list

*1 is the backup data storage directory specified by stgmgrinfoset (Management information package backup server registration/deletion 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 stgmgrinfobkup (Management information package backup command) on the management information package backup execution server to make backups of the registries on all of the Storage Server.

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

Normal-use operations

The normal-use operations are as follows:

Operations when a 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 Storage Server in the policy file.

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

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

Operations when server deleted
  1. On the management information package backup execution server, delete the information about the Storage 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 Storage Server.

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

Operations when a server name is changed

  1. On the management information package backup execution server, delete the information for the Storage 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 Storage Server.

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

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

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


8.1.2.3 Restoration operations

This section describes how to use the backup data created by stgmgrinfobkup (Management information package backup command) to execute restoration.
Perform the operations below as a root user or with an account that belongs to the Administrators group.

Restoring a registry

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-registry-to-be-restored>\RegiData
    Solaris, Linux, HP-UX, or AIX version:
    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 a registry" in the Operator's Guide for the operating system running on the target server.

Restoring a database

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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 backup of the database to the following directory:

    Windows version:
    directory-determined-in-step1\<storage-management-server-name>\RegiData
    Solaris, Linux, HP-UX, or AIX version:
    directory-determined-in-step1/<storage-management-server-name>/RegiData
  3. Transfer the backup of the database that was copied in step 2 to the Storage Management Server in binary mode.

  4. On the Storage Management Server, expand the database backup transferred in step 3. On the Windows version Storage Management Server, expand the database backup using the stgarcext (Backup data expansion command) in the "ETERNUS SF AdvancedCopy Manager Operator's Guide (Windows)". On a Solaris/Linux-version Storage Management Server, expand the database backup by using the tar command supported by the operating system.

  5. On the Storage Management Server, restore the database. For details on restoring a database, refer to "Restoring a database" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide" for the operating system running on the Storage Management Server.

    • The backup data storage directory specified for database restoration is the directory expanded in step 4.

Restoring an authentication feature

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion command) on the management information package backup execution server to determine which directory contains the backup data.

  2. In the management information package backup execution server, copy the backup of the authentication management list to the following directory:

    Windows version:
    directory-determined-in-step1\<storage-management-server-name>\AuthData
    Solaris, Linux, HP-UX, or AIX version:
    directory-determined-in-step1/<storage-management-server-name>/AuthData
  3. Transfer the backup of the authentication management list copied in step 2 to the Storage Management Server in binary mode.

  4. On a Solaris/Linux-version Storage Management Server, change the access permission assigned to the backup of the authentication management list transferred in step 3 by using the chmod command supported by the operating system. Set execution permission for the root user, which is the owner.

  5. On a Windows-version Storage Management Server, copy the backup of the authentication management list transferred in step 3 to -AdvancedCopy-Manager-program-directory\bin.

  6. On the Storage Management Server, restore the authentication management list. For details on restoring the authentication management list, refer to "Restoring an authentication management list" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide" for the operating system running on the Storage Management Server. A definition output batch file and a definition output shell script are the backup data of the authentication management list handled in steps 4 and 5.

Restoring a backup management list, or backup management list and recovery control file

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-list/file-to-be-restored>\BkupData\FJSVswsts
    Solaris, Linux, HP-UX, or AIX version:
    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 "ETERNUS SF AdvancedCopy Manager Operator's Guide (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 a backup management list" or "Restoring a backup management list and recovery control file" in the "ETERNUS SF AdvancedCopy Manager Operator's 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 the backup management pre-processing/post-processing scripts and tape-copy pre-processing/post-processing scripts

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-scripts-to-be-restored>\BkupData\Scripts
    Solaris, Linux, HP-UX, or AIX version:
    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 and tape copy 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 and tape-copy pre-processing/post-processing scripts copied in step 3 to the directory in which the scripts will be 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 for backup/restoration" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide" for the operating system running on the target server.

  5. On a Solaris/Linux/UP-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 stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-files-to-be-restored>\BkupData\data
    Solaris, Linux, HP-UX, or AIX version:
    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 "Appendix A Pre-processing and Post-processing of Backup and Restoration" in the "ETERNUS SF AdvancedCopy Manager Operator's Guide (Windows)".

Restoring pre-processing and post-processing scripts for replication management

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-scripts-to-be-restored>\ReplData\Scripts
    Solaris, Linux, HP-UX, or AIX version:
    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 will be 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 "Pre-processing and post-processing of replication" in the Operator's Guide for the operating system running on the target server.

  5. On a Solaris/Linux/UP-UX/AIX-version 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 stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-files-to-be-restored>\ReplData\data
    Solaris, Linux, HP-UX, or AIX version:
    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 "ETERNUS SF AdvancedCopy Manager Operator's Guide (Windows)".

Restoring a policy file for management information package backup

  1. Execute stgmgrinfoset (Management information package backup server registration/deletion 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:

    Windows version:
    directory-determined-in-step1\<server-whose-file-to-be-restored>\MgrInfoData
    Solaris, Linux, HP-UX, or AIX version:
    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 the section "8.1.2.1 Preliminaries".

Restoring the tape management information

  1. On the package-backup-of-the-management-information execution server, execute stgmgrinfoset (Management information package backup server registration/deletion command) to check the directory that contains the backup data.

  2. On this server, copy the backup data of the tape management information from the directory indicated below:

    For the Windows version:
    directory-checked-at-step-1\<name-of-the-target-server-of-restoration>\TapeData
    For the Solaris/Linux/HP-UX/AIX version:
    directory-checked-at-step-1/<name-of-the-target-server-of-restoration>/TapeData
  3. Transfer the backup data of the tape management information copied in Step 2 to the target server in binary mode.

  4. Expand the tape management information transferred in Step 3 on the target server. If the target server is the Solaris or Linux version, expand the tape management information by using the OS tar command.

  5. On the target server, restore the tape management information. For details on how to restore it, refer to the section titled "Restoring the tape management information" in the ETERNUS SF AdvancedCopy Manager Operator's Guide for Tape Backup Option.