Creating volume clones

Last published : Jun 12, 2026
The cloning feature enables you to specify an existing PVC as a dataSource while creating a new PVC. Prerequisites are as under:
  • The source PVC is bound and available for use
  • A valid Storage Class is available
  • The source PVC is created using the InfoScale CSI driver that supports volume cloning
To clone a PVC from an existing PVC:
  1. Identify the PVC that you want to clone.
    oc get pvc
    1. Define the PersistentVolumeClaim object using the yaml and specify the name of the PVC object to use as source:
    csi-dynamic-volume-clone.yaml
    ---
      kind: PersistentVolumeClaim
      apiVersion: v1
      metadata:
        name: csi-infoscale-volume-clone
      spec:
        storageClassName: csi-infoscale-sc
        accessModes:
          -  ReadWriteMany
        resources:
          requests:
            storage: 5Gi
        dataSource:
          kind: PersistentVolumeClaim
          name: csi-infoscale-pvc
  2. Create a volume clone:
oc create -f csi-dynamic-volume-clone.yaml
On successful creation of a clone, it is pre-populated with the data from the specified PVC dataSource volume.
Related information