# How-To Calculate Cinder's Provisioned Ratio

## Problem

You want to calculate the provisioned ratio for a Cinder Host in terms of the scheduler's capacity\_filter. Helpful in scenarios where Cinder Pool is exceeding the *max\_over\_subscription\_ratio*.

{% tabs %}
{% tab title="None" %}

```none
The ratio of provisioned capacity over total capacity 1.01 has exceeded the maximum over subscription ratio 1.00 on host UUID@Backend#IP:/cinder.
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All versions
* Cinder

## Answer

{% tabs %}
{% tab title="None" %}

```none
provisioned_ratio = ((backend_state.provisioned_capacity_gb + requested_size) / total)
```

{% endtab %}
{% endtabs %}

**For example:**

1. Consider a Cinder Host to have ***allocated\_capacity\_gb*** of 6740 GB and **total\_capacity\_gb** equal to 6881.28 GB. This information can be retrieved using the following command.

{% tabs %}
{% tab title="None" %}

```none
# cinder get-pools --detail| allocated_capacity_gb | 6740| max_over_subscription_ratio | 1.0| total_capacity_gb | 6881.28
```

{% endtab %}
{% endtabs %}

2. Let us consider a volume to be provisioned/migrated to be of size 200 GB.
3. The provisioned ratio calculated is to be 1.01 which higher than the subscription ratio of 1.0.

{% tabs %}
{% tab title="None" %}

```none
provisioned ratio = ((  6740 + 200 ) / 6881.28 ) = 1.01
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/how-to-calculate-cinders-provisioned-ratio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
