Resize PVC using a spreadsheet

Last Updated : Sep 28, 2022 |

As an administrator, you can use this feature to change the Kubernetes Persistent Volume Claim (PVC) disk size as part of solution upgrade or PVC resize-only upgrade using a spreadsheet.

When resizing, a new PVC is created that is the size specified in the spreadsheet and the existing application data is then copied into the new PVC before removing the old PVC.

Note:

Services using the specified PVCs are taken offline during resize operations so a maintenance window is recommended.

This process is particularly beneficial if you need to make a lot of changes to PVC disk sizes concurrently.

Disk space considerations

  • The cluster storage provider must have adequate free space for each resized PVC.

    For example, when resizing 3 PVCs and the existing size of each PVC is 25GB and the desired destination size of each PVC is 40GB, the storage provider requires 120GB of free space. After the command completes, an additional 45GB is consumed.

  • If multiple PVCs are specified for resize in a single command, they are executed concurrently. If insufficient storage is available to execute all commands concurrently, resize each PVC individually.

    In the example, 120GB of free space is required at the time of the command. If PVCs are resized individually, the required free space is 70GB.

For details about resizing a PVC disk using the ccm resizePVC command, see ccm resizePVC command.