AIStor Files
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 limit

SIZE takes a unit, such as 20GiB. See Sizes.

Flags

FlagMeaning
--clearRemoves 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 20GiB
Quota on export `carol`
  Before  10 GiB
  After   20 GiB
  Used    1.2 GiB

Remove the limit:

mc files export quota myaistor carol --clear
Quota on export `carol`
  Before  20 GiB
  After   unlimited
  Used    1.2 GiB

How 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 mc warns when it sets one. It frees nothing, and writes fail with "disk quota exceeded" until usage drops below the limit.
  • quota sets 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.