Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Guidelines

  • Volume types
    • ceph-ec: ceph in EC 4+2 using hdd. Exposed to all projects. 
    • 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
    By default 200 GB of quota per project for the ceph type for INFN
    • projects
  • By default 200 GB of quota per project for the equallogicceph-unipd ec type for the Unipd projects
  • Explicitly set 0 GB for all other volume types
  • 5000 GB of quota per volume. If some quota is given to iscsi-infnpd, this value must be set to 1000 GBall projects
  • If more disk space is needed use :
  • The equallogic-unipd volume type for Unipd projects
  • The ceph-ec type by default for INFN projects (the ceph and iscsi-infnpd volume types can also be used, in some special cases)the ceph-ec volume type 
  • ceph-ssd-r3 usable only for particular use cases and only for selected users

How to see quota usage

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

Code Block
languagebash
# cinder quota-usage <project-id>

E.g.:

bash
Code Block
language
# cinder quota-usage b38a0dab349e42bdbb469274b20a91b4 
+----------------------------+--------+----------+-------+-----------+
| Type                       | In_use | Reserved | Limit | Allocated |
+----------------------------+--------+----------+-------+-----------+
| backup_gigabytes           | 0      | 0        | 1000  | 0         |
| backups                    | 0      | 0        | 10    | 0         |
| gigabytes                  | 120414    | 0        | 700   | 300 0         |
| gigabytes_ceph___DEFAULT__      | 850      | 0        | -1    | 100 0         |
| gigabytes_glusterceph             | 239    | 0        | 500   | 0         |
| -1gigabytes_ceph-ec          | 175    | 0        | 200   | 0         |
| gigabytes_iscsi-infnpd | 35equallogic-unipd | 0      | 0        | 0     | 0         |
| groups                     | 0      | 0        | 200 10    | 0         |
| per_volume_gigabytes       | 0      | 0 | 1000       | 5000  | 0         |
| snapshots                  | 0      | 0        | 10    | 0         |
| snapshots___DEFAULT__      | 0      | 0        | -1    | 0         |
| snapshots_ceph             | 0      | 0        | -1    | 0         |
| snapshots_glusterceph-ec          | 0      | 0        | -1    | 0         |
| snapshots_iscsiequallogic-infnpdunipd | 0      | 0        | -1    | 0         |
| volumes                    | 20   8  | 0        | 20    | 0         |
| volumes___DEFAULT__        | 0      | 0        | -1    | 0         |
| volumes_ceph               | 614     | 0        | -1    | 0         |
| volumes_gluster | 0ceph-ec            | 6      | 0        | -1    | 0         |
| volumes_iscsiequallogic-infnpdunipd   | 20      | 0        | -1    | 0         |
+----------------------------+--------+----------+-------+-----------+

How to set/change quota

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

...

Code Block
languagebash
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>

NB: Please note that the overall quota (gigabytes) also must be updated. Its value must be the sum of the quotas of all backends.

How to expose the ceph-ssd-r3 volume type


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


Then set the quota

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

...