



DEFINE STGPOOL (Define a cloud-container storage pool)
Use this command to define a container storage pool in a cloud environment. This type of storage pool is used for data deduplication. Cloud-container storage pools are not supported on Linux on Power Systems™ and Linux on System z®.
The preferred way to define and configure a cloud-container storage pool is to use the Operations Center. For instructions and tips for the Operations Center and the command-line interface, see Configuring a cloud-container storage pool for data storage.
Privilege class
To issue this command, you must have system privilege.
Syntax
>>-DEFine STGpool--pool_name--STGType--=--CLoud-----------------> .-POoltype--=--PRimary-. >--+----------------------+--+-----------------------------+----> '-POoltype--=--PRimary-' '-DESCription--=--description-' .-CLOUDType--=--SWift---------. >--+-----------------------------+------------------------------> '-CLOUDType--=--+-S3--------+-' +-SWift-----+ +-SOftlayer-+ '-V1Swift---' >--+------------------------+--IDentity--=--cloud_identity------> '-CLOUDUrl--=--cloud_url-' >--PAssword--=--password----------------------------------------> .-CLOUDLocation--=--OFfpremise-----. >--+----------------------------------+-------------------------> '-CLOUDLocation--=--+-OFfpremise-+-' '-ONpremise--' >--+----------------------------+-------------------------------> '-BUCKETName--=--bucket_name-' .-ACCess--=--READWrite-------. >--+----------------------------+-------------------------------> '-ACCess--=--+-READWrite---+-' +-READOnly----+ '-UNAVailable-' .-MAXWriters--=--NOLimit-------------. >--+------------------------------------+-----------------------> '-MAXWriters--=--+-NOLimit---------+-' '-maximum_writers-' .-REUsedelay--=--1----. .-ENCRypt--=--Yes---------. >--+---------------------+--+-------------------------+---------> '-REUsedelay--=--days-' | (1) | '-ENCRypt--=--+-Yes-+-----' '-No--' .-COMPRession--=--Yes-----. >--+-------------------------+--------------------------------->< '-COMPRession--=--+-Yes-+-' '-No--'
- The default value of the ENCRYPT parameter is conditional. The server encrypts data by default if the CLOUDLOCATION parameter is set to OFFPREMISE. If the CLOUDLOCATION parameter is set to ONPREMISE, the default is No.
Parameters
- pool_name (Required)
- Specifies the cloud storage pool to define. This parameter is required. The maximum length of the name is 30 characters.
- STGType=CLoud (Required)
- Specifies the type of storage that you want to define for a cloud storage pool. To ensure that
the storage pool can be used in a cloud environment, you must specify
STGTYPE=CLOUD. Tip: To optimize performance, set up one or more local storage directories to temporarily hold data that is moving to the cloud. After you define a cloud-container storage pool, use the DEFINE STGPOOLDIRECTORY command to assign local directories to the cloud-container storage pool.
- POoltype=PRimary
- Specifies that you want to define a primary storage pool. This parameter is optional.
- DESCription
- Specifies a description of the cloud storage pool. This parameter is optional. The maximum length of the description is 255 characters. Enclose the description in quotation marks if it contains blank characters.
- CLOUDType
- Specifies the type of cloud environment where you are configuring the storage pool.
- You can specify one of the following values:
- S3
- Specifies that the storage pool uses a Simple Storage Service (S3) cloud computing system, such as Cleversafe® or Amazon S3. If you define a storage pool as using S3 with this parameter, you cannot later change the storage pool type by using the UPDATE STGPOOL command.
- SOftlayer
- Specifies that the storage pool uses a SoftLayer® cloud computing system.
- SWift
- Specifies that the storage pool uses an OpenStack Swift cloud computing system. This value also specifies that the storage pool uses Version 2 of the protocol for authentication to the cloud. The URL of the cloud usually contains the version number of the protocol it is using.
- V1Swift
- Specifies that the storage pool uses an OpenStack Swift cloud computing system. This value also specifies that the storage pool uses Version 1 of the protocol for authentication to the cloud. The URL of the cloud usually contains the version number of the protocol it is using.
- This parameter is optional. If you do not specify the parameter, the default value, SWIFT, is used.
- CLOUDUrl
- Specifies the URL of the cloud environment where you are configuring the storage pool. Based on
your cloud provider, you can use a region endpoint URL, an accesser IP address, a public
authentication endpoint, or a similar value for this parameter. Be sure to include the protocol,
such as https:// or http:// at the beginning of the
URL. The maximum length of the web address is 870 characters. The CLOUDURL
parameter is not validated until the first backup begins.Tip: To use more than one Cleversafe accesser, list the accesser IP addresses separated by a vertical bar (|), with no spaces, such as CLOUDURL=<accesser_URL1>|<accesser_URL2>|<accesser_URL3>.
- This parameter is required if you specify the following CLOUDType values:
- S3 (Simple Storage Service)
- SOftlayer
- SWift
- V1Swift
- IDentity (Required)
- Specifies the user ID for the cloud that is specified in the STGTYPE=CLOUD parameter. Based on your cloud provider, you can use an Access Key ID, a user name, a tenant name and user name, or a similar value for this parameter. This parameter is required. The maximum length of the user ID is 255 characters.
- PAssword (Required)
- Specifies the password for the cloud that is specified in the STGType=CLoud parameter. Based on your cloud provider, you can use a Secret Access Key, an API Key, a password, or a similar value for this parameter. This parameter is required. The maximum length of the password is 255 characters. The IDENTITY and PASSWORD parameters are not validated until the first backup begins.
- CLOUDLocation
- Specifies the physical location of the cloud that is specified in the CLoud
parameter. This parameter is optional. The default value is OFFPREMISE. You can
specify one of the following values:
- OFfpremise
- ONpremise
- BUCKETName
- Specifies the name for an S3 bucket or a Cleversafe vault to use with this storage pool, instead of using the default bucket name or vault name. S3 buckets and Cleversafe vaults are used in the same manner as containers in a cloud-container storage pool. This parameter is optional, and is valid only if you specify CLOUDTYPE=S3. If the name that you specify does not exist, the server creates a bucket or vault with the specified name before using the bucket or vault. Follow the naming restrictions for your cloud provider when specifying this parameter. Review the permissions for the bucket or vault and make sure that the credentials for this storage pool have permission to read, write, list, and delete objects in this bucket or vault. If you do not have the ability to change or view the permissions, and you have not already written data to this storage pool, use the UPDATE STGPOOL command with the BUCKETNAME parameter to use a different bucket or vault.
- ACCess
- Specifies how client nodes and server processes access the cloud storage pool. This parameter is
optional. The default value is READWRITE. You can specify one of the following
values:
- READWrite
- Specifies that client nodes and server processes can read and write to the cloud storage pool. This value is the default.
- READOnly
- Specifies that client nodes and server processes can read only from the cloud storage pool.
- UNAVailable
- Specifies that client nodes and server processes cannot access the cloud storage pool.
- MAXWriters
- Specifies the maximum number of writing sessions that can run concurrently on the cloud storage
pool. Specify a maximum number of writing sessions to control the performance of the cloud storage
pool from negatively impacting other system resources. This parameter is optional. The default value
is NOLimit. You can specify one of the following values:
- NOLimit
- Specifies that no maximum size limit exists for the number of writers that you can use. This value is the default.
- maximum_writers
- Limits the maximum number of writers that you can use. Specify an integer in the range 1 - 99999.
- REUsedelay
- Specifies the number of days that must elapse after all deduplicated extents are removed from a
cloud storage pool. This parameter controls the duration that deduplicated extents are associated
with a cloud storage pool. When the value that is specified for the parameter expires, the
deduplicated extents are deleted from the cloud storage pool. The default is 1. You
can specify one of the following values:
- 1
- Specifies that deduplicated extents are deleted from a cloud storage pool after one day. This value is the default.
- days
- You can specify an integer in the range 0 - 9999.
Tip: Set this parameter to a value that is greater than the number specified for the SET DRMDBBACKUPEXPIREDAYS command. If you set this parameter to a higher value, you can ensure that when you restore the database to an earlier level, the references to files in the cloud storage pool are still valid. - ENCRypt
- Specifies whether the server encrypts client data before it writes it to the storage pool. You
can specify the following values:
- Yes
- Specifies that client data is encrypted by the server.
- No
- Specifies that client data is not encrypted by the server.
This parameter is optional. The default depends on the physical location of the cloud, which is specified by the CLOUDLOCATION parameter. If the cloud is off premise, the server encrypts data by default. If the cloud is on premises, the server does not encrypt data by default.
- COMPRession
- Specifies whether data is compressed in the storage pool. This parameter is optional. You can
specify one of the following values:
- No
- Specifies that data is not compressed in the storage pool.
- Yes
- Specifies that data is compressed in the storage pool. This is the default.
Example 1: Define an OpenStack Swift cloud storage pool
Define an OpenStack Swift cloud storage pool that is named STGPOOL1.define stgpool stgpool1 stgtype=cloud
cloudtype=swift cloudurl=http://123.456.789:5000/v2.0
identity=admin:admin password=password description="OpenStack Swift cloud"
Example 2: Define a cloud primary storage pool
Define a cloud primary storage pool that is named STGPOOL1.define stgpool stgpool1 stgtype=cloud
cloudtype=swift cloudurl=http://123.456.789:5000/v2.0
identity=admin:admin password=password pooltype=primary
Example 3: Define a cloud storage pool with read only access
Define a cloud storage pool that is named STGPOOL1 with read only access.define stgpool stgpool1 stgtype=cloud
cloudtype=swift cloudurl=http://123.456.789:5000/v2.0
identity=admin:admin password=password access=readonly
Example 4: Define a cloud storage pool with 99 writing sessions
Define a cloud storage pool that is named STGPOOL1 with 99 writing sessions.define stgpool stgpool1 stgtype=cloud
cloudtype=swift cloudurl=http://123.456.789:5000/v2.0
identity=admin:admin password=password maxwr=99
Example 5: Define a cloud storage pool in which deduplicated extents are deleted after two days
Define a cloud storage pool that is named STGPOOL1 and deduplicated extents are deleted after two days.define stgpool stgpool1 stgtype=cloud
cloudtype=swift cloudurl=http://123.456.789:5000/v2.0
identity=admin:admin password=password reusedelay=2
