From f13defa54577bca262908e58aa4339969a8e3d34 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 1 Mar 2022 17:12:26 -0800 Subject: [PATCH] update some wording and docs under tier commands (#4007) --- cmd/admin-tier-add.go | 38 +++++++++++++++--------------- cmd/admin-tier-edit.go | 15 ++++++------ cmd/admin-tier-info.go | 8 +++---- cmd/admin-tier-ls.go | 6 ++--- cmd/admin-tier-rm.go | 6 ++--- cmd/admin-tier-verify.go | 2 +- docs/minio-admin-complete-guide.md | 33 +++++++++++++------------- 7 files changed, 54 insertions(+), 54 deletions(-) diff --git a/cmd/admin-tier-add.go b/cmd/admin-tier-add.go index c9c68897..5ac939ca 100644 --- a/cmd/admin-tier-add.go +++ b/cmd/admin-tier-add.go @@ -98,35 +98,35 @@ var adminTierAddCmd = cli.Command{ {{.HelpName}} - {{.Usage}} USAGE: - {{.HelpName}} TIER_TYPE TARGET NAME [TIER_FLAGS] + {{.HelpName}} TYPE ALIAS NAME [FLAGS] + +TYPE: + Transition objects to supported cloud storage backend tier. Supported values are s3, azure and gcs. NAME: - Name of remote tier target. e.g WARM-TIER - -TIER_TYPE: - Cloud storage backend where objects specified by bucket lifecycle configuration can be transitioned to. - Supported values are s3, azure and gcs. - -TIER_FLAGS: - Tier type specific flags. + Name of the remote tier target. e.g WARM-TIER FLAGS: {{range .VisibleFlags}}{{.}} {{end}} EXAMPLES: - 1. Configure a new remote tier which transitions objects to a bucket in Azure Blob Storage. - {{.Prompt}} {{.HelpName}} azure myminio AZTIER --account-name foobar --account-key foobar123 --region us-east-1 --bucket testbucket --prefix testprefix/ + 1. Configure a new remote tier which transitions objects to a bucket in Azure Blob Storage: + {{.Prompt}} {{.HelpName}} azure myminio AZTIER --account-name ACCOUNT-NAME --account-key ACCOUNT-KEY \ + --bucket myazurebucket --prefix myazureprefix/ - 2. Configure a new remote tier which transitions objects to a bucket in AWS S3 with STANDARD storage class. - {{.Prompt}} {{.HelpName}} s3 myminio S3TIER --endpoint https://s3.amazonaws.com --access-key foobar \ - --secret-key foobar123 --region us-east-1 --bucket testbucket --prefix testprefix/ --storage-class "STANDARD" + 2. Configure a new remote tier which transitions objects to a bucket in AWS S3 with STANDARD storage class: + {{.Prompt}} {{.HelpName}} s3 myminio S3TIER --endpoint https://s3.amazonaws.com \ + --access-key ACCESSKEY --secret-key SECRETKEY --bucket mys3bucket --prefix mys3prefix/ \ + --storage-class "STANDARD" --region us-west-2 - 3. Configure a new remote tier which transitions objects to a bucket in Google Cloud Storage. - {{.Prompt}} {{.HelpName}} s3 myminio GCSTIER --credentials-file /path/to/credentials.json --region us-east-1 --bucket testbucket --prefix testprefix/ + 3. Configure a new remote tier which transitions objects to a bucket in Google Cloud Storage: + {{.Prompt}} {{.HelpName}} gcs myminio GCSTIER --credentials-file /path/to/credentials.json \ + --bucket mygcsbucket --prefix mygcsprefix/ - 4. Configure a new remote tier which transitions objects to a bucket in AWS S3 with STANDARD storage class using aws role. - {{.Prompt}} {{.HelpName}} s3 myminio S3TIER --endpoint https://s3.amazonaws.com --use-aws-role \ - --region us-east-1 --bucket testbucket --prefix testprefix/ --storage-class "STANDARD" + 4. Configure a new remote tier which transitions objects to a bucket in AWS S3 with STANDARD storage class using aws role: + {{.Prompt}} {{.HelpName}} s3 myminio S3TIER --endpoint https://s3.amazonaws.com \ + --use-aws-role --bucket mys3bucket --prefix mys3prefix/ --storage-class "STANDARD" \ + --region us-east-2 `, } diff --git a/cmd/admin-tier-edit.go b/cmd/admin-tier-edit.go index 62e31fc9..4e99018d 100644 --- a/cmd/admin-tier-edit.go +++ b/cmd/admin-tier-edit.go @@ -56,7 +56,7 @@ var adminTierEditFlags = []cli.Flag{ var adminTierEditCmd = cli.Command{ Name: "edit", - Usage: "edits a remote tier", + Usage: "update an existing remote tier configuration", Action: mainAdminTierEdit, OnUsageError: onUsageError, Before: setGlobalsFromContext, @@ -65,7 +65,7 @@ var adminTierEditCmd = cli.Command{ {{.HelpName}} - {{.Usage}} USAGE: - {{.HelpName}} TARGET NAME + {{.HelpName}} ALIAS NAME NAME: Name of remote tier. e.g WARM-TIER @@ -73,15 +73,14 @@ NAME: FLAGS: {{range .VisibleFlags}}{{.}} {{end}} - EXAMPLES: - 1. Update credentials for an existing Azure Blob Storage remote tier. - {{.Prompt}} {{.HelpName}} myminio AZTIER --account-key foobar-new123 + 1. Update credentials for an existing Azure Blob Storage remote tier: + {{.Prompt}} {{.HelpName}} myminio AZTIER --account-key ACCOUNT-KEY - 2. Update credentials for an existing AWS S3 compatible remote tier. - {{.Prompt}} {{.HelpName}} myminio S3TIER --access-key foobar-new --secret-key foobar-new123 + 2. Update credentials for an existing AWS S3 compatible remote tier: + {{.Prompt}} {{.HelpName}} myminio S3TIER --access-key ACCESS-KEY --secret-key SECRET-KEY - 3. Update credentials for an existing Google Cloud Storage remote tier. + 3. Update credentials for an existing Google Cloud Storage remote tier: {{.Prompt}} {{.HelpName}} myminio GCSTIER --credentials-file /path/to/credentials.json `, } diff --git a/cmd/admin-tier-info.go b/cmd/admin-tier-info.go index ef163504..cba41303 100644 --- a/cmd/admin-tier-info.go +++ b/cmd/admin-tier-info.go @@ -33,7 +33,7 @@ import ( var adminTierInfoCmd = cli.Command{ Name: "info", - Usage: "Displays per-tier statistics of all tier targets", + Usage: "display tier statistics", Action: mainAdminTierInfo, OnUsageError: onUsageError, Before: setGlobalsFromContext, @@ -42,17 +42,17 @@ var adminTierInfoCmd = cli.Command{ {{.HelpName}} - {{.Usage}} USAGE: - {{.HelpName}} TARGET + {{.HelpName}} ALIAS [NAME] FLAGS: {{range .VisibleFlags}}{{.}} {{end}} EXAMPLES: - 1. Prints per-tier statistics of all remote tier targets configured in myminio + 1. Prints per-tier statistics of all remote tier targets configured on 'myminio': {{.Prompt}} {{.HelpName}} myminio - 2. Print per-tier statistcs of given tier + 2. Print per-tier statistics of given tier name 'MINIOTIER-1': {{.Prompt}} {{.HelpName}} myminio MINIOTIER-1 `, } diff --git a/cmd/admin-tier-ls.go b/cmd/admin-tier-ls.go index 2a0dfbc5..0f342abb 100644 --- a/cmd/admin-tier-ls.go +++ b/cmd/admin-tier-ls.go @@ -28,7 +28,7 @@ import ( var adminTierListCmd = cli.Command{ Name: "ls", - Usage: "lists remote tier targets", + Usage: "lists configured remote tier targets", Action: mainAdminTierList, OnUsageError: onUsageError, Before: setGlobalsFromContext, @@ -37,14 +37,14 @@ var adminTierListCmd = cli.Command{ {{.HelpName}} - {{.Usage}} USAGE: - {{.HelpName}} TARGET + {{.HelpName}} ALIAS FLAGS: {{range .VisibleFlags}}{{.}} {{end}} EXAMPLES: - 1. List remote tier targets configured in myminio + 1. List remote tier targets configured on 'myminio': {{.Prompt}} {{.HelpName}} myminio `, } diff --git a/cmd/admin-tier-rm.go b/cmd/admin-tier-rm.go index 821ff24e..876d2778 100644 --- a/cmd/admin-tier-rm.go +++ b/cmd/admin-tier-rm.go @@ -24,7 +24,7 @@ import ( var adminTierRmCmd = cli.Command{ Name: "rm", - Usage: "removes an empty remote tier target", + Usage: "removes an empty remote tier", Action: mainAdminTierRm, OnUsageError: onUsageError, Before: setGlobalsFromContext, @@ -33,7 +33,7 @@ var adminTierRmCmd = cli.Command{ {{.HelpName}} - {{.Usage}} USAGE: - {{.HelpName}} TARGET NAME + {{.HelpName}} ALIAS NAME NAME: Name of remote tier target. e.g WARM-TIER @@ -42,7 +42,7 @@ FLAGS: {{range .VisibleFlags}}{{.}} {{end}} EXAMPLES: - 1. Remove an empty tier + 1. Remove an empty tier by name 'WARM-TIER': {{.Prompt}} {{.HelpName}} myminio WARM-TIER `, } diff --git a/cmd/admin-tier-verify.go b/cmd/admin-tier-verify.go index 92cbfb71..96bda931 100644 --- a/cmd/admin-tier-verify.go +++ b/cmd/admin-tier-verify.go @@ -42,7 +42,7 @@ FLAGS: {{range .VisibleFlags}}{{.}} {{end}} EXAMPLES: - 1. Verify if tier's config is valid. + 1. Verify if a tier config is valid. {{.Prompt}} {{.HelpName}} myminio WARM-TIER `, } diff --git a/docs/minio-admin-complete-guide.md b/docs/minio-admin-complete-guide.md index e4072cb7..4c1463c1 100644 --- a/docs/minio-admin-complete-guide.md +++ b/docs/minio-admin-complete-guide.md @@ -3,22 +3,23 @@ MinIO Client (mc) provides `admin` sub-command to perform administrative tasks on your MinIO deployments. ``` -service restart and stop all MinIO servers -update update all MinIO servers -info display MinIO server information -user manage users -group manage groups -policy manage policies defined in the MinIO server -config manage MinIO server configuration -heal heal disks, buckets and objects on MinIO server -profile generate profile data for debugging purposes -top provide top like statistics for MinIO -trace show http trace for MinIO server -console show console logs for MinIO server -prometheus manages prometheus config -kms perform KMS management operations -bucket manage buckets defined in the MinIO server - +service restart and stop all MinIO servers +update update all MinIO servers +info display MinIO server information +user manage users +group manage groups +policy manage policies defined in the MinIO server +replicate manage MinIO site replication +config manage MinIO server configuration +decommission, decom manage MinIO server pool decommissioning +heal heal disks, buckets and objects on MinIO server +prometheus manages prometheus config +kms perform KMS management operations +bucket manage buckets defined in the MinIO server +tier manage remote tier targets for ILM transition +top provide top like statistics for MinIO +trace show http trace for MinIO server +console show console logs for MinIO server ``` ## 1. Download MinIO Client