Resizing a PVC

Last Updated : Sep 01, 2022 |
Prolog information
You can use this procedure to resize the disk space allocated to a service after it is deployed or during the initial installation. This procedure preserves the original data of a deployed service.
The resize command stops any running containers from using the PVCs. This command creates destination PVCs and copies the existing PVC data to the new PVC. The resize command deletes the original PVC and re-creates it, using the newly-created copy. After the re-creation, any services using the PVC are restarted.
If you have sufficient free space, specify multiple PVCs. This results in faster processing as the commands to scale down and scale up the deployments are only executed once.
Important:
  • Resizing is supported only on VMware.
  • Only Filesystem type PVC volumes are supported.
  • Do not run installation or upgrade tasks concurrently.
Before you begin
Ensure you know the names of the PVCs that are to be restored.
To retrieve the list of PVCs, run the kubectl get pvc -A command.
Note:
Services using the specified PVCs are taken offline during resizing operations.
  1. Log in to Cluster Control Manager as a user customer.
    ADDITIONAL INFORMATION:
    You require root privilege to run the ccm resizePVC command.
  2. To retrieve the list of PVCs, run the kubectl get pvc -A command.
  3. Run the ccm resizePVC <NewSize(Mi|Gi)> <pvc-name-1> <pvc-name-2> <pvc-name-n> command to resize the PVC.
    ADDITIONAL INFORMATION:
    This command resizes the disk space allocated to a service after the service is deployed.
    For example: ccm resizePVC 40Gi datadir-0-eventing-kafka-cp-kafka-0 datadir-0-eventing-kafka-cp-kafka-1 datadir-0-eventing-kafka-cp-kafka-2
  4. Run ccm smoke-test to gauge when the service is recovered from the requested procedure.
    ADDITIONAL INFORMATION:
    If the smoke-test continuously fails for more than an hour, contact Avaya Support for assistance.