Prerequisites
Ensure that you meet the prerequisites before you work with Backup & Restore service.
- Install either the Backup & Restore or Backup & Restore Agent service. For the procedure to install, see Backup & Restore.
- Ensure that you define a StorageClass that is provisioned by a supported CSI driver. Check the
provisioner:
in theSpec
to make sure that it is backed by CSI.Sample StorageClass:apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ocs-storagecluster-cephfs provisioner: openshift-storage.cephfs.csi.ceph.com reclaimPolicy: Delete allowVolumeExpansion: true volumeBindingMode: Immediate
Note: The Storage Class must have the CSI Snapshot capability (VolumeSnapshotClass
). - For backups to run successfully, ensure that in all platforms, the Backup & Restore (Legacy) and Backup & Restore services are only supported with CSI
compliant storage classes that has
volumeBindingMode: Immediate
. - Ensure that the VolumeSnapshotClass has a
driver:
that matches theprovisioner:
in the StorageClass.Sample YAML for Red Hat® OpenShift® Data Foundation RBD storage:
apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass driver: openshift-storage.cephfs.csi.ceph.com metadata: name: ocs-storagecluster-cephfsplugin-snapclass deletionPolicy: Delete parameters: clusterID: openshift-storage csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
Note: If you plan to create and use your own storage classes in IBM Storage Fusion HCI System, ensure that you have the
VolumeSnapshotClass.