Updating your environment variables script (Upgrading from Version 5.0.x to a later 5.0 refresh)
The commands for upgrading IBM Cloud Pak for Data use variables with the format
${VARIABLE_NAME}
. Ensure that your environment variables script includes the
correct information for the instance of Cloud Pak for Data that you want to upgrade.
- Upgrade phase
-
- Updating your client workstation
- Collecting required information
- Preparing to run an upgrade in a restricted network
- Preparing to run an upgrade from a private container registry
- Upgrading prerequisite software
- Upgrading shared cluster components
- Preparing to upgrade an instance of Cloud Pak for Data
- Upgrading an instance of Cloud Pak for Data
- Who needs to complete this task?
-
Cloud Pak for Data operations team The IBM Cloud Pak for Data operations team should work with the cluster administrator to compile information about the cluster where Cloud Pak for Data is installed.
- When do you need to complete this task?
-
Repeat as needed If you have multiple instances of Cloud Pak for Data on the cluster and you maintain separate scripts for each instance, update the script for each instance that you plan to upgrade.
Editing your environment variables file
- Open your existing environment variable shell script in a text editor.
- Locate the
VERSION
entry and specify the version of Cloud Pak for Data that you want to upgrade to. For example:export VERSION=5.0.3
- If needed, update the
COMPONENTS
variable.Confirm that the list of service components is accurate.
- Save your changes.
- Confirm that the script does not contain any errors. For example, if you named the script
cpd_vars.sh
, run:bash ./cpd_vars.sh
Sourcing the environment variables
You must run the script from a bash prompt before you run the installation and upgrade commands. The script exports the environment variables to your command-line session.
- Change to the directory where you saved the script.
- Source the environment variables. For example, if you named the script
cpd_vars.sh
, run:source ./cpd_vars.sh