添加设备:
Extended Configuration〉〉Extended Topology Configuration〉〉Configure HACMP Communication Interfaces/Devices〉〉 Add Communication Interfaces/Devices 〉〉 Add Pre-defined Communication Interfaces and Devices 〉〉 Communication Devices 〉〉 net_diskhb_01 〉〉
* Device Name [heartbeatdisk5]
* Network Type diskhb
* Network Name net_diskhb_01
* Device Path [/dev/hdisk5]
* Node Name [test1]
* Device Name [heartbeatdisk7]
* Network Type diskhb
* Network Name net_diskhb_01
* Device Path [/dev/hdisk7]
* Node Name [test2]
Extended Configuration〉〉Extended Topology Configuration〉〉 Show HACMP Topology
Cluster Description of Cluster: ha51tsc
Cluster Security Level: Standard
NODE test1:
Network net_diskhb_01
heartbeatdisk5 /dev/hdisk5
Network net_ether_02
test1_svc 10.1.0.1
test2_svc 10.1.0.2
test1_boot2 192.168.0.1
test1_boot1 100.1.0.1
NODE test2:
Network net_diskhb_01
heartbeatdisk7 /dev/hdisk7
Network net_ether_02
test1_svc 10.1.0.1
test2_svc 10.1.0.2
test2_boot1 100.1.0.2
test2_boot2 192.168.0.2
配置永久的IP标识(persistent IP label)
一个永久的IP标识(persistent IP label)是一个IP别名,它可以被分配给一个群集网络中的指定的节点,并且会一直固定在分配的节点上。
2.永久的IP标识(persistent IP label)的特性:
(1)一直固定在被分配的节点上(节点绑定)
(2)作为别名被配置在启动网卡(boot adapter)上
(3)与已经被配置的服务IP标识(service IP label)或启动IP标识(boot IP label)共同存在
(4)不需要在节点上安装额外的物理网卡
(5)不属于任何资源组
(6)可以被用于在群集中访问指定的节点进行管理工作
(7)在节点启动后即可用,当HACMP服务停止后也始终保持可用
(8)在以太网、令牌环网、FDDI以及ATM LANE网络中都可被配置
(9)不能在SP交换机、ATM传统IP网和串行网络上进行配置
(10)和配置的服务IP标识(service IP label)和启动IP标识(boot IP label)使用同一块网卡
(11)如果节点失败,该IP标识不会迁移到群集中的其它节点
(12)如果网卡失败,它只会迁移到相同网络的同一个节点上的其它网卡
(13)每个网络的每个节点上只能配置一个永久的IP标识(persistent IP label)
3.子网的要求
(1)对于使用传统的IPAT的网络(不使用别名)
a.必须被配置为和网络中该节点上的所有standby IP标识在不同的子网
b.可以被配置为和网络中该节点上的service IP标识和boot IP标识在相同的子网或者是不同的子网
(2)对于使用别名的IPAT的网络
a.必须被配置为和网络中该节点上的所有boot IP标识在不同的子网
b.可以被配置为和网络中该节点上的作为boot网卡别名的service IP标识在相同的子网或者是不同的子网
Extended Configuration〉〉Extended Topology Configuration〉〉Configure HACMP Persistent Node IP Label/Addresses〉〉 Add a Persistent Node IP Label/Address
* Node Name test1
* Network Name net_ether_02
Node IP Label/Address test1_per
* Node Name test2
* Network Name net_ether_02
Node IP Label/Address test2_per
注意:永久ip 同步完后, ip 立即绑定到boot1 上。
同步:Extended Configuration〉〉Extended Verification and Synchronization
启动hacmp .
三. Hacmp 的监控和问题诊断
1. Clstat 监控hacmp
首先加路径:/usr/es/sbin/cluster 到/etc/environment 的path 中。
在aix5.2 下要对snmp 做一些调整才可以看到真正的hacmp的状态。
具体来说, aix 5.2 的 snmp 默认是version 3 :
test2:/usr/sbin>ls -l |grep snmp
lrwxrwxrwx 1 root system 8 Apr 08 17:55 clsnmp -> clsnmpne
-rwxr-x--- 1 root system 83150 Mar 12 2003 clsnmpne
-rwxr-x--- 1 root system 55110 Mar 12 2003 pppsnmpd
lrwxrwxrwx 1 root system 9 Apr 08 17:55 snmpd -> snmpdv3ne
而hacmp 只支持snmp version 1 . 所以我们要做一下调整:
stopsrc -s snmpd
/usr/sbin/snmpv3_ssw -1
startsrc -s snmpd
test2:/usr/sbin>ls -l |grep snmp
lrwxrwxrwx 1 root system 18 Apr 21 13:40 clsnmp -> /usr/sbin/clsnmpne
-rwxr-x--- 1 root system 83150 Mar 12 2003 clsnmpne
-rwxr-x--- 1 root system 55110 Mar 12 2003 pppsnmpd
lrwxrwxrwx 1 root system 17 Apr 21 13:40 snmpd -> /usr/sbin/snmpdv1
2. 启动hacmp时选择:
* Start now, on system restart or both[m now
Start Cluster Services on these nodes [test2]
BROADCAST message at startup? true
Startup Cluster Lock Services? false
Startup Cluster Information Daemon? true
Reacquire resources after forced down ? false
2. 执行clstat
clstat - HACMP Cluster Status Monitor
-------------------------------------
Cluster: ha51tsc (1082085119)
Wed Apr 21 13:55:33 BEIDT 2004
State: UP Nodes: 2
SubState: STABLE
Node: test1 State: UP
Interface: test1_boot1 (1) Address: 100.1.0.1
State: UP
Interface: test1_boot2 (1) Address: 192.168.0.1
State: UP
Interface: heartbeatdisk5 (0) Address: 0.0.0.0
State: UP
Interface: test1_svc (1) Address: 10.1.0.1
State: UP
Resource Group: res1 State: On line
Node: test2 State: UP
Interface: test2_boot1 (1) Address: 100.1.0.2
State: UP
Interface: test2_boot2 (1) Address: 192.168.0.2
State: UP
Interface: heartbeatdisk7 (0) Address: 0.0.0.0
State: UP
Interface: test2_svc (1) Address: 10.1.0.2
State: UP
Resource Group: res2 State: On line