Creating and modifying a sync group pipe
Define pipes to specify which buckets can use your configured data flows and the properties that are associated with those data flows. Use the sync group pipe create command to create or modify the sync group pipe.
Before you begin
-
A running IBM Storage Ceph cluster.
-
Root or
sudoaccess. -
The Ceph Object Gateway is installed.
About this task
As a storage administrator, you can use the sync group pipe create command to create pipes. These pipes are custom sync group data flows between specific buckets or groups of buckets, or between specific zones or groups of zones. The sync group pipe create command uses the options that are listed in Table 1.
| Option | Description | Required/Optional |
|---|---|---|
| --bucket |
Name of the bucket to which sync policy needs to be configured. Used only in bucket-level sync policy. |
Optional |
| --group-id |
ID of the sync group |
Required |
| --pipe-id |
ID of the pipe |
Required |
| --source-zones |
Zones that send data to the sync group. Use single quotation marks (') for value. Use commas to
separate multiple zones. Use the wildcard |
Required |
| --source-bucket |
Bucket or buckets that send data to the sync group. If bucket name is not mentioned, then
|
Optional |
| --source-bucket-id |
ID of the source bucket. If this option is not specified, then |
Optional |
| --dest-zones |
Zone or zones that receive the sync data. Use single quotation marks (') for value. Use commas to
separate multiple zones. Use the wildcard |
Required |
| --dest-bucket |
Bucket or buckets that receive the sync data. If bucket name is not mentioned, then
|
Optional |
| --dest-bucket-id |
ID of the destination bucket. If this option is not specified, then |
Optional |
| --prefix |
Bucket prefix. Use the wildcard |
Optional |
| --prefix-rm |
Remove object prefix from filtering. Do not use bucket prefix for filtering. |
Optional |
| --tags-add |
Comma-separated list of key=value pairs. |
Optional |
| --tags-rm |
Removes one or more key=value pairs of tags. |
Optional |
| --dest-owner |
Destination owner of the objects from source. |
Optional |
| --storage-class |
Destination storage class for the objects from source. |
Optional |
| --mode |
Use |
Optional |
| --uid |
Used for permissions validation in user mode. Specifies the user ID under which the sync operation will be issued. |
Optional |
enable or disable state respectively, and create a pipe
for each bucket with --source-bucket and --dest-bucket with its
bucket name or with bucket-id i.e, --source-bucket-id and
--dest-bucket-id.Procedure
create command is also used to modify a command by creating the sync
group pipe with only the relevant
options.radosgw-admin sync group pipe create --bucket=BUCKET_NAME --group-id=GROUP_ID --pipe-id=PIPE_ID --source-zones='ZONE_NAME','ZONE_NAME2'... --source-bucket=SOURCE_BUCKET1 --source-bucket-id=SOURCE_BUCKET_ID --dest-zones='ZONE_NAME1_','ZONE_NAME2'... --dest-bucket=DESTINATION_BUCKET1 --dest-bucket-id=DESTINATION_BUCKET_ID --prefix=SOURCE_PREFIX --prefix-rm --tags-add=KEY1=VALUE1,KEY2=VALUE2, ... --tags-rm=KEY1=VALUE1,KEY2=VALUE2, ... --dest-owner=OWNER_ID --storage-class=STORAGE_CLASS --mode=USER --uid=USER_ID