Manage Block Storage service quotasAs an administrative user, you can update the OpenStack Block
Storage service quotas for a project. You can also update the quota
defaults for a new project.
Block Storage quotas
Property name
Defines the number of
gigabytes
Volume gigabytes allowed for each
tenant.
snapshots
Volume snapshots allowed for each
tenant.
volumes
Volumes allowed for each tenant.
View and update Block Storage service quotasAs an administrative user, you can view and update Block
Storage service quotas.List the default quotas for all projects, as
follows:$cinder quota-defaults TENANT_ID+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+To update a default value for a new project,
update the property in the
/etc/cinder/cinder.conf
file.View Block Storage service quotas for a project, as
follows:$cinder quota-show TENANT_NAMEFor example:$cinder quota-show tenant01+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 10 |
+-----------+-------+To update Block Storage service quotas, place
the tenant ID in a usable variable, as
follows:$tenant=$(keystone tenant-list | awk '/tenantName/ {print $2}')Update a particular quota value, as
follows:$cinder quota-update --quotaNameNewValuetenantIDFor example:$cinder quota-update --volumes 15 $tenant$cinder quota-show tenant01+-----------+-------+
| Property | Value |
+-----------+-------+
| gigabytes | 1000 |
| snapshots | 10 |
| volumes | 15 |
+-----------+-------+To clear per-tenant quota limits, use the
quota-delete command:$cinder quota-delete tenantIDTo show the current usage of a per-tenant quota use the
quota-usage command:$cinder quota-usage tenantID+-----------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+-----------+--------+----------+-------+
| gigabytes | 0 | 0 | 1000 |
| snapshots | 0 | 0 | 10 |
| volumes | 0 | 0 | 15 |
+-----------+--------+----------+-------+