Skip to main content
Version: 25.8

Clone a FlashArray PersistentVolumeClaim

Cloning a PersistentVolumeClaim (PVC) creates a new volume that duplicates the data in the original PVC. This can be useful for testing, development, or backup scenarios where you need a safe copy of the volume.

note

FlashArray file services and FlashBlade file systems do not support PVC cloning.

  1. Create the clone PVC definition:

    Define a new PVC with a dataSource referencing the name of the source PVC:

    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
    name: pvc-clone
    spec:
    accessModes: # accesMode must be same as the parent PVC
    - ReadWriteOnce
    resources:
    requests:
    storage: 20Gi # storage size must be same as the parent PVC
    storageClassName: sc-portworx-fa-direct-access
    dataSource:
    kind: PersistentVolumeClaim
    name: pure-claim-block
  2. Apply the manifest:

    Save the configuration to a file named clone.yaml and apply it:

    kubectl apply -f clone.yaml
    persistentvolumeclaim/pvc-clone created
  3. Verify the cloned PVC:

    Confirm that the new PVC has been created:

    kubectl get pvc <pvc-clone> -n <pvc-namespace>