export-import
init
Important: IBM Cloud Pak® for Data
Version 4.6 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.6 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Initialize the cpd-cli export-import command.
Syntax
cpd-cli export-import init \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--aux-pod-cpu-limit=<auxiliary-pod-cpu-limit-value>] \
[--aux-pod-cpu-request=<auxiliary-pod-cpu-request-value>] \
[--aux-pod-mem-limit=<auxiliary-pod-memory-limit-value>] \
[--aux-pod-mem-request=<auxiliary-pod-memory-request-value>] \
[--image-prefix=<image-registry-prefix>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--pvc-name=<persistence-volume-claim-name>] \
--profile=<cpd-configuration-profile-name> \
[--service-account=<openshift-container-platform-service-account>] \
[--verbose]
Arguments
The init command has no
arguments.
Options
| Option | Description |
|---|---|
--arch |
Provide the system
architecture.
|
--aux-pod-cpu-limit |
The CPU limit for the IBM® Cloud Pak for Data auxiliary
pod.
|
--aux-pod-cpu-request |
The CPU request for the IBM Cloud Pak for Data auxiliary
pod.
|
--aux-pod-mem-limit |
The memory limit for the IBM Cloud Pak for Data auxiliary
pod.
|
--aux-pod-mem-request |
The memory request for the IBM Cloud Pak for Data auxiliary
pod.
|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
|
|
Display command
help.
|
--image-prefix |
Specify the image registry
prefix.
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--pvc-name |
Specify which persistence volume
claim name to use for the command.
|
--service-account |
Specify the Openshift Container
Platform service account.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
Your docker image registry might be different than the provided examples.
- Red Hat® OpenShift 4.x
- Initialize the
cpdtoolfirst with PVC name for storage and the user and password of the Cloud Pak for Data administrator.$ cpd-cli export-import init \ --namespace=${PROJECT_CPD_INSTANCE} \ --arch=x86_64 \ --pvc-name=<${PROJECT_CPD_INSTANCE}-pvc> \ --profile=${PROFILENAME} \ --image-prefix=icr.io/cpopen/cpd
Shared volume PVC
export-import requires that a shared
volume PVC is created and bounded for use with the init command. If your PV is Portworx,
ensure that it is shared
enabled.oc apply -f ${PROJECT_CPD_INSTANCE}-pvc.yaml
${PROJECT_CPD_INSTANCE}-pvc.yaml content:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ${PROJECT_CPD_INSTANCE}-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Gi