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

  1. Access the remote shell for the openstackclient pod from your workstation:

    $ oc rsh -n openstack openstackclient
  2. Use 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.
    • 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.
    • 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.

Verification

  1. The openstack share quota set command does not produce any output. Use the openstack share quota show command to verify that a quota was successfully updated.
  2. Exit the openstackclient pod:

    $ exit
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部