mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
0ce4b0f14b
Replace upstream docs.min.io references with the SILO documentation domain and remove the upstream community path prefix. Co-authored-by: waterkip <6317502+waterkip@users.noreply.github.com>
31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
# Bucket Quota Configuration Quickstart Guide [](https://slack.min.io) [](https://hub.docker.com/r/minio/minio/)
|
|
|
|

|
|
|
|
Buckets can be configured to have `Hard` quota - it disallows writes to the bucket after configured quota limit is reached.
|
|
|
|
## Prerequisites
|
|
|
|
- Install MinIO - [MinIO Quickstart Guide](https://silo.pigsty.io/operations/deployments/baremetal-deploy-minio-on-redhat-linux.html#procedure).
|
|
- [Use `mc` with MinIO Server](https://silo.pigsty.io/reference/minio-mc.html#quickstart)
|
|
|
|
## Set bucket quota configuration
|
|
|
|
### Set a hard quota of 1GB for a bucket `mybucket` on MinIO object storage
|
|
|
|
```sh
|
|
mc admin bucket quota myminio/mybucket --hard 1gb
|
|
```
|
|
|
|
### Verify the quota configured on `mybucket` on MinIO
|
|
|
|
```sh
|
|
mc admin bucket quota myminio/mybucket
|
|
```
|
|
|
|
### Clear bucket quota configuration for `mybucket` on MinIO
|
|
|
|
```sh
|
|
mc admin bucket quota myminio/mybucket --clear
|
|
```
|