How to calculate the block storage usage in Openstack

Problem

  • How to calculate the block storage usage, free/total capacity, and oversubscription ratio using OpenStack Cinder metrics.

This article explains how to calculate the block storage usage from cinder get-pools --detail in OpenStack. It is applicable for any Cinder backend (e.g., Ceph, HPE 3PAR, NetApp, etc.) and helps you interpret key metrics related to block storage usage, provisioning, and backend status.

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher
  • Cinder

Key Terms

TermDescription
Total CapacityPhysical capacity of the backend storage.
Allocated CapacityActual space used on the backend storage (physical usage).
Free CapacityUnused portion of physical storage.
Provisioned CapacityTotal logical volume size requested by users. May exceed physical space if thin provisioning is used.
Oversubscription RatioHow much logical capacity is provisioned relative to what's physically used.
Max Oversubscription RatioConfigured upper limit of how much Cinder is allowed to oversubscribe the backend.

Answer

  • Source admin.rc file.
Bash
Copy
  • Run below command to list all the available cinder pools.
Bash
Copy
  • Example output for Cinder with Ceph as backend storage.
Bash
Copy

Calculations

  1. Allocated Capacity (Physical Usage)
Text
Copy
  1. Provisioned Capacity (Logical Usage)
Text
Copy
  1. Oversubscription Ratio (Actual)
Text
Copy
  1. Free and Total Capacity
    • If all the cinder pools use same backend storage pool.
Text
Copy

- If cinder pools use different backend storage pools.

Text
Copy
  1. Maximum Provisioned Capacity Allowed
Text
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard