update some wording and docs under tier commands (#4007)

This commit is contained in:
Harshavardhana
2022-03-01 17:12:26 -08:00
committed by GitHub
parent a7a9b65237
commit f13defa545
7 changed files with 54 additions and 54 deletions
+19 -19
View File
@@ -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
`,
}
+7 -8
View File
@@ -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
`,
}
+4 -4
View File
@@ -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
`,
}
+3 -3
View File
@@ -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
`,
}
+3 -3
View File
@@ -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
`,
}
+1 -1
View File
@@ -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
`,
}
+17 -16
View File
@@ -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