应该始终监视集群状态,无论是监视集群的整体状态(启动、停止或不稳定),还是监视单独的节点状态(启动、停止、加入、离开或重新配置)。
可以使用命令 /usr/sbin/cluster/clstat 来获得有关集群的各个信息片段,包括集群状态、节点数量、节点的名称和状态、资源组的名称和状态,以及接口的名称和状态。要使用此命令,您应该已经启动了 clinfo 守护进程。示例 5 显示了此命令的输出。
示例 5 示例 clstat 输出
clstat - HACMP Cluster Status Monitor Cluster:bubu (1088583415) Wed Jun 30 15:21:25 EDT 2004 State:UP Nodes: 6 SubState:STABLE Node:p630n01 State:UP Interface:gp01 (0) Address: 10.1.1.1 State:UP Interface:n01bt1 (1) Address: 172.16.100.31 State:UP Interface:p630n01 (1) Address: 192.168.100.31 State:UP Interface:n01a1 (1) Address: 192.168.11.131 State:UP Resource Group:rg01 State:On line Node:p630n02 State:UP Interface:gp02 (0) Address: 10.1.1.2 State:UP Interface:n01bt2 (1) Address: 172.16.100.32 State:UP Interface:p630n02 (1) Address: 192.168.100.32 State:UP Interface:n02a1 (1) Address: 192.168.11.132 State:UP Resource Group:rg02 State:On line Node:p630n03 State:UP Interface:gp03 (0) Address: 10.1.1.3 State:UP Interface:n01bt3 (1) Address: 172.16.100.33 State:UP Interface:p630n03 (1) Address: 192.168.100.33 State:UP ********************** f/forward, b/back, r/refresh, q/quit ***********************如果集群节点具有图形功能,可以使用 /usr/sbin/cluster/clstat 来显示一个描述集群和节点状态的图形窗口。在执行此操作之前,请确保将 DISPLAY 变量导出到 X 服务器地址并允许 X 客户端访问。