11. 三、分别配置两台服务器的boot IP地址和Standby IP地址,保证boot 网和Standby网能ping通(用smit tcpip命令)
用netstat命令检查配置是否正确:
#netstat -i
四、利用smit tty在两台主机上增加一个TTY接口,配置心跳线(RS232):
#smitty tty
TTY tty0
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Status Available
Location 20-70-01-00
Parent adapter sa2
IBM HACMP双机系统的安装及配置(续)11
12. PORT number [0]
Enable LOGIN disable
BAUD rate [9600]
PARITY [none]
BITS per character [8]
Number of STOP BITS [1]
用lsdev –Cc tty查看tty是否配置好
#lsdev –Cc tty
在两台上分别输入如下命令:
S85_1# cat /etc/hosts >/dev/tty0
S85_2# cat
13. IBM HACMP双机系统的安装及配置(续)五、具体配置
注:HACMP的配置(或修改配置)只需要在其中的一台主机上进行,当配置(或修改)完毕后使用同步命令将配置结果传到另外一台主机上。一般选S85_1在进行配置
在S85_1上运行smit hacmp,然后按照下面的步骤进行配置:
#smit hacmp
1、Cluster Configuration
1.1、配置Cluster Topology
配置Configure Cluster/ Add a Cluster Definition
* Cluster ID [100] #
* Cluster Name [sb_ha]
配置Configure Nodes,增加两个Node
* Node Names [s85_a]
* Node Names [s85_b]13
14. IBM HACMP双机系统的安装及配置(续)配置Configure Adapters,分别配置两台机的service地址,boot地址,standby地址及tty(a_svc、b_svc、a_boot、b_boot、a_stdby、b_stdby、a_tty、b_tty)
* Adapter IP Label a_svc
Network Type [ether]
Network Name [ethnet]
Network Attribute public
Adapter Function service
Adapter Identifier [172.16.1.1]
Adapter Hardware Address [ ]
Node Name [s85_a]
修改/etc/hosts及/.rhosts文件,如:
14
16. IBM HACMP双机系统的安装及配置(续)1.2、同步cluster(Cluster Configuration/ Cluster Topology/
Synchronize Cluster Topology)
在进行同步的时候可以先进行模拟(Emulate)同步,当模拟同步
OK后再进行实际(actual)同步
Synchronize Cluster Topology
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
Ignore Cluster Verification Errors? [No] +
* Emulate or Actual? [Emulate] +
16
18. IBM HACMP双机系统的安装及配置(续)3、配置Cluster Resources
3.1 定义一个资源组(Define Resource Groups)
注意,在定义资源组的时候,要注意Participating Node Names的先后顺序
Resource Group Name data_res
New Resource Group Name []
Node Relationship cascading
Participating Node Names [s85_a s85_b]
3.2 定义应用服务器(Define Application Servers)
Server Name ora_app
New Server Name [ ]
start Script [/etc/start]
Stop Script [/etc/stop]18
19. IBM HACMP双机系统的安装及配置(续)3.3、修改资源组属性(Change/Show Resources for a Resource Group)
data_res组:
Resource Group Name data_res
Node Relationship cascading
Participating Node Names s85_a s85_b
Service IP label [a_svc]
Filesystems(default is all) []
Filesystems Consistency Check fsck
Filesystems Recovery Method sequential
Filesystems to Export []
Filesystems to NFS mount []
Volume Groups [datavg logvg]
Concurrent Volume groups []
Raw Disk PVIDs []
Application Servers [ora_app]
19
20. IBM HACMP双机系统的安装及配置(续)3.4、 同步资源组(Synchronize Cluster Resources)
在进行同步的时候可以先进行模拟(Emulate)同步,当模拟同步
OK后再进行实际(actual)同步
Synchronize Cluster Resources
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
Ignore Cluster Verification Errors? [No] +
* Emulate or Actual? [Emulate] +
20
25. 三、磁盘阵列的划分(非concurrent方式)
1、在A机上增加一个卷组(Add a Volume Group)
#smit vg
VOLUME GROUP name [datavg]
Physical partition SIZE in megabytes 64
* PHYSICAL VOLUME names [vpath0 vpath1 vpath2 …]
Activate volume group AUTOMATICALLY no
at system restart
Volume Group MAJOR NUMBER []
Create VG Concurrent Capable? no
IBM磁盘阵列及文件系统的管理(续)25
26. IBM磁盘阵列及文件系统的管理(续)2、激活一个卷组
#varyonvg datavg
#lsvg -o 如果能看到datavg,则正常
3、创建LV
#smit mklv
输入LV的name,大小,所属VG即可
4、创建文件系统
#smit crjfs
Mount AUTOMATICALLY no
at system restart?
Start Disk Accounting no.
26
28. 7、在B机上使用importvg命令将datavg import到B机上来
#smit importvg
VOLUME GROUP name [datavg]
PHYSICAL VOLUME name [vpath0]
ACTIVATE volume group yes
after it is imported?
#lsvg -o 如果能看到datavg,则表示磁盘阵列切换正常
8、设置VG的属性(Changing a Volume Group’s Startup Status)
#smit chvg
Activate volume group [no]
automatically at system restart?
A QUORUM of disks [ ]
required to keep the volume
group online?IBM磁盘阵列及文件系统的管理(续)28