Manage Global S3 Configurations using zms3config CLI

In a previous blog we introduced Zimbra’s new Storage Management, in this article we introduce you to zms3config a command line application that allows you to manage Zimbra’s S3 configuration.

The zms3config is the CLI utility to manage the Global S3 buckets which can be shared across mailstore nodes. Bucket configurations can be created from any node and it is available across the nodes.

Here are some of the important aspects of S3 Global Configurations:
  • The bucket name should be unique within the provider.
  • The same bucket can be used for multiple volumes, just follow different paths (check volume prefix option in zmvolume command) for each volume.
  • Following providers are supported: Amazon AWS, Ceph, Custom S3, EMC, NetApp-StorageGrid, OpenIO and Scality
Syntax:
zms3config {-a | -d | -l | -h} <options>
Options
Operations Long Name Short Name Description

Display Help

–help

-h

Display Help

Add new S3 config

–add

-a

Create a new S3 bucket with further options.

–storeProvider

-t

Store Provider to add s3BucketConfig, Valid Values are: AWS_S3, CEPH_S3, CUSTOM_S3, EMC_S3, STORAGE_GRID_S3, SCALITY_S3.

–bucketName

-bn

Name of the bucket

–accessKey

-ak

Access key

–secretKey

-sk

Secret key

–destPath

-dp

Destination path, root path in S3 bucket for storing volume data.

–region

-r

S3 bucket region

–url

-url

Endpoint URL for S3 bucket

Delete S3 bucket

–delete

-d

Delete S3 bucket

–bucketID

-bid

Id of a bucket, which is used to delete the S3 bucket.

List Bucket

–list

-l

List all buckets

Add S3 Configuration

  • To create an AWS bucket configuration with long option names, use the command:
    zms3config --add --storeProvider AWS_S3 --bucketName <bucket_name> --accessKey <secret_key> --destPath <destination_path> --region <valid_aws_region> --url <aws_valid_endpoint_url>
  • To create a Ceph bucket configuration with short option names, use the command:
    zms3config -a -t CEPH_S3 -bn <bucket_name> -ak <secret_key> -dp <destination_path> --url <valid_endpoint_url>
  • To create a Custom S3 bucket configuration with short option names, use the command:
    zms3config -a -t CUSTOM_S3 -bn <bucket_name> -ak <secret_key> -dp <destination_path> --url <valid_endpoint_url>
  • To create a EMC bucket configuration with short option names, use the command:
    zms3config -a -t EMC_S3 -bn <bucket_name> -ak <secret_key> -dp <destination_path> --url <valid_endpoint_url>
  • To create a StorageGrid bucket configuration with short option names, use the command:
    zms3config -a -t STORAGE_GRID_S3 -bn <bucket_name> -ak <secret_key> -dp <destination_path> --url <valid_endpoint_url>
  • To create a Scality bucket configuration with short option names, use the command:
    zms3config -a -t SCALITY_S3 -bn <bucket_name> -ak <secret_key> -dp <destination_path> --url <valid_endpoint_url>

List S3 bucket configuration

List all the S3 buckets which are configured on the setup.

zms3config -l

Delete S3 Configuration

Be careful when performing this operation since the bucket is used on global level and can be referred in multiple volumes across the nodes.
zms3config -d -bid <bucket_unique_id>

Further reading

https://zimbra.github.io/documentation/zimbra-10/adminguide.html#_manage_global_s3_configurations_using_zms3config_cli

, ,

No comments yet.

Leave a Reply

Copyright © 2022 Zimbra, Inc. All rights reserved.

All information contained in this blog is intended for informational purposes only. Synacor, Inc. is not responsible or liable in any manner for the use or misuse of any technical content provided herein. No specific or implied warranty is provided in association with the information or application of the information provided herein, including, but not limited to, use, misuse or distribution of such information by any user. The user assumes any and all risk pertaining to the use or distribution in any form of any subject matter contained in this blog.

Legal Information | Privacy Policy | Do Not Sell My Personal Information | CCPA Disclosures