Run the following command to display information about the cluster:
sudo o2cb list-cluster cluster-name
A three-node cluster with a global heartbeat would display information similar to the following:
node:
name = ol-sys0
cluster = mycluster
number = 0
ip_address = 10.1.0.100
ip_port = 7777
node:
name = ol-sys1
cluster = mycluster
number = 1
ip_address = 10.1.0.110
ip_port = 7777
node:
name = ol-sys2
cluster = mycluster
number = 2
ip_address = 10.1.0.120
ip_port = 7777
cluster:
name = mycluster
heartbeat_mode = global
node_count = 3
heartbeat:
cluster = mycluster
region = 7DA5015346C245E6A41AA85E2E7EA3CF
heartbeat:
cluster = mycluster
region = 4F9FBB0D9B6341729F21A8891B9A05BD
heartbeat:
cluster = mycluster
region = B423C7EEE9FC426790FC411972C91CC3
The heartbeat regions are represented by the UUIDs of their block devices.
The same cluster mycluster
with a local heartbeat would display the
following information:
node:
name = ol-sys0
cluster = mycluster
number = 0
ip_address = 10.1.0.100
ip_port = 7777
node:
name = ol-sys1
cluster = mycluster
number = 1
ip_address = 10.1.0.110
ip_port = 7777
node:
name = ol-sys2
cluster = mycluster
number = 2
ip_address = 10.1.0.120
ip_port = 7777
cluster:
name = mycluster
heartbeat_mode = local
node_count = 3