10.5.2. Updating quotas for projects, users, and share types
You can update quotas for all project users, a specific project user, or a share type in a project by using the openstack share quota set command. You can only set share-type quotas at the project level, not for specific project users.
In the following procedure, enter the values carefully. The Shared File Systems service does not detect or report incorrect values.
Procedure
Access the remote shell for the
openstackclientpod from your workstation:$ oc rsh -n openstack openstackclientUse the following commands to update quotas:
Update quotas for all users in a project:
$ openstack share quota set <project_id> \ [--shares <share_quota> \ --gigabytes <gigabytes_quota> \ …]-
Replace
<project_id>with the project ID. This value must be the project ID, not the project name. -
Replace
<share_quota>with the total number of shares you want to set as the quota for the project. -
Replace
<gigabytes_quota>with the total size in GB that you want to allocate for all shares in the project.
-
Replace
Update quotas for a specific user in a project:
$ openstack share quota set <project_id> \ --user <user_id> \ [--shares <share_quota> \ --gigabytes <gigabytes_quota> \ …]-
Replace
<user_id>with the user ID. The value must be the user ID, not the username. -
Replace
<share_quota>with the total number of shares you want to set as the quota for the user in the project. -
Replace
<gigabytes_quota>with the total size in GB that you want to allocate for the user’s shares in the project.
-
Replace
Update quotas for all users who use a specific share type:
$ openstack share quota set <project_id> \ --share-type <share_type> \ [--shares <share_quota> --gigabytes <gigabytes_quota> \ …]-
Replace
<share_type>with the share type you want to apply the quota to. -
Replace
<share_quota>with the total number of shares you want to set as the quota for the share type. -
Replace
<gigabytes_quota>with the total size in GB that you want to allocate for the shares that are that share type in the project.
-
Replace
Verification
-
The
openstack share quota setcommand does not produce any output. Use theopenstack share quota showcommand to verify that a quota was successfully updated. Exit the
openstackclientpod:$ exit