You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Guidelines

  • By default 200 GB of quota per project for the ceph-ec type for all projects
  • Explicitly set 0 GB for all other volume types
  • If more disk space is needed use the ceph-ec volume type 
  • Other volume types available:
    • ceph: ceph in replica 3 using hdd. This is exposed to all projects, but  it should be used only for old/existing volumes (in general no new volumes should be created using this volume type)
    • ceph-ssd-r3: ceph in replica 3 using ssd. This is exposed only to some projects

How to see quota usage

To check the cinder quota and the actual usage for a project:

# cinder quota-usage <project-id>

E.g.:

# cinder quota-usage b38a0dab349e42bdbb469274b20a91b4 
+----------------------------+--------+----------+-------+-----------+
| Type                       | In_use | Reserved | Limit | Allocated |
+----------------------------+--------+----------+-------+-----------+
| backup_gigabytes           | 0      | 0        | 1000  | 0         |
| backups                    | 0      | 0        | 10    | 0         |
| gigabytes                  | 414    | 0        | 700   | 0         |
| gigabytes___DEFAULT__      | 0      | 0        | -1    | 0         |
| gigabytes_ceph             | 239    | 0        | 500   | 0         |
| gigabytes_ceph-ec          | 175    | 0        | 200   | 0         |
| gigabytes_equallogic-unipd | 0      | 0        | 0     | 0         |
| groups                     | 0      | 0        | 10    | 0         |
| per_volume_gigabytes       | 0      | 0        | 5000  | 0         |
| snapshots                  | 0      | 0        | 10    | 0         |
| snapshots___DEFAULT__      | 0      | 0        | -1    | 0         |
| snapshots_ceph             | 0      | 0        | -1    | 0         |
| snapshots_ceph-ec          | 0      | 0        | -1    | 0         |
| snapshots_equallogic-unipd | 0      | 0        | -1    | 0         |
| volumes                    | 20     | 0        | 20    | 0         |
| volumes___DEFAULT__        | 0      | 0        | -1    | 0         |
| volumes_ceph               | 14     | 0        | -1    | 0         |
| volumes_ceph-ec            | 6      | 0        | -1    | 0         |
| volumes_equallogic-unipd   | 0      | 0        | -1    | 0         |
+----------------------------+--------+----------+-------+-----------+

How to set/change quota

Through the dashboard it is possible to only set the overall quota for a given project.

To set the quota for the different volume types you have to use the command line.

E.g. to set

  • 400 GB of overall quota
  • 200 GB limit for ceph volume type
  • 0 GB limit for the iscsi-infnpd backend
  • 0 GB for the ceph-ec backend
  • 200 GB for the equallogic-unipd volume type
  • 5000 GB limit for volume:
cinder quota-update --gigabytes 400 <project-id>
cinder quota-update --gigabytes 200 --volume-type ceph <project-id>
cinder quota-update --gigabytes 0 --volume-type ceph-ec <project-id>
cinder quota-update --gigabytes 0 --volume-type iscsi-infnpd <project-id>
cinder quota-update --gigabytes 200 --volume-type equallogic-unipd <project-id> 
cinder quota-update --per-volume-gigabytes 5000 <project-id>

How to expose the ceph-ssd-r3 volume type


cinder type-access-add --volume-type ceph-ssd-r3 --project-id <projectid>


Then set the quota

cinder quota-update --gigabytes ,GB> --volume-type ceph-ssd-r3 <project-id>



  • No labels