Backup jobs for the Rook Ceph CSI volumes fail
Summary
Backup jobs for the Rook Ceph CSI volumes may fail if you have not properly configured a Volume Snapshot Class (VolumeSnapshotClass or VSC). Follow the instructions in this article to create a custom VSC so that you can back up your Rook Ceph CSI volumes.
Step-by-Step
Take the following steps before running a snapshot or copy backup job for the Rook Ceph CSI volumes:
Delete VSCs that have the prefix “cloudcasa-” in their names and use the Rook Ceph CSI driver.
Find the VSC with the Rook Ceph CSI driver that is used for taking the Volume Snapshots.
Edit the VSC to make the following changes:
Add the label
cloudcasa.io/csi-volumesnapshot-class: "true"
Ensure that DeletionPolicy is set to Retain.
Ensure that valid storage credentials of the Rook Ceph CSI driver are configured in the VSC.
Note
If you cannot edit the VSC for some reason, create a new VSC with the same parameters as those seen in the working version and then, make the changes listed above.
Run the snapshot or copy the backup job again and verify that the backup job now ends with the COMPLETED status.