Adding a storage class

Add a new storage class to a placement target in IBM Storage Ceph Object Gateway and associate it with a data pool and compression settings.

Before you begin

Before you begin, make sure that you have the following prerequisites in place:
  • You have administrator privileges to run radosgw-admin commands.
  • The zonegroup and zone are already configured in the Ceph Object Gateway.
  • The required data pool (for example, default.rgw.glacier.data) exists in the Ceph cluster.
  • The radosgw-admin tool is installed and available on the system where you will run the commands.

Procedure

  1. Run the following command to add the new storage class to the zonegroup placement target.
    radosgw-admin zonegroup placement add \                                        
      --rgw-zonegroup default \                                                                  
      --placement-id default-placement \                                                         
      --storage-class STANDARD_IA
    For example,
    radosgw-admin zonegroup placement add \
      --rgw-zonegroup prod-zonegroup \
      --placement-id app-placement \
      --storage-class APP_LOGS
    This command updates the zonegroup's placement configuration to include the new STANDARD_IA storage class.
  2. Run the following command to define the zone-specific placement configuration for the storage class.
    radosgw-admin zone placement add \
      --rgw-zone DEFAULT \
      --placement-id DEFAULT_PLACEMENT \
      --storage-class STANDARD_IA \
      --data-pool DEFAULT.rgw.GLACIER.data \
      --compression lz4
    For example,
    radosgw-admin zone placement add \
      --rgw-zone prod-zone \
      --placement-id app-placement \
      --storage-class APP_LOGS \
      --data-pool prod.rgw.logs.data \
      --compression lz4
    This command maps the STANDARD_IA storage class to the specified data pool with LZ4 compression.

Results

The new storage class STANDARD_IA is now available for use in the specified placement target. You can use it when uploading objects via S3 headers or configure transitions using S3 Bucket Lifecycle rules.