Transitioning data to Amazon S3 cloud service
You can transition data to a remote cloud service as part of the lifecycle configuration using storage classes to reduce cost and improve manageability. The transition is unidirectional and data cannot be transitioned back from the remote zone. This feature is to enable data transition to multiple cloud providers such as Amazon (S3).
Before you begin
- An IBM Storage Ceph with Ceph Object Gateway installed.
- User credentials for the remote cloud service, Amazon S3.
- Target path created on Amazon S3.
s3cmdinstalled on the bootstrapped node.- Amazon AWS configured locally to download data.
About this task
Use cloud-s3 as tier-type to configure the remote cloud S3
object store service to which the data needs to be transitioned. These do not need a data pool and
are defined in terms of the zonegroup placement targets.
Procedure
What to do next
- On the source cluster, verify if the data has moved to S3 with radosgw-admin lc
list command.
[ceph: root@host01 /]# radosgw-admin lc list [ { "bucket": ":awstestbucket:552a3adb-39e0-40f6-8c84-00590ed70097.54639.1", "started": "Mon, 26 Sep 2022 18:32:07 GMT", "status": "COMPLETE" } ] - Verify object transition at cloud
endpoint.
radosgw-admin bucket listFor example,[root@client ~]$ radosgw-admin bucket list [ "awstestbucket" ] - List the objects in the
bucket.
aws s3api list-objects --bucket awstestbucket --endpoint=AWS_ENDPOINT_URLFor example,[root@client ~]$ aws s3api list-objects --bucket awstestbucket --endpoint=http://10.0.209.002:8080 { "Contents": [ { "Key": "awstestbucket/test", "LastModified": "2022-08-25T16:14:23.118Z", "ETag": "\"378c905939cc4459d249662dfae9fd6f\"", "Size": 29, "StorageClass": "STANDARD", "Owner": { "DisplayName": "test-user", "ID": "test-user" } } ] } - List the contents of the S3 bucket.
s3cmd ls s3://awstestbucketFor example,[root@host01 ~]# s3cmd ls s3://awstestbucket 2022-08-25 09:57 0 s3://awstestbucket/test.txt
- Verify the file information.
s3cmd info s3://awstestbucket/test.txtFor example,[root@host01 ~]# s3cmd info s3://awstestbucket/test.txt s3://awstestbucket/test.txt (object): File size: 0 Last mod: Mon, 03 Aug 2022 09:57:49 GMT MIME type: text/plain Storage: CLOUDTIER MD5 sum: 991d2528bb41bb839d1a9ed74b710794 SSE: none Policy: none CORS: none ACL: test-user: FULL_CONTROL x-amz-meta-s3cmd-attrs: atime:1664790668/ctime:1664790668/gid:0/gname:root/md5:991d2528bb41bb839d1a9ed74b710794/mode:33188/mtime:1664790668/uid:0/uname:root
- Download data locally from Amazon S3.
- Configure AWS, using the aws configure command.For example,
[client@client01 ~]$ aws configure AWS Access Key ID [****************6VVP]: AWS Secret Access Key [****************pXqy]: Default region name [us-east-1]: Default output format [json]:
- List the contents of the AWS bucket.For example,
[client@client01 ~]$ aws s3 ls s3://dfqe-bucket-01/awstest PRE awstestbucket/
- Download the data from S3.For example,
[client@client01 ~]$ aws s3 cp s3://dfqe-bucket-01/awstestbucket/test.txt download: s3://dfqe-bucket-01/awstestbucket/test.txt to ./test.txt
- Configure AWS, using the aws configure command.