69.63. 共享配额集


为项目或项目/用户或项目/共享类型或类设置配额。

使用方法:

openstack share quota set [-h]
                                 [--class | --user <user> | --share-type <share-type>]
                                 [--shares <shares>] [--snapshots <snapshots>]
                                 [--gigabytes <gigabytes>]
                                 [--snapshot-gigabytes <snapshot-gigabytes>]
                                 [--share-networks <share-networks>]
                                 [--share-groups <share-groups>]
                                 [--share-group-snapshots <share-group-snapshots>]
                                 [--share-replicas <share-replicas>]
                                 [--replica-gigabytes <replica-gigabytes>]
                                 [--per-share-gigabytes <per-share-gigabytes>]
                                 [--force]
                                 <project/class>
Copy to Clipboard Toggle word wrap

Expand
表 69.253. positional 参数
valueSummary

<project/class>

项目(名称/ ID)或类(例如: default)。

Expand
表 69.254. 命令参数
valueSummary

-h, --help

显示帮助信息并退出

--class

将类配额更新为所有项目。与- user-share-type 相互排斥。

--user <user>

用户为其设置配额的名称或 ID。与 -share-type 和- class 相互排斥。

--share-type <share-type>

共享类型的名称或 ID,用于为其设置配额。与- 用户 和 - class 相互排斥。仅适用于 microversion >= 2.39

--shares <shares>

"shares" 配额的新值。

--snapshots <snapshots>

"snapshots" 配额的新值。

--gigabytes <gigabytes>

"gigabytes"配额的新值。

--snapshot-gigabytes <snapshot-gigabytes>

"snapshot-gigabytes" 配额的新值。

--share-networks <share-networks>

"share-networks"配额的新值。

--share-groups <share-groups>

"share-groups"配额的新值。仅适用于 microversion >= 2.40

--share-group-snapshots <share-group-snapshots>

"share-group-snapshots" 配额的新值。仅适用于 microversion >= 2.40

--share-replicas <share-replicas>

共享副本数量。仅适用于 microversion >= 2.53

--replica-gigabytes <replica-gigabytes>

总共享副本的容量。仅适用于 microversion >= 2.53

--per-share-gigabytes <per-share-gigabytes>

仅用于 microversion >= 2.62 的 per-share-gigabytes quota.Available 的新值

--force

强制更新配额。不适用于类更新。

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat