content/operate/kubernetes/7.8.6/re-clusters/expand-pvc.md
This article outlines steps to increase the size of the persistent volume claim for your Redis Enterprise cluster (REC).
{{<note>}} This feature is only supported in versions 7.4.2-12 and above. {{</note>}}
PersistentVolumeClaims (PVC) are created by the Redis Enterprise operator and used by the RedisEnterpriseCluster (REC). PVCs are created with a specific size and can be expanded with the following steps, if the underlying storage class supports it.
This process involves deleting and recreating the REC StatefulSet with a larger persistent volume size. The pods owned by the StatefulSet are not restarted or affected by the deletion and recreation process, except when they are left without an owner momentarily.
{{<note>}}Shrinking (reducing the size) of your PVC is not allowed. This process only allows you to expand (size up) your PVC.{{</note>}}
{{<warning>}}Do not change any other REC fields related to the StatefulSet while resizing is in progress. {{</warning>}}
allowVolumeExpansion: true.{{<warning>}} OpenShift users should be aware that (ClusterResourceQuota) can limit the PVC expansion. Check your quota before resizing using oc describe clusterresourcequota <quota-name>.{{</warning>}}
Enable the REC persistent volume resize flag.
spec:
persistentSpec:
enablePersistentVolumeResize: true
Set the value of volumeSize to your desired size.
spec:
persistentSpec:
enablePersistentVolumeResize: true
volumeSize: <new-size>Gi
Apply the changes to the REC, replacing <your-rec.yaml> with the name of your REC.
kubectl apply -f <your-rec.yaml>
After applying the REC changes, the PVCs will begin to expand to the new size.
Once all the PVCs finish the resizing process, the operator will delete and recreate the StatefulSet with the new volume size.
You can track the progress by monitoring the status of the REC and PersistentVolumeClaim objects.
The REC status will correspond to the status of one or more PVCs, and will reflect if the resizing is successful or failed.
While the resizing is in progress, the status will be:
status:
persistenceStatus:
status: Resizing
succeeded: 2/3
When the resizing is complete, the status becomes Provisioned and the new volume size is available for use by the REC pods.
status:
persistenceStatus:
status: Provisioned
succeeded: 3/3
If an error occurs during this process:
Examine the status and events of the REC and PVC objects.
kubectl describe pvc
kubectl get events
Examine the logs of the operator pods.
kubectl logs <operator_pod_name>