# Prerequisite ## Cluster with 4 worker instances ## OADP installed in the openshift-adp namespace # To install OADP from master: #    a) Clone the OADP project #    b) Ensure you have admin rights and you are logged in to your OpenShift cluster #    c) $ make build-deploy && make deploy-olm ## Installing CephFS with OpenShift Data Foundation 1. Install OpenShift Data Foundation from OperatorHub https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.12/html-single/deploying_and_managing_openshift_data_foundation_using_red_hat_openstack_platform/index#installing-openshift-data-foundation-operator-using-the-operator-hub_internal-osp # NOTE: During install ensure that the Enable option is selected for the Console plugin 2. Create Storage System https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.12/html-single/deploying_and_managing_openshift_data_foundation_using_red_hat_openstack_platform/index#creating-an-openshift-data-foundation-service_internal-osp # NOTE: Select all 4 nodes, the capacity can be set to minimum, no need to enable encryption 3. For the CephFS and CephRBD follow the instructions to annotate relevant: a) VolumeSnapshotClass: https://github.com/openshift/oadp-operator/blob/master/docs/examples/datamover_advanced_voloptions.md#cephfs-volumesnapshotclass-and-storageclass b) StorageClass: https://github.com/openshift/oadp-operator/blob/master/docs/examples/datamover_advanced_voloptions.md#cephfs-volumesnapshotclass-and-storageclass 4. Install the latest VolSync from the Marketplace 5. Create secret which will be used later by the DPA: $ export OADP_NS="openshift-adp" $ export SECRET_NAME="my-restic-secret" $ cat < "$TMP_DIR/credentials-velero.yaml" [default] aws_access_key_id=${AWS_ACCESS_KEY} aws_secret_access_key=${AWS_SECRET_ACCESS_KEY} EOF $ oc create secret generic cloud-credentials -n "$OADP_NS" --from-file mycloud="${TMP_DIR}/credentials-velero.yaml" 11. Create new namespace to be backed up, with many PVCs NAMESPACE_PVCS="test" NO_PVCS=30 PVC_LABEL_NAME="oadp-test" PVC_LABEL_VALUE="tobedeleted" PVC_PREFIX_NAME="oadp-test" PVC_MIN_REQUESTED_SIZE="15Mi" storageClassName="ocs-storagecluster-cephfs" oc create ns "${NAMESPACE_PVCS}" oc create sa oadp-test-sa -n "${NAMESPACE_PVCS}" oc adm policy add-scc-to-user anyuid -z oadp-test-sa -n "${NAMESPACE_PVCS}" for ((i=1; i<=$NO_PVCS; i++)); do claimName="$PVC_PREFIX_NAME-$i" cat <