10.5.4. Updating the default quota values for projects


You can update the default value of quotas that apply to the Shared File System service (manila) in all projects that do not already have quota overrides.

You can update the default values for any of the following quota options:

Expand
表 10.3. Quota options
OptionDescription

--shares <shares>

Adds a new value for the shares quota

--snapshots <snapshots>

Adds a new value for the snapshots quota

--share-groups <share_groups>

Adds a new value for the share-groups quota

--share-group-snapshots <share_group_snapshots

Adds a new value for the share-group-snapshots quota

--share-networks <share_networks>

Adds a new value for the share-networks quota.

--share-replicas <share_replicas>

Adds a new value for the share-replicas quota

--gigabytes <gigabytes>

Adds a new value for the gigabytes quota

--snapshot-gigabytes <snapshot_gigabytes>

Adds a new value for the snapshot-gigabytes quota

--replica-gigabytes <replica_gigabytes>

Adds a new value for the replica-gigabytes quota

Procedure

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

    $ oc rsh -n openstack openstackclient
  2. View the usage statement of the openstack share quota update --class command:

    $ openstack share quota set --class
    usage: openstack share quota update --class [--shares <shares>] [--snapshots <snapshots>]
                                               [--gigabytes <gigabytes>]
                                               [--snapshot-gigabytes <snapshot_gigabytes>]
                                               [--share-networks <share_networks>]
                                               [--share-replicas <share_replicas>]
                                               [--replica-gigabytes <replica_gigabytes>]
                                                <class_name>
    注意

    The parameter <class_name> is a positional argument. It identifies the quota class for which the quotas are set. Set the value of this parameter to default. No other quota classes are supported.

  3. Use the information from the usage statement to update the default quotas. The following example updates the default quotas for shares and gigabytes:

    $ openstack share quota set --class default \
      --shares 30 \
      --gigabytes 512

Verification

  1. List the default quotas for all projects to verify that the default quota values have been reset:

    $ openstack share quota show <project> --defaults
  2. Exit the openstackclient pod:

    $ exit
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部