Upgrading the external etcd store created with the Db2 etcd image
You can upgrade the external etcd store to use the latest etcd image packaged with Db2 Warehouse.
Before you begin
Create an external etcd store with etcd that is packaged with Db2 Warehouse. See Deploying the etcd store that is packaged with the Db2 installation for more information.
About this task
Perform the rolling upgrade for your
Db2uCluster
resources in your HADR topology
first. Confirm that Governor is no longer running on both the primary and standby deployments.- Set environment variables for your
deployments:
DB2UCLUSTER_PRIMARY="db2wh-crd-hadr-primary" DB2UCLUSTER_STANDBY="db2wh-crd-hadr-standby" PROJECT_PRIMARY="zen" PROJECT_STANDBY="zen"
Db2uCluster
names can be obtained with the following command, in the namespace where the deployments are located:
Primary and Standby are the current HADR primary and principal standby deployments, respectively.oc get db2ucluster
- Run the stop governor command on your deployments. Run the command on your principle standby
deployment first, then your primary deployment.Note: Governor does not run on auxiliary standbys.
- Run the following command on your principal standby
deployment:
oc exec -it c-${DB2UCLUSTER_STANDBY}-db2u-0 -n ${PROJECT_STANDBY} -- sv stop governor
- Run the following command on your primary
deployment:
oc exec -it c-${DB2UCLUSTER_PRIMARY}-db2u-0 -n ${PROJECT_PRIMARY} -- sv stop governor
- Run the following command on your principal standby
deployment: