When a node is restarted, confirm that Db2 Warehouse successfully starts up by
monitoring the startup progress.
About this task
Db2 Warehouse should automatically start up after a Kubernetes worker node is started and the kubelet starts
all the pods on the node. You can run a series of commands to monitor the startup progress.
Procedure
-
Run the command
kubectl get nodes
and check the output to verify the
following:
- The Kubernetes worker nodes that were
rebooted are in a ready state.
- All nodes with the etcd operator role are in a ready state.
-
Monitor the Db2® pod startup
progress:
kubectl -n <namespace> get po | grep db2u
-
Check that all Db2 Warehouse database services pods are in a running state:
kubectl -n <namespace> get po --selector type=engine
-
Confirm that the Db2 Warehouse instance is healthy.
-
Exec into the Db2 pod.
-
Become the Db2 Warehouse instance owner:
-
Run the following commands to validate the health of the Db2 Warehouse instance:
db2gcf -s # Should show 'Active'
db2pd - -member all | grep Member # Should show an entry for each Db2 partition
db2pd -db bludb - -member all | grep Member # Should show an entry for each Db2 partition
db2 list active databases # Should show BLUDB database active
db2 connect to BLUDB; db2 connect reset # Confirm you can connect to the database