$ oc delete vsb -n <app_namespace> --all
For OADP 1.1 Data Mover, you must perform a data cleanup after you perform a backup.
The cleanup consists of deleting the following resources:
Snapshots in a bucket
Cluster resources
Volume snapshot backups (VSBs) after a backup procedure that is either run by a schedule or is run repetitively
Data Mover might leave one or more snapshots in a bucket after a backup. You can either delete all the snapshots or delete individual snapshots.
To delete all snapshots in your bucket, delete the /<protected_namespace>
folder that is specified in the Data Protection Application (DPA) .spec.backupLocation.objectStorage.bucket
resource.
To delete an individual snapshot:
Browse to the /<protected_namespace>
folder that is specified in the DPA .spec.backupLocation.objectStorage.bucket
resource.
Delete the appropriate folders that are prefixed with /<volumeSnapshotContent name>-pvc
where <VolumeSnapshotContent_name>
is the VolumeSnapshotContent
created by Data Mover per PVC.
OADP 1.1 Data Mover might leave cluster resources whether or not it successfully backs up your container storage interface (CSI) volume snapshots to a remote object store.
You can delete any VolumeSnapshotBackup
or VolumeSnapshotRestore
CRs that remain in your application namespace after a successful backup and restore where you used Data Mover.
Delete cluster resources that remain on the application namespace, the namespace with the application PVCs to backup and restore, after a backup where you use Data Mover:
$ oc delete vsb -n <app_namespace> --all
Delete cluster resources that remain after a restore where you use Data Mover:
$ oc delete vsr -n <app_namespace> --all
If needed, delete any VolumeSnapshotContent
resources that remain after a backup and restore where you use Data Mover:
$ oc delete volumesnapshotcontent --all
If your backup and restore operation that uses Data Mover either fails or only partially succeeds, you must clean up any VolumeSnapshotBackup
(VSB) or VolumeSnapshotRestore
custom resource definitions (CRDs) that exist in the application namespace, and clean up any extra resources created by these controllers.
Clean up cluster resources that remain after a backup operation where you used Data Mover by entering the following commands:
Delete VSB CRDs on the application namespace, the namespace with the application PVCs to backup and restore:
$ oc delete vsb -n <app_namespace> --all
Delete VolumeSnapshot
CRs:
$ oc delete volumesnapshot -A --all
Delete VolumeSnapshotContent
CRs:
$ oc delete volumesnapshotcontent --all
Delete any PVCs on the protected namespace, the namespace the Operator is installed on.
$ oc delete pvc -n <protected_namespace> --all
Delete any ReplicationSource
resources on the namespace.
$ oc delete replicationsource -n <protected_namespace> --all
Clean up cluster resources that remain after a restore operation using Data Mover by entering the following commands:
Delete VSR CRDs:
$ oc delete vsr -n <app-ns> --all
Delete VolumeSnapshot
CRs:
$ oc delete volumesnapshot -A --all
Delete VolumeSnapshotContent
CRs:
$ oc delete volumesnapshotcontent --all
Delete any ReplicationDestination
resources on the namespace.
$ oc delete replicationdestination -n <protected_namespace> --all