Try   HackMD

storage class https://issues.redhat.com/browse/OADP-1821 notes

setup

[whayutin@thinkdoe minimal-8csivol]$ oc get dpa -n openshift-adp dpa-sample -o yaml
apiVersion: oadp.openshift.io/v1alpha1
kind: DataProtectionApplication
metadata:
  creationTimestamp: "2023-06-05T17:22:53Z"
  generation: 5
  name: dpa-sample
  namespace: openshift-adp
  resourceVersion: "15234000"
  uid: 0acbe7e3-6d14-429e-975d-786187f6b905
spec:
  backupLocations:
  - velero:
      config:
        profile: default
        region: us-east-1
      credential:
        key: cloud
        name: cloud-credentials
      default: true
      objectStorage:
        bucket: cvpbucket
        prefix: velero
      provider: aws
  configuration:
    restic:
      enable: false
    velero:
      defaultPlugins:
      - openshift
      - aws
      - csi
      - vsm
      featureFlags:
      - EnableCSI
  features:
    dataMover:
      credentialName: restic-secret
      enable: true
      volumeOptionsForStorageClasses:
        gp2-csi-copy-1:
          destinationVolumeOptions:
            storageClassName: gp2-csi-copy-2
          sourceVolumeOptions:
            storageClassName: gp2-csi-copy-1
  snapshotLocations:
  - velero:
      config:
        profile: default
        region: us-east-1
      provider: aws
status:
  conditions:
  - lastTransitionTime: "2023-06-05T17:22:54Z"
    message: Reconcile complete
    reason: Complete
    status: "True"
    type: Reconciled

[whayutin@thinkdoe minimal-8csivol]$ oc create -f minimal-8csivol.yaml 
namespace/minimal-8csivol created
deployment.apps/minimal-8csivol created
persistentvolumeclaim/volume1 created
persistentvolumeclaim/volume2 created
persistentvolumeclaim/volume3 created
persistentvolumeclaim/volume4 created
persistentvolumeclaim/volume5 created
persistentvolumeclaim/volume6 created
persistentvolumeclaim/volume7 created
persistentvolumeclaim/volume8 created
[whayutin@thinkdoe minimal-8csivol]$ oc get sc
NAME                       PROVISIONER       RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
gp2-csi                    ebs.csi.aws.com   Delete          WaitForFirstConsumer   true                   12d
gp2-csi-copy-1 (default)   ebs.csi.aws.com   Delete          WaitForFirstConsumer   true                   65m
gp2-csi-copy-2             ebs.csi.aws.com   Delete          WaitForFirstConsumer   true                   64m
gp3-csi                    ebs.csi.aws.com   Delete          WaitForFirstConsumer   true                   12d

orig pvc

[whayutin@thinkdoe minimal-8csivol]$ oc get pvc -n minimal-8csivol
NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS     AGE
volume1   Bound    pvc-752340a1-5fb1-4d86-a280-91f5f803f216   1Gi        RWO            gp2-csi-copy-1   2m4s
volume2   Bound    pvc-8301bd5f-8fa6-4695-ab5b-5ce3c6fd610c   1Gi        RWO            gp2-csi-copy-1   2m4s
volume3   Bound    pvc-5da951e6-101a-4726-80c1-528c7c8242b1   1Gi        RWO            gp2-csi-copy-1   2m4s
volume4   Bound    pvc-7c770a02-460d-4b8f-9daa-166f25ef72e1   1Gi        RWO            gp2-csi-copy-1   2m4s
volume5   Bound    pvc-f3f0d38d-65c0-481d-ac8e-fdbcb54af1df   1Gi        RWO            gp2-csi-copy-1   2m4s
volume6   Bound    pvc-f3d3bdd6-c9f6-401d-abab-bdcdb14da915   1Gi        RWO            gp2-csi-copy-1   2m4s
volume7   Bound    pvc-e1ed18c0-f028-445d-b39f-07e4a3696ec0   1Gi        RWO            gp2-csi-copy-1   2m4s
volume8   Bound    pvc-83bd02cd-219b-4bc2-b2ad-8761b1c20733   1Gi        RWO            gp2-csi-copy-1   2m4s

test

Ensure a clean system

[whayutin@thinkdoe minimal-8csivol]$ oc get backups -n openshift-adp
No resources found in openshift-adp namespace.
[whayutin@thinkdoe minimal-8csivol]$ oc delete vsb -A --all; oc delete vsr -A --all; oc delete vsc -A --all; oc delete vs -A --all; oc delete replicationsources.volsync.backube -A --all; oc delete replicationdestination.volsync.backube -A --all
No resources found
No resources found
No resources found
No resources found
No resources found
No resources found
[whayutin@thinkdoe minimal-8csivol]$ 

Create a backup

oc create -f minimal-8csivol-backup.yaml 
backup.velero.io/minimal-8csivol-1 created

[whayutin@thinkdoe minimal-8csivol]$ oc get backup.velero.io/minimal-8csivol-1 -o yaml -n openshift-adp
apiVersion: velero.io/v1
kind: Backup
metadata:
  annotations:
    velero.io/source-cluster-k8s-gitversion: v1.25.8+27e744f
    velero.io/source-cluster-k8s-major-version: "1"
    velero.io/source-cluster-k8s-minor-version: "25"
  creationTimestamp: "2023-06-07T14:06:48Z"
  generation: 2
  labels:
    velero.io/storage-location: dpa-sample-1
  name: minimal-8csivol-1
  namespace: openshift-adp
  resourceVersion: "15264759"
  uid: 95506967-3bd6-43ae-ad5d-f7972c5433e6
spec:
  csiSnapshotTimeout: 10m0s
  defaultVolumesToFsBackup: false
  includedNamespaces:
  - minimal-8csivol
  itemOperationTimeout: 1h0m0s
  storageLocation: dpa-sample-1
  ttl: 720h0m0s
  volumeSnapshotLocations:
  - dpa-sample-1
status:
  expiration: "2023-07-07T14:06:48Z"
  formatVersion: 1.1.0
  phase: InProgress
  startTimestamp: "2023-06-07T14:06:49Z"
  version: 1


status:

Every 5.0s: datamover_resources.sh -b -d                                                                           thinkdoe: Wed Jun  7 08:08:42 2023

Get Backups:

NAME                STATUS	 ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR
minimal-8csivol-1   InProgress   0        0          2023-06-07 14:06:49 +0000 UTC   29d       dpa-sample-1	  <none>

Total Snapshots:  4
Total OADP Snapshots:  2
Total SnapshotContents:  4

Total VSB:  2
Completed:  0
InProgress:  0
SnapshotBackupDone:  0

VSB STATUS
Completed:  0
Processing:  1
Queued:  0
No resources found

Total ReplicationSources:  0




***** VOLUME SNAPSHOT CONTENTS ******

Name:  snapcontent-0bba9644-97ab-4ed6-86cf-5dbfdefac9d7  ReadyToUse:  false  creationTime:  2023-06-07T14:08:30Z
Name:  snapcontent-2cc72dec-a7b7-4539-8bd8-ee2e23c05c35  ReadyToUse:  true  creationTime:  2023-06-07T14:06:54Z
Name:  snapcontent-2cc72dec-a7b7-4539-8bd8-ee2e23c05c35-clone  ReadyToUse:  true  creationTime:  2023-06-07T14:08:30Z

***** REPLICATION SOURCE ******


... a few min later..


Every 5.0s: datamover_resources.sh -b -d                                                                           thinkdoe: Wed Jun  7 08:18:38 2023

Get Backups:

NAME                STATUS	 ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR
minimal-8csivol-1   InProgress   0        0          2023-06-07 14:06:49 +0000 UTC   29d       dpa-sample-1	  <none>

Total Snapshots:  7
No resources found in openshift-adp namespace.
Total OADP Snapshots:  0
Total SnapshotContents:  7

Total VSB:  6
Completed:  5
InProgress:  0
SnapshotBackupDone:  0

VSB STATUS
Completed:  5
Processing:  0
Queued:  0

Total ReplicationSources:  6




***** VOLUME SNAPSHOT CONTENTS ******

Name:  snapcontent-0bba9644-97ab-4ed6-86cf-5dbfdefac9d7  ReadyToUse:  true  creationTime:  2023-06-07T14:08:30Z
Name:  snapcontent-2cab7bc7-d996-4853-8a6f-a4f593a53125  ReadyToUse:  false  creationTime:  2023-06-07T14:18:41Z
Name:  snapcontent-2cc72dec-a7b7-4539-8bd8-ee2e23c05c35  ReadyToUse:  true  creationTime:  2023-06-07T14:06:54Z
Name:  snapcontent-807f8193-df83-4c1f-b9b6-2405fe182c6b  ReadyToUse:  true  creationTime:  2023-06-07T14:09:01Z
Name:  snapcontent-9739ea88-1fcf-4e07-89b6-b8d1353ba968  ReadyToUse:  true  creationTime:  2023-06-07T14:09:38Z
Name:  snapcontent-9ec90633-06e0-42a9-9373-f20fa480117f  ReadyToUse:  true  creationTime:  2023-06-07T14:17:09Z
Name:  snapcontent-a6b3e4c6-f93c-4411-87e4-e976f588d65b  ReadyToUse:  true  creationTime:  2023-06-07T14:17:45Z

    

    
Every 5.0s: datamover_resources.sh -b -d                                                                           thinkdoe: Wed Jun  7 08:21:23 2023

Get Backups:

NAME                STATUS	 ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION   SELECTORA
minimal-8csivol-1   Finalizing   0        0          2023-06-07 14:06:49 +0000 UTC   29d       dpa-sample-1       <none>e

Total Snapshots:  9
No resources found in openshift-adp namespace.
Total OADP Snapshots:  0
Total SnapshotContents:  9

Total VSB:  9
Completed:  8
InProgress:  0
SnapshotBackupDone:  0

VSB STATUS
Completed:  8
Processing:  0
Queued:  0

Total ReplicationSources:  9




***** VOLUME SNAPSHOT CONTENTS ******

Name:  snapcontent-0bba9644-97ab-4ed6-86cf-5dbfdefac9d7  ReadyToUse:  true  creationTime:  2023-06-07T14:08:30Z
Name:  snapcontent-26a86df7-cc39-4ebf-8e7b-9145caa2292d  ReadyToUse:  true  creationTime:  2023-06-07T14:19:18Z
Name:  snapcontent-2cab7bc7-d996-4853-8a6f-a4f593a53125  ReadyToUse:  true  creationTime:  2023-06-07T14:18:41Z
Name:  snapcontent-2cc72dec-a7b7-4539-8bd8-ee2e23c05c35  ReadyToUse:  true  creationTime:  2023-06-07T14:06:54Z
Name:  snapcontent-807f8193-df83-4c1f-b9b6-2405fe182c6b  ReadyToUse:  true  creationTime:  2023-06-07T14:09:01Z
Name:  snapcontent-9739ea88-1fcf-4e07-89b6-b8d1353ba968  ReadyToUse:  true  creationTime:  2023-06-07T14:09:38Z
Name:  snapcontent-9ec90633-06e0-42a9-9373-f20fa480117f  ReadyToUse:  true  creationTime:  2023-06-07T14:17:09Z

backup complete:

    [whayutin@thinkdoe minimal-8csivol]$ oc get backup.velero.io/minimal-8csivol-1 -o yaml -n openshift-adp
apiVersion: velero.io/v1
kind: Backup
metadata:
  annotations:
    velero.io/source-cluster-k8s-gitversion: v1.25.8+27e744f
    velero.io/source-cluster-k8s-major-version: "1"
    velero.io/source-cluster-k8s-minor-version: "25"
  creationTimestamp: "2023-06-07T14:06:48Z"
  generation: 5
  labels:
    velero.io/storage-location: dpa-sample-1
  name: minimal-8csivol-1
  namespace: openshift-adp
  resourceVersion: "15276225"
  uid: 95506967-3bd6-43ae-ad5d-f7972c5433e6
spec:
  csiSnapshotTimeout: 10m0s
  defaultVolumesToFsBackup: false
  includedNamespaces:
  - minimal-8csivol
  itemOperationTimeout: 1h0m0s
  storageLocation: dpa-sample-1
  ttl: 720h0m0s
  volumeSnapshotLocations:
  - dpa-sample-1
status:
  backupItemOperationsAttempted: 8
  backupItemOperationsCompleted: 8
  completionTimestamp: "2023-06-07T14:21:37Z"
  csiVolumeSnapshotsAttempted: 8
  csiVolumeSnapshotsCompleted: 8
  expiration: "2023-07-07T14:06:48Z"
  formatVersion: 1.1.0
  phase: Completed
  startTimestamp: "2023-06-07T14:06:49Z"
  version: 1

remove all vsc

[whayutin@thinkdoe minimal-8csivol]$ oc delete vsb -A --all; oc delete vsr -A --all; oc delete vsc -A --all; oc delete vs -A --all; oc delete replicationsources.volsync.backube -A --all; oc delete replicationdestination.volsync.backube -A --all
No resources found
No resources found
volumesnapshotcontent.snapshot.storage.k8s.io "snapcontent-0bba9644-97ab-4ed6-86cf-5dbfdefac9d7" deleted
volumesnapshotcontent.snapshot.storage.k8s.io "snapcontent-2cab7bc7-d996-4853-8a6f-a4f593a53125" deleted
volumesnapshotcontent.snapshot.storage.k8s.io "snapcontent-807f8193-df83-4c1f-b9b6-2405fe182c6b" deleted
volumesnapshotcontent.snapshot.storage.k8s.io "snapcontent-9ec90633-06e0-42a9-9373-f20fa480117f" deleted
volumesnapshotcontent.snapshot.storage.k8s.io "snapcontent-a6b3e4c6-f93c-4411-87e4-e976f588d65b" deleted
No resources found
replicationsource.volsync.backube "vsb-84xhc-rep-src" deleted
replicationsource.volsync.backube "vsb-8sp9c-rep-src" deleted
replicationsource.volsync.backube "vsb-bm779-rep-src" deleted
replicationsource.volsync.backube "vsb-bwdk8-rep-src" deleted
replicationsource.volsync.backube "vsb-pcnbs-rep-src" deleted
replicationsource.volsync.backube "vsb-pvvh4-rep-src" deleted
replicationsource.volsync.backube "vsb-qq8hw-rep-src" deleted
replicationsource.volsync.backube "vsb-zskz7-rep-src" deleted
No resources found
[whayutin@thinkdoe minimal-8csivol]$ 

remove minimal-8csivol

[whayutin@thinkdoe minimal-8csivol]$ oc delete -f minimal-8csivol.yaml
namespace "minimal-8csivol" deleted
deployment.apps "minimal-8csivol" deleted
persistentvolumeclaim "volume1" deleted
persistentvolumeclaim "volume2" deleted
persistentvolumeclaim "volume3" deleted
persistentvolumeclaim "volume4" deleted
persistentvolumeclaim "volume5" deleted
persistentvolumeclaim "volume6" deleted
persistentvolumeclaim "volume7" deleted
persistentvolumeclaim "volume8" deleted
[whayutin@thinkdoe minimal-8csivol]$ 

restore ( expecting new storage class name )

[whayutin@thinkdoe minimal-8csivol]$ cat minimal-8csivol-restore.yaml 
apiVersion: velero.io/v1
kind: Restore
metadata:
  name: minimal-8csivol-restore-1
  namespace: openshift-adp
spec:
  backupName: minimal-8csivol-1
  restorePVs: true
[whayutin@thinkdoe minimal-8csivol]$ oc create -f minimal-8csivol-restore.yaml 
restore.velero.io/minimal-8csivol-restore-1 created

status:

Every 5.0s: datamover_resources.sh -r -d                                           thinkdoe: Wed Jun  7 08:27:40 2023

Get Restores:

NAME                        BACKUP              STATUS       STARTED                         COMPLETED   ERRORS   WAR
NINGS   CREATED                         SELECTOR
minimal-8csivol-restore-1   minimal-8csivol-1   InProgress   2023-06-07 14:27:28 +0000 UTC   <nil>	 0	  0
        2023-06-07 14:27:28 +0000 UTC   <none>
No resources found

Total VSR:  0
No resources found
Completed:  0
No resources found
InProgress:  0
No resources found
SnapshotRestoreDone:  0

VSR STATUS
Completed:  0
Processing:  0
Queued:  0
No resources found

Total ReplicationDestinations:  0

***** VOLUME SNAPSHOT CONTENTS ******


***** REPLICATION DESTINATION ******


.. again..

Every 5.0s: datamover_resources.sh -r -d                                           thinkdoe: Wed Jun  7 08:28:50 2023

Get Restores:

NAME                        BACKUP              STATUS       STARTED                         COMPLETED   ERRORS   WAR
NINGS   CREATED                         SELECTOR
minimal-8csivol-restore-1   minimal-8csivol-1   InProgress   2023-06-07 14:27:28 +0000 UTC   <nil>	 0	  0
        2023-06-07 14:27:28 +0000 UTC   <none>

Total VSR:  9
Completed:  5
InProgress:  3
SnapshotRestoreDone:  5

VSR STATUS
Completed:  5
Processing:  3
Queued:  0

Total ReplicationDestinations:  9

***** VOLUME SNAPSHOT CONTENTS ******

Name:  snapcontent-15a4cecd-0023-4ac4-b047-65384d3220dd  ReadyToUse:  false  creationTime:  2023-06-07T14:28:30Z
Name:  snapcontent-31887554-67d6-4ebb-9fec-aa156e951dca  ReadyToUse:  false  creationTime:  2023-06-07T14:28:18Z
Name:  snapcontent-563ecd59-632a-484b-92d2-03477c1fcd0f  ReadyToUse:  false  creationTime:  2023-06-07T14:28:50Z
Name:  snapcontent-6bc3c5f2-eba0-4620-b92a-984fef8e909d  ReadyToUse:  false  creationTime:  2023-06-07T14:28:47Z
Name:  snapcontent-9f3c6112-6c5a-4f07-976d-3de437d3dea2  ReadyToUse:  false  creationTime:  2023-06-07T14:28:29Z
Name:  snapcontent-f02cb0e2-b53d-4ccc-abaa-133d9f9cb169  ReadyToUse:  false  creationTime:  2023-06-07T14:28:45Z

***** REPLICATION DESTINATION ******

Name:  vsr-47dqx-rep-dest  SyncDuration:  26.72499663s  sourcePVC:
Name:  vsr-4hnxd-rep-dest  SyncDuration:  20.789274555s  sourcePVC:
Name:  vsr-4hsjm-rep-dest  SyncDuration:  34.526295953s  sourcePVC:
Name:  vsr-brfjz-rep-dest  SyncDuration:  22.340920024s  sourcePVC:
Name:  vsr-cnd4l-rep-dest  SyncDuration:  35.936605687s  sourcePVC:
Name:  vsr-jrn58-rep-dest  SyncDuration:  sourcePVC:
Name:  vsr-pkcxz-rep-dest  SyncDuration:  24.336189131s  sourcePVC:


.. again..

Every 5.0s: datamover_resources.sh -r -d                                           thinkdoe: Wed Jun  7 08:30:02 2023

Get Restores:

NAME                        BACKUP              STATUS       STARTED                         COMPLETED   ERRORS   WAR
NINGS   CREATED                         SELECTOR
minimal-8csivol-restore-1   minimal-8csivol-1   InProgress   2023-06-07 14:27:28 +0000 UTC   <nil>	 0	  0
        2023-06-07 14:27:28 +0000 UTC   <none>

Total VSR:  9
Completed:  8
InProgress:  0
SnapshotRestoreDone:  0

VSR STATUS
Completed:  8
Processing:  0
Queued:  0
No resources found

Total ReplicationDestinations:  0

***** VOLUME SNAPSHOT CONTENTS ******

Name:  snapcontent-31887554-67d6-4ebb-9fec-aa156e951dca  ReadyToUse:  true  creationTime:  2023-06-07T14:28:18Z
Name:  snapcontent-563ecd59-632a-484b-92d2-03477c1fcd0f  ReadyToUse:  true  creationTime:  2023-06-07T14:28:50Z
Name:  velero-velero-volume1-spbcz-zgs2v  ReadyToUse:  true  creationTime:  2023-06-07T14:29:47Z
Name:  velero-velero-volume2-fckrc-nrnl2  ReadyToUse:  true  creationTime:  2023-06-07T14:29:50Z
Name:  velero-velero-volume3-vglwr-n6x2j  ReadyToUse:  true  creationTime:  2023-06-07T14:29:53Z
Name:  velero-velero-volume4-4szzb-lqwfr  ReadyToUse:  true  creationTime:  2023-06-07T14:29:56Z
Name:  velero-velero-volume5-49sk7-8w62f  ReadyToUse:  true  creationTime:  2023-06-07T14:29:59Z
Name:  velero-velero-volume6-f8msj-4kq2z  ReadyToUse:  true  creationTime:  2023-06-07T14:30:02Z

***** REPLICATION DESTINATION ******


Every 5.0s: datamover_resources.sh -r -d                                           thinkdoe: Wed Jun  7 08:31:10 2023

Get Restores:

NAME                        BACKUP              STATUS      STARTED                         COMPLETED
       ERRORS   WARNINGS   CREATED                         SELECTOR
minimal-8csivol-restore-1   minimal-8csivol-1   Completed   2023-06-07 14:27:28 +0000 UTC   2023-06-07 14:30:43 +0000
 UTC   0        14         2023-06-07 14:27:28 +0000 UTC   <none>
No resources found

Total VSR:  0
No resources found
Completed:  0
No resources found
InProgress:  0
No resources found
SnapshotRestoreDone:  0

VSR STATUS
Completed:  0
Processing:  0
Queued:  0
No resources found

Total ReplicationDestinations:  0

***** VOLUME SNAPSHOT CONTENTS ******

Name:  velero-velero-volume1-spbcz-zgs2v  ReadyToUse:  true  creationTime:  2023-06-07T14:29:47Z
Name:  velero-velero-volume2-fckrc-nrnl2  ReadyToUse:  true  creationTime:  2023-06-07T14:29:50Z
Name:  velero-velero-volume3-vglwr-n6x2j  ReadyToUse:  true  creationTime:  2023-06-07T14:29:53Z
Name:  velero-velero-volume4-4szzb-lqwfr  ReadyToUse:  true  creationTime:  2023-06-07T14:29:56Z
Name:  velero-velero-volume5-49sk7-8w62f  ReadyToUse:  true  creationTime:  2023-06-07T14:29:59Z
Name:  velero-velero-volume6-f8msj-4kq2z  ReadyToUse:  true  creationTime:  2023-06-07T14:30:02Z
Name:  velero-velero-volume7-8w4mn-8rfwq  ReadyToUse:  true  creationTime:  2023-06-07T14:30:05Z
Name:  velero-velero-volume8-k6zzr-mhwqb  ReadyToUse:  true  creationTime:  2023-06-07T14:30:09Z

***** REPLICATION DESTINATION ******



backup complete

[whayutin@thinkdoe minimal-8csivol]$ oc get pvc -n minimal-8csivol
NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS     AGE
volume1   Bound    pvc-3c05e1b4-cedb-419f-b1f1-f39a62a07793   1Gi        RWO            gp2-csi-copy-1   44s
volume2   Bound    pvc-1cf5198d-d237-49a5-a0e7-ce5197931604   1Gi        RWO            gp2-csi-copy-1   44s
volume3   Bound    pvc-71053626-e09e-489d-955a-7346c581b91a   1Gi        RWO            gp2-csi-copy-1   44s
volume4   Bound    pvc-3ca0eb7f-9dc5-477e-aea4-2b94f9a73d34   1Gi        RWO            gp2-csi-copy-1   44s
volume5   Bound    pvc-c311b665-4fb5-494a-97e6-c19fea2f31ae   1Gi        RWO            gp2-csi-copy-1   44s
volume6   Bound    pvc-0853cf81-d435-41ee-afee-6ee720a98982   1Gi        RWO            gp2-csi-copy-1   44s
volume7   Bound    pvc-0a63b058-1f36-4bef-80b2-c5d4c665bd5f   1Gi        RWO            gp2-csi-copy-1   44s
volume8   Bound    pvc-b97940ef-d439-4da2-bb7c-99205b337148   1Gi        RWO            gp2-csi-copy-1   43s
[whayutin@thinkdoe minimal-8csivol]$ oc get pvc -n minimal-8csivol
NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS     AGE
volume1   Bound    pvc-3c05e1b4-cedb-419f-b1f1-f39a62a07793   1Gi        RWO            gp2-csi-copy-1   58s
volume2   Bound    pvc-1cf5198d-d237-49a5-a0e7-ce5197931604   1Gi        RWO            gp2-csi-copy-1   58s
volume3   Bound    pvc-71053626-e09e-489d-955a-7346c581b91a   1Gi        RWO            gp2-csi-copy-1   58s
volume4   Bound    pvc-3ca0eb7f-9dc5-477e-aea4-2b94f9a73d34   1Gi        RWO            gp2-csi-copy-1   58s
volume5   Bound    pvc-c311b665-4fb5-494a-97e6-c19fea2f31ae   1Gi        RWO            gp2-csi-copy-1   58s
volume6   Bound    pvc-0853cf81-d435-41ee-afee-6ee720a98982   1Gi        RWO            gp2-csi-copy-1   58s
volume7   Bound    pvc-0a63b058-1f36-4bef-80b2-c5d4c665bd5f   1Gi        RWO            gp2-csi-copy-1   58s
volume8   Bound    pvc-b97940ef-d439-4da2-bb7c-99205b337148   1Gi        RWO            gp2-csi-copy-1   57s
[whayutin@thinkdoe minimal-8csivol]$ 


Retest after speaking to Emily and Shubham

  • wes experiment w/
     volumeOptionsForStorageClasses:
        gp2-csi-copy-1:
          destinationVolumeOptions:
            storageClassName: gp2-csi-copy-2
          sourceVolumeOptions:
            storageClassName: gp2-csi-copy-2

In the OADP namespace I can see the PVC's

on backup:
ReplicationSource PVC storageclass = gp2-csi-copy-2
DestinationSource PVC storageclass = gp2-csi-copy-2

However on restore to the application namesapce:

Every 5.0s: oc get pvc -n minimal-8csivol                                              thinkdoe: Wed Jun  7 10:39:29 2023

NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS     AGE
volume1   Bound    pvc-9beade9e-20b5-4b70-99bc-0dd3830550f0   1Gi        RWO            gp2-csi-copy-1   9m8s
volume2   Bound    pvc-bf41a282-b918-4195-9b22-ec40ee501425   1Gi        RWO            gp2-csi-copy-1   9m7s
volume3   Bound    pvc-7520b9e7-dfc3-4133-bbc8-ba8389c04504   1Gi        RWO            gp2-csi-copy-1   9m7s
volume4   Bound    pvc-5b77faf8-1e23-4193-986c-d9fce7807cb7   1Gi        RWO            gp2-csi-copy-1   9m7s
volume5   Bound    pvc-3a165b14-94b0-4a33-bf96-8f36512dc828   1Gi        RWO            gp2-csi-copy-1   9m7s
volume6   Bound    pvc-f4ec5e33-0695-48a2-97b1-863ff66c81a0   1Gi        RWO            gp2-csi-copy-1   9m7s
volume7   Bound    pvc-cc39452a-c04d-489e-8ddc-841e8e0e80ec   1Gi        RWO            gp2-csi-copy-1   9m7s
volume8   Bound    pvc-0ae6a76b-d0d0-452b-b9c0-476393839194   1Gi        RWO            gp2-csi-copy-1   9m6s

Conclusion

Conclusion:
These options do nothing to impact the storage class of the volumes in the application namespace: