setup_config_hadr
script for Db2
Use the setup_config_hadr
script to set up a high availability disaster
recovery (HADR) configuration for Db2.
Syntax
Parameters
- --db-role
- The HADR role for the current database, either primary, standby, aux1, or aux2.
- --primary-name
- The name of the primary Db2 cluster.
- --standby-name
- The name of the standby Db2 cluster.
- --primary-port
- The HADR primary port of the clusterIP or NodePort service that corresponds to the primary database.
- --standby-port
- The HADR standby port of the clusterIP or NodePort service that corresponds to the standby database.
- --etcd-host
- The etcd cluster hostname or IP address.
- --etcd-port
- The etcd port.
- --multicluster
- A flag that specifies that the databases are on different clusters. If not specified, the default is a single cluster topology.
- --aux1-name
- The name of the auxiliary1 Db2 cluster.
- --aux2-name
- The name of the auxiliary2 Db2 cluster.
- --aux1-port
- The HADR aux1 port of the clusterIP or NodePort service that corresponds to the aux1 database.
- --aux2-port
- The HADR aux2 port of the clusterIP or NodePort service that corresponds to the aux2 database.
- --primary-clusterip
- The ClusterIP of the primary database HADR service
(
c-primary-Db2-cluster-hadr-svc
). In an IBM® Cloud environment, this is the fully qualified domain name of the primary db2u-0 pod (c-primary-Db2-cluster-db2u-0.c-primary-Db2-cluster-db2u-internal.primary-project.svc.cluster.local
). - --standby-clusterip
- The ClusterIP of the standby database HADR service
(
c-standby-Db2-cluster-hadr-svc
). In an IBM Cloud environment, this is the fully qualified domain name of the standby db2u-0 pod (c-standby-Db2-cluster-db2u-0.c-standby-Db2-cluster-db2u-internal.standby-project.svc.cluster.local
). - --aux1-clusterip
- The ClusterIP of the aux1 database HADR service
(
c-aux1-Db2-cluster-hadr-svc
). In an IBM Cloud environment, this is the fully qualified domain name of the aux1 db2u-0 pod (c-aux1-Db2-cluster-db2u-0.c-aux1-Db2-cluster-db2u-internal.aux1-project.svc.cluster.local
). - --aux2-clusterip
- The ClusterIP of the aux2 database HADR service
(
c-aux2-Db2-cluster-hadr-svc
). In an IBM Cloud environment, this is the fully qualified domain name of the aux2 db2u-0 pod (c-aux2-Db2-cluster-db2u-0.c-aux2-Db2-cluster-db2u-internal.aux2-project.svc.cluster.local
).