在此之前我们已经设计好了cluster、定义了TCP/IP网络、串口网络、LVM。下面就要开始安装HA软件包了。
Smitty install,smitty知道吧,我就不多说了。
选择安装:
Cluster.adt.*
Cluster.base.*
Cluster.cspoc
Cluster.msg
以上是4.x下的,5把标版和ES版合并了,所以小有变化。
安装的时候如果提示有包没有装的话,先装一下。
软件装好了就开始配置吧。
先看HA4.5。5的变化比较大,回头再说。
Smitty hacmp
HACMP
Move cursor to desired item and press Enter.
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
Cluster Configuration
Move cursor to desired item and press Enter.
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
Cluster Topology
Move cursor to desired item and press Enter.
Configure Cluster
Configure Nodes
Configure Adapters
Configure Sites
Configure Networks
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
Configure Cluster
Move cursor to desired item and press Enter.
Add a Cluster Definition
Change / Show Cluster Definition
Remove Cluster Definition
Add a Cluster Definition
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
**NOTE: Cluster Manager MUST BE RESTARTED
in order for changes to be acknowledged.**
* Cluster ID [1] #
* Cluster Name [test_cluster]
注意:Cluster ID在同一网络内必须是唯一的。
Configure Nodes
Move cursor to desired item and press Enter.
Add Cluster Nodes
Change / Show Cluster Node Name
Remove a Cluster Node
Add Cluster Nodes
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Node Names [servera serverb]
使用一个有意义的标示,如hostname。
可以同时添加多个节点,用空格分开。
Configure Networks
Move cursor to desired item and press Enter.
Configure IP-based Networks
Configure Non IP-based Networks
Add an IP-based Network
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Network Name [tcp_1]
* Network Attribute public +
Network Type [ether] +
Su.net(s) [192.168.1.0/24] +
Configure Adapters
Move cursor to desired item and press Enter.
Configure IP-based Interfaces / IP Labels
Configure Adapters on Non IP-based networks
Configure IP-based Interfaces / IP Labels
Move cursor to desired item and press Enter.
Add Initial Interfaces
Discover IP Topology
Add Multiple IP-based Interfaces
Add Multiple Service IP Labels to a Network
Add IP Labels Requiring Individual Configuration
Change / Show an Interface / IP Label
Remove Interface(s) / Label(s)
Add an Initial Interface
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* IP Label [servera_boot]
Network Type ether
Network Name tcp_1
* Interface Function [boot]
Interface IP Address [198.162.1.1]
* Node Name [servera]
Netmask []
就这样把所有节点中的boot、service和standby网卡都设好。注意Network Name要和hosts里的label一样。Ip地址和netmask可以自动从hosts中获得。
下面设置心跳:
Add a Non IP-based Network
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Network Name [serialnet0]
* Network Type [rs232]
Add a Non IP-based Adapter
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Adapter Label [servera_tty]
Network Type rs232
Network Name serialnet0
* Device Name [/dev/tty3]
* Node Name [servera]
把所有的节点的心跳都配置好拓扑就ok了。
下面同步拓扑结构:
Synchronize Cluster Topology
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Ignore Cluster Verification Errors? [No]
* Emulate or Actual? [Actual]
* Skip Cluster Verification [No]
Note:
Only the local node's default configuration files
keep the changes you make for topology DARE
emulation. Once you run your emulation, to
restore the original configuration rather than
running an actual DARE, run the SMIT command,
"Restore System Default Configuration from Active
Configuration."
We recommend that you make a snapshot before
running an emulation, just in case uncontrolled
cluster events happen during emulation.
NOTE:
If the Cluster Manager is active on this node,
synchronizing the Cluster Topology will cause
the Cluster Manager to make any changes take
effect once the synchronization has suclearcase/" target="_blank" >ccessfully
completed.