> [!CAUTION]
> You are currently viewing version 1.2 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions).

<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.2 (unsupported)</button>

- Supported versions:
- [v1.17 (latest)](https://docs.cloud.google.com/apigee/docs/hybrid/v1.17/expand-persistent-volumes.md.txt)
- [v1.16](https://docs.cloud.google.com/apigee/docs/hybrid/v1.16/expand-persistent-volumes.md.txt)
- [v1.15](https://docs.cloud.google.com/apigee/docs/hybrid/v1.15/expand-persistent-volumes.md.txt)
- [v1.14](https://docs.cloud.google.com/apigee/docs/hybrid/v1.14/expand-persistent-volumes.md.txt)
- [List of supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions)
- Unsupported versions:
- [v1.13](https://docs.cloud.google.com/apigee/docs/hybrid/v1.13/expand-persistent-volumes.md.txt)
- [v1.12](https://docs.cloud.google.com/apigee/docs/hybrid/v1.12/expand-persistent-volumes.md.txt)
- [v1.11](https://docs.cloud.google.com/apigee/docs/hybrid/v1.11/expand-persistent-volumes.md.txt)
- [v1.10](https://docs.cloud.google.com/apigee/docs/hybrid/v1.10/expand-persistent-volumes.md.txt)
- [v1.9](https://docs.cloud.google.com/apigee/docs/hybrid/v1.9/expand-persistent-volumes.md.txt)
- [v1.8](https://docs.cloud.google.com/apigee/docs/hybrid/v1.8/expand-persistent-volumes.md.txt)
- [v1.7](https://docs.cloud.google.com/apigee/docs/hybrid/v1.7/expand-persistent-volumes.md.txt)
- [v1.6](https://docs.cloud.google.com/apigee/docs/hybrid/v1.6/expand-persistent-volumes.md.txt)
- [v1.5](https://docs.cloud.google.com/apigee/docs/hybrid/v1.5/expand-persistent-volumes.md.txt)
- [v1.4](https://docs.cloud.google.com/apigee/docs/hybrid/v1.4/expand-persistent-volumes.md.txt)
- [v1.3](https://docs.cloud.google.com/apigee/docs/hybrid/v1.3/expand-persistent-volumes.md.txt)
- [v1.2](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/expand-persistent-volumes.md.txt)
- [v1.1](https://docs.cloud.google.com/apigee/docs/hybrid/v1.1/expand-persistent-volumes.html)

This process allows you to expand the persistent volumes used by the Apigee hybrid Cassandra
database to accommodate greater storage needs without needing to create new nodes just to provide
more storage.

The Apigee hybrid `cassandra` component uses persistent volumes to store data. The size
of the persistent volume is defined during installation and initial configuration. This initial
storage size is an immutable value and cannot be changed. Therefore, any new node added to the cluster
will use the same persistent volume size.

It is possible to increase the size of the existing persistent volume by making the changes directly on
the Persistent volume Claim, but new nodes will still use the smaller initial persistent volume size.

If your hybrid Cassandra database is nearing its storage capacity, you can use this procedure
to expand the existing persistent volumes and allow new nodes to expand their persistent volumes as
well.

## Process

1. Before proceeding with the Persistent volume expansion, make sure "`allowVolumeExpansion: true`" is set on the StorageClass when it is created:  

   ```
   kubectl get sc standard -o json | jq .allowVolumeExpansion true
   ```
2. Update the Volume size for the existing Persistent Volume Configuration (PVC):  

   ```
   kubectl -n apigee edit pvc 
   ```
3. Delete the statefulset without cascading deletion:  

   ```
   kubectl -n apigee delete sts --cascade=false apigee-cassandra
   ```
4. Update the overrides.yaml and apply the changes:  

   ```
   cassandra:
     storage:
       capacity: 20Gi
   ```

   ```
   ./apigeectl apply -c cassandra -f overrides.yaml
   ```
5. Rolling restart the Cassandra pods to reflect the new size. Delete the Cassandra pods one at a time. Verify that the statefulset is healthy before proceeding to the next nodes:  

       kubectl -n apigee delete pod apigee-cassandra-2
       kubectl -n apigee get sts
         NAME               READY   AGE
         apigee-cassandra   3/3     64s

6. Verify the Cassandra pods are coming up with the new volume size:  

   ```
   kubectl -n apigee get pvc
   ```