Preparing to use the Cloud Pak for Data export and import utility

Before you use the Cloud Pak for Data export and import utility, you must create a persistent volume claim (PVC) for each Red Hat® OpenShift® Container Platform project (namespace) where you want to run the export and import utility.

Create a volume with ReadWriteMany (RWX) access. The following examples use the default or recommended storage classes. For details, see Storage requirements.

The recommended PVC name is export-import-pvc. This name is used in subsequent commands. If you use a different name, you must update the sample cpd-cli export-import commands to specify the appropriate PVC name for your environment.


OpenShift Data Foundation
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS} 
  name: export-import-pvc
spec:
  storageClassName: ocs-storagecluster-cephfs
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

IBM Storage Fusion
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: ibm-spectrum-scale-sc
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

IBM Storage Scale Container Native
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: ibm-spectrum-scale-sc
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

Portworx
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: portworx-rwx-gp3-sc
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

NFS
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: managed-nfs-storage  
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

Amazon Elastic File System
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: efs-nfs-client
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

IBM Cloud File Storage

The following example uses the ibmc-file-gold-gid storage class.

cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: ibmc-file-gold-gid
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF

NetApp Trident
cat <<EOF |oc apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  namespace: ${PROJECT_CPD_INST_OPERANDS}
  name: export-import-pvc
spec:
  storageClassName: ontap-nas
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 200Gi
EOF