Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell ObjectScale 1.3 Administration Guide

Set up the ObjectScale to ObjectScale Replication

Steps

  1. Create source and destination buckets on the ObjectScale instances. You must enable versioning on both of the buckets.
  2. Attach the bucket policy to the source and destination buckets to ensure that the proper privileges are provided to the account and IAM service role.
  3. Use the ObjectScale fedsvc API to GET the provisioned object store:
    1. Set the environment variables:
      IAMSVC_ENDPOINT=$(kubectl get svc | awk '/-iam\s/{print $3}' )
      FEDSVC_ENDPOINT=$(kubectl get svc | awk '/fedsvc\s/{print $3}' )
      TOKEN=$(curl -ik -u root:ChangeMe http://$FEDSVC_ENDPOINT:9500/mgmt/login  | awk '/X-SDS-AUTH-TOKEN/{print $2; exit}')
      TOKEN=${TOKEN//[$'\r\n']}
    2. Use curl to issue the GET objectstores call:
      curl -k -X GET http://$FEDSVC_ENDPOINT:9500/fedsvc/objectstores -H "Content-Type: application/xml" -H "X-SDS-AUTH-TOKEN:$TOKEN"  | xmllint --format -
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <ObjectStores>
        <ObjectStore>
          <objectStoreId>OSTI5C2F43D1FF525835</objectStoreId>
          <objectScaleId>OSCI6081476846ED9A56</objectScaleId>
          <k8sNamespace>default</k8sNamespace>
          <objectStoreName>ecs-cluster</objectStoreName>
          <apiVersion>ecs.dellemc.com/v1beta1</apiVersion>
          <version>0.71.2</version>
          <status>Available</status>
          <initialized>false</initialized>
          <creationTimestamp>2021-04-22T10:09:06Z</creationTimestamp>
          <uid>15d61162-d218-4069-b09f-aaa86213098e</uid>
        </ObjectStore>
      </ObjectStores>
  4. Use the ObjectScale API to PUT the replication configuration. In this configuration, you must specify the ObjectScale and object store ID in the target bucket ARN.
    For example:
    SRC_BUCKET_NAME="source1"         # on object scale 1
    DEST_BUCKET_NAME="destination1"   # on object scale 2
    SCALE_ID="OSCIFFFFFFFFEBC3958D"   # object scale 2 object scale id
    STORE_ID="OSTIE5BDD14DBC63185E"   # object scale 2 object store id
    OSR_ROLE_ARN="urn:osc:iam::a7bf6bfe35ac4277a1a8857da98b3226:role/crrRole2"
     
    rm -f $HOME/.osr-rep-config
    cat >> $HOME/.osr-rep-config << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <ReplicationConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
      <Role>$OSR_ROLE_ARN</Role>
      <Rule>
        <Status>Enabled</Status>
        <Priority>1</Priority>
        <DeleteMarkerReplication>
          <Status>Enabled</Status>     # or Disabled
        </DeleteMarkerReplication>
        <Destination>
          <Bucket>arn:aws:s3:$SCALE_ID:$STORE_ID:$DEST_BUCKET_NAME</Bucket>
        </Destination>
      </Rule>
    </ReplicationConfiguration>
    EOF
     
    $HOME/s3curl/s3curl.pl --id=ecsflex --calculateContentMd5 --put=$HOME/.osr-rep-config -- -v http://$(kubectl get svc | awk '/-s3/{print $3}')/$SRC_BUCKET_NAME?replication
    $HOME/s3curl/s3curl.pl --id=ecsflex -- -v http://$(kubectl get svc | awk '/-s3/{print $3}')/$SRC_BUCKET_NAME?replication

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\