Optional: Estimating how much storage to allocate for backups

You can estimate how much storage to allocate to backups that you create with the Cloud Pak for Data OADP backup and restore utility.

Before you begin

OADP must be installed and configured. Note the project (namespace) where OADP is installed.

About this task

Note: Do not use this feature in production environments.
Required role
You must have the Cluster administrator role in Cloud Pak for Data.

To use this feature, you must install the cpdbr-agent in the Red Hat® OpenShift cluster. The cpdbr-agent deploys the node agents to the cluster. The node agents must be run in privileged mode.

Procedure

  1. Log in to Red Hat OpenShift Container Platform as a cluster administrator.
    ${OC_LOGIN}
    Remember: OC_LOGIN is an alias for the oc login command.
  2. Install the cpdbr-agent by running the following commands:
    cpd-cli oadp client config set namespace=<oadp_project>
    cpd-cli oadp client config set cpd-namespace=${PROJECT_CPD_INST_OPERANDS}
    cpd-cli oadp install --component=cpdbr-agent
  3. Export the following environment variable:
    export CPDBR_ENABLE_FEATURES=volume-util
  4. Estimate how much storage you need to allocate to a backup by running the following command:
    cpd-cli oadp du-pv