Manage exports
mc files export quota
Set or clear the byte limit of an export.
mc files export quota sets or clears an export's byte limit. A client sees the limit as
the size of the export, for example in df -h.
Syntax
mc files export quota ALIAS EXPORT SIZE # set the limit
mc files export quota ALIAS EXPORT --clear # remove the limitSIZE takes a unit, such as 20GiB. See Sizes.
Flags
| Flag | Meaning |
|---|---|
--clear | Removes the limit, so the export is unlimited. Do not give it a SIZE. |
Examples
Raise the limit to 20 GiB:
mc files export quota myaistor carol 20GiBQuota on export `carol`
Before 10 GiB
After 20 GiB
Used 1.2 GiBRemove the limit:
mc files export quota myaistor carol --clearQuota on export `carol`
Before 20 GiB
After unlimited
Used 1.2 GiBHow the limit applies
- A size of zero is refused, because it is usually a typing error. To remove the limit,
use
--clear. - A limit below current usage is allowed, and
mcwarns when it sets one. It frees nothing, and writes fail with "disk quota exceeded" until usage drops below the limit. quotasets only the byte limit. AIStor does not yet limit the number of files.- When the export's node does not answer, AIStor keeps the change and sends it later. See Changes that wait for a node.