AIX operating systemsLinux operating systemsOracle Solaris operating systemsWindows operating systems

PROTECT STGPOOL (Protect data that belongs to a storage pool)

Use this command to protect data in a directory-container storage pool by storing a copy of the data in another storage pool on a replication target server or on the same server. When you protect the directory-container storage pool, you can later try to repair damage in the storage pool by using the REPAIR STGPOOL command.

When you issue the PROTECT STGPOOL command for a directory-container storage pool, data that is stored in that storage pool is backed up to the target that you specify. The data can be backed up to the following target types:
  • A directory-container storage pool on the target replication server.
    Prerequisite: For the storage pool that is being protected, you must specify the target pool by using the PROTECTSTGPOOL parameter on the DEFINE STGPOOL or UPDATE STGPOOL command.

    When you regularly use the PROTECT STGPOOL command, you can typically reduce the processing time for the REPLICATE NODE command. The data extents that are already copied to the target replication server by storage pool protection operations are skipped when node replication is started.

    As part of the PROTECT STGPOOL operation, processes might run to repair damaged extents in the target server's storage pool. The repair operation occurs under the following conditions:
    • Both the source server and the target server must be at V7.1.5 or later.
    • Extents that are already marked as damaged on the target server are repaired. The repair process does not run an audit process to identify damage.
    • Only target extents that match source extents are repaired. Target extents that are damaged but have no match on the source server are not repaired.
    Limitations: The repair operation that runs as part of the PROTECT STGPOOL operation has the following limitations:
    • Extents that belong to objects that were encrypted are not repaired.
    • The timing of the occurrence of damage on the target storage pool and the sequence of REPLICATE NODE and PROTECT STGPOOL commands can affect whether the repair process is successful. Some extents that were stored in the target storage pool by a REPLICATE NODE command might not be repaired.
  • Container-copy storage pools on the same server.
    Prerequisite: For the storage pool that is being protected, you must specify the target storage pool by using the PROTECTLOCALSTGPOOLS parameter. For details about the parameter, see the commands for defining and updating directory-container storage pools (DEFINE STGPOOL and UPDATE STGPOOL commands).

    As part of the PROTECT STGPOOL operation, volumes in the target pool might be reclaimed. The value of the RECLAIM parameter for the container-copy storage pool affects when volumes are reclaimed. For details about the parameter, see the commands for defining and updating container-copy storage pools.

Privilege class

To issue this command, you must have system privilege.

Syntax when the target is the replication server

Read syntax diagramSkip visual syntax diagram
                                    .-Type--=--Replserver-.   
>>-PROTect STGPool--source_stgpool--+---------------------+----->
                                    '-Type--=--Replserver-'   

   .-FORCEREConcile--=--No------.   
>--+----------------------------+------------------------------->
   '-FORCEREConcile--=--+-No--+-'   
                        '-Yes-'     

                        (1)                  
   .-MAXSESSions--=--10------------------.   
>--+-------------------------------------+---------------------->
   '-MAXSESSions--=----number_sessions---'   

   .-Preview--=--No------.  .-PURGEdata--=--No----------.   
>--+---------------------+--+---------------------------+------->
   '-Preview--=--+-No--+-'  '-PURGEdata--=--+-No------+-'   
                 '-Yes-'                    +-All-----+     
                                            '-Deleted-'     

   .-Wait--=--No------.  .-TRANSFERMethod--=--Tcpip---------.   
>--+------------------+--+----------------------------------+--><
   '-Wait--=--+-No--+-'  |                              (2) |   
              '-Yes-'    '-TRANSFERMethod--=--+-Tcpip-+-----'   
                                              '-Fasp--'         

Notes:
  1. Linux operating systemsIf the TRANSFERMETHOD parameter is set to the default value of TCPIP, the default value of the MAXSESSIONS parameter is 10. If the TRANSFERMETHOD parameter is set to FASP, the default value of the MAXSESSIONS parameter is 2.
  2. Linux operating systemsThe TRANSFERMETHOD parameter is available only on Linux x86_64 operating systems.

Syntax when the target is a storage pool on the same server

Read syntax diagramSkip visual syntax diagram
>>-PROTect STGPool--source_stgpool--Type--=--Local-------------->

   .-Preview--=--No------.  .-Wait--=--No------.   
>--+---------------------+--+------------------+---------------><
   '-Preview--=--+-No--+-'  '-Wait--=--+-No--+-'   
                 '-Yes-'               '-Yes-'     

Parameters

source_stgpool (Required)
Specifies the name of the directory-container storage pool on the source server.
Type
Specifies the type of target for the protection operation. This parameter is optional. The default value is REPLSERVER. Specify one of the following values:
Replserver
Specifies that the target is the storage pool on the replication target server, as defined for the source storage pool with the PROTECTSTGPOOL parameter on the DEFINE STGPOOL or UPDATE STGPOOL command.
Local
Specifies that the target is on the same server as the source storage pool. The target is the container-copy storage pool that is defined for the source storage pool with the PROTECTLOCALSTGPOOLS parameter on the DEFINE STGPOOL or UPDATE STGPOOL command.
Tip: By default, the server uses a maximum of two parallel processes to copy data to a local target. You can change the maximum number of parallel processes by updating the container-copy storage pool that is the target. Use the UPDATE STGPOOL command with the PROTECTPROCESS parameter.
FORCEREConcile
Specifies whether to reconcile the differences between data extents in the directory-container storage pool on the source server and target server. This parameter is optional. The default value is NO. Specify one of the following values:
No
Specifies that data backup does not compare all data extents in the directory-container storage pool on the source server with data extents on the target server. Instead, data backup tracks changes to the data extents on the source server since the last backup and synchronizes these changes on the target server.
Yes
Specifies that data backup compares all data extents on the source server with data extents on the target server and synchronizes the data extents on the target server with the source server.
MAXSESSions
Specifies the maximum allowable number of data sessions that can send data to a target server. This parameter is optional. The value that you specify can be in the range 1 - 100.

AIX operating systemsOracle Solaris operating systemsWindows operating systemsThe default value is 10.

Linux operating systemsThe default value varies:
  • If TRANSFERMETHOD=TCPIP, the default value of the MAXSESSIONS parameter is 10.
  • If TRANSFERMETHOD=FASP, the default value of the MAXSESSIONS parameter is 2.

If you increase the number of sessions, you can improve throughput for the storage pool.

When you set a value for the MAXSESSIONS parameter, ensure that the available bandwidth and the processor capacity of the source and target servers are sufficient.

Tips:
  • If you issue a QUERY SESSION command, the total number of sessions might exceed the number of data sessions. The difference is because of short control sessions that are used to query and set up operations.
  • The number of sessions that are used for protection depends on the amount of data that is backed up. If you are backing up only a small amount of data, increasing the number of sessions provides no benefit.
Preview
Specifies whether to preview data. This parameter is optional. The default value is NO. Specify one of the following values:
No
Specifies that the data is backed up to the target server but that the data is not previewed.
Yes
Specifies that data is previewed but not backed up.
PURGEdata
Specifies that data extents are deleted from the target server. This parameter is optional. The default value is NO. You can specify one of the following values:
No
Specifies that data extents are not deleted from the target server.
All
Specifies that all data extents are deleted from the target server. Data extents that are referenced by other data in the target storage pool are not deleted.
Deleted
Specifies that data extents that were deleted on the source server are deleted from the target server. New data extents are not protected.
Wait
Specifies whether to wait for the server to process this command in the foreground. This parameter is optional. The default value is NO. You can specify one of the following values:
No
Specifies that the command is processed in the background. To monitor the background processes of this command, issue the QUERY PROCESS command.
Yes
Specifies that the command is processed in the foreground. Messages are not displayed until the command completes processing.
Restriction: You cannot specify WAIT=YES from the server console.
Linux operating systemsTRANSFERMethod
Linux operating systemsSpecifies the method that is used for server-to-server data transfer. This parameter is optional. You can specify one of the following values:
Tcpip
Specifies that TCP/IP is used to transfer data. This value is the default.
Fasp
Specifies that Aspera® Fast Adaptive Secure Protocol (FASP®) technology is used to transfer data. Aspera FASP technology can help you optimize data transfer in a wide area network (WAN). If you specify TRANSFERMETHOD=FASP, you override any TRANSFERMETHOD parameters that you specified on the DEFINE SERVER or UPDATE SERVER commands.
Restrictions:

Example: Delete all data extents from the target server

Delete all data extents in a directory-container storage pool on the target server. The directory-container storage pool that is named POOL1 on the source server is no longer protected by the directory-container storage pool on the target server. You might delete all extents to clean the directory-container storage pool on the target server that no longer protects the source server.
protect stgpool pool1 purgedata=all

Example: Protect a storage pool and specify a maximum number of data sessions

Protect a storage pool that is named SPOOL1 on the source server by backing up the data to a target replication server, TPOOL1. Specify a maximum of 20 data sessions.
update stgpool spool1 protectstgpool=tpool1
protect stgpool spool1 maxsessions=20

Example: Copy the storage pool data to tape

Protect a directory-container storage pool by copying the data to a container-copy storage pool on the same server. In this example, the directory-container storage pool is named SPOOL1 and the container-copy storage pool, which uses tape for storage, is named TAPES1.
  1. Update the directory-container storage pool to add TAPES1 as the local storage pool for protection. The TAPES1 storage pool must be a container-copy storage pool. Issue the following command:
    update stgpool spool1 protectlocalstgpools=tapes1
  2. Protect the data in the directory-container storage pool with a local copy by issuing the following command:
    protect stgpool type=local spool1
    The data is copied to the TAPES1 storage pool.
Table 1. Commands related to PROTECT STGPOOL
Command Description
CANCEL PROCESS Cancels a background server process.
DEFINE STGPOOL (container-copy) Define a container-copy storage pool that stores copies of data from a directory-container storage pool.
DEFINE STGPOOL (directory-container) Define a directory-container storage pool.
DEFINE STGPOOLDIRECTORY Defines a storage pool directory to a directory-container or cloud-container storage pool.
REPAIR STGPOOL Repairs a directory-container storage pool.
REPLICATE NODE Replicates data in file spaces that belong to a client node.
SET REPLSERVER Specifies a target replication server.