Hi
I deployed two DB2 containers on Docker, followed the steps on the topic [ Running DB2 HADR ] in this cite: Docker Hub.
The following is the actual command I did:
• Create Volume for /database on node1
docker volume create db2srv_empty_hadr_h1
• Create Volume for /database on node2
docker volume create db2srv_empty_hadr_h2
• Create volume for /hadr
docker volume create db2srv_empty_hadr_share
• Create network to enable dns hostname/containernameresolving
docker network create -d bridge idug
• Run DB2 container
docker run -itd --name db2srv_hadr_node1 --privileged \
--ipc=host -p 50000 -p 55000 -e LICENSE=accept \
-e -e DB2INST1_PASSWORD=db2inst1 -v db2srv_empty_hadr_h1:/database \
-v db2srv_empty_hadr_share:/hadr -e DBNAME=EMPTHADR \
-e ETCD_ENDPOINT=xxx:2379,xxx:2379,xxx:2379
-e HADR_ENABLED=true -h db2srv_hadr_node1 --network=idug ibmcom/db2
docker run -itd --name db2srv_hadr_node2 --privileged \
--ipc=host -p 50000 -p 55000 -e LICENSE=accept \
-e DB2INST1_PASSWORD=db2inst1 -v db2srv_empty_hadr_h2:/database \
-v db2srv_empty_hadr_share:/hadr -e DBNAME=EMPTHADR \
-e ETCD_ENDPOINT=xxx:2379,xxx:2379,xxx:2379
-e HADR_ENABLED=true -h db2srv_hadr_node2 --network=idug ibmcom/db2
I found that HADR was set up successfully by checking the HADR status:
However, the automated failover didn't work. When I stop the primary node, the standby node just disconnected from the primary node.
I checked the governor config file in primary node:
I found the error during the governor setup.
Could you help me to setup ETCD in HADR or how to solve the problem in the picture?
Thank you very much!
------------------------------
xiaomin wang
------------------------------
#Db2