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:
| Option | Description |
|---|---|
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
|
|
Adds a new value for the |
Procedure
Access the remote shell for the
openstackclientpod from your workstation:$ oc rsh -n openstack openstackclientView the usage statement of the
openstack share quota update --classcommand:$ 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 todefault. No other quota classes are supported.Use the information from the usage statement to update the default quotas. The following example updates the default quotas for
sharesandgigabytes:$ openstack share quota set --class default \ --shares 30 \ --gigabytes 512
Verification
List the default quotas for all projects to verify that the default quota values have been reset:
$ openstack share quota show <project> --defaultsExit the
openstackclientpod:$ exit