Versions Compared

Key

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

...

  • Slow: The slow volumes are shaped to 50IOPS, which is rather slow. It can be used to simulate very slow disks for instance.
  • Normal: This is the general purpose volume type. It is used by most tenants for their general purpose storage needs. It is shaped to 150 300 IOPS, which corresponds to a fast 10K 15K RPM HDD.
  • Fast: If a tenant needs more performance than the Normal type they can request a permission to create a "Fast" volume, which deliveres 300 600 IOPS.
  • VeryFast: Delivering 1K 1200 IOPS, the VeryFast volume can give a much greater performance than the other volume types. We should however be careful assigning this volume to our tenants, as it is capable to put some real load onto our ceph cluster if we have multiple of these volumes.

Give access to volume-types

The volume-types Fast and VeryFast are set as private volume-types, and we need to share these types with a project in case the project needs a volume of this type. If we want to give the project "DEMO_guide" access to volumes of the "Fast" flavor we can use the following command:

Code Block
titleGive access to volume-type
$ openstack volume type set --project DEMO_guide Fast

Revoke access to volume-types

To revoke the access given for a specifiv volume-type the following command can be used:

Code Block
titleRevoke access to volume-type
$ openstack volume type set --project DEMO_guide Fast

Quotas

The default quotas for cinder volumes are limiting the amount of volumes a project can create, but it does not limit any of the volume-types:

Code Block
titleCinder quotas
eigil@manager:~$$ openstack quota show default
+----------------------+---------+
| Field                | Value   |
+----------------------+---------+
    ....
| volumes              | 10      |
| volumes_Fast         | 0-1       |
| volumes_Normal       | -1      |
| volumes_Slow         | -1      |
| volumes_VeryFast     | 0-1       |
+----------------------+---------+

Which means that we normally does not allow a tenant to create anything else than Normal and Slow volumes. To give the tenant "eigil" access to create a faster volume one would change this tenants quotaWhen giving access to faster volume-types we should make sure to limit how may fast volumes can be created. For instance, we might want to allow a certain project create 10 volumes, but only one of the type Fast. In that case we can use the following command to limit the amount of Fast volumes for the project DEMO_guide:

Code Block
titleModify quota for volume types
eigil@manager:~$$ openstack quota set eigilDEMO_guide --volumes 1 --volume-type Fast

...

Code Block
titleDisplay updated quotas
eigil@manager:~$ openstack quota show eigilDEMO_guide
+----------------------+----------------------------------+
| Field                | Value                            |
+----------------------+----------------------------------+
   ... 
| volumes              | 10                               |
| volumes_Fast         | 1                                |
| volumes_Normal       | -1                               |
| volumes_Slow         | -1                               |
| volumes_VeryFast     | 0 -1                               |
+----------------------+----------------------------------+

...