whict_feng2013
作者whict_feng20132013-02-25 15:29
软件开发工程师, 日出科技

HACMP安装、配置,施实全过程

字数 10622阅读 11947评论 27赞 41

环境:两台P630P630_1P630_2
磁盘陈列:7133-D40
共享卷组:oravg

1
在两台计算机上设置IP地址
1 p630_1机上:
A.
配置第一块boot网卡
->#smitty
->Communications Applications and Services
->TCP/IP
->Minimum Configuration & Startup

select en2

* HOSTNAME [p630_1]
* Internet ADDRESS (dotted decimal) [10.10.9.1]
Network MASK (dotted decimal) [255.255.255.0]
* Network INTERFACE en1
NAMESERVER
Internet ADDRESS (dotted decimal) []
DOMAIN Name []
Default GATEWAY Address []

B.
配置第二块boot网卡
->#smitty
->Communications Applications and Services
->TCP/IP
->Minimum Configuration & Startup

select en1

* HOSTNAME [p630_1]
* Internet ADDRESS (dotted decimal) [10.10.10.1]
Network MASK (dotted decimal) [255.255.255.0]
* Network INTERFACE en3
NAMESERVER
Internet ADDRESS (dotted decimal) []
DOMAIN Name []
Default GATEWAY Address []

2 p630_2机上:
A.
配置第一块boot网卡
->#smitty
->Communications Applications and Services
->TCP/IP
->Minimum Configuration & Startup

select en2

* HOSTNAME [p630_2]
* Internet ADDRESS (dotted decimal) [10.10.9.2]
Network MASK (dotted decimal) [255.255.255.0]
* Network INTERFACE en1
NAMESERVER
Internet ADDRESS (dotted decimal) []
DOMAIN Name []
Default GATEWAY Address []


B.
配置第二块boot网卡
->#smitty
->Communications Applications and Services
->TCP/IP
->Minimum Configuration & Startup

select en1

* HOSTNAME [p630_2]
* Internet ADDRESS (dotted decimal) [10.10.10.2]
Network MASK (dotted decimal) [255.255.255.0]
* Network INTERFACE en3
NAMESERVER
Internet ADDRESS (dotted decimal) []
DOMAIN Name []
Default GATEWAY Address []

2
修改/etc/hosts文件,内容如下:
127.0.0.1 loopback localhost p630_1
10.10.9.1 boot_11 p630_1
10.10.10.1 boot_12 p630_1
192.168.1.1 service1
10.10.9.2 boot_21 p630_2
10.10.10.2 boot_22 p630_2
192.168.1.2 service2
3
p630_1上建立共享卷组
建立oravg共享卷组
->#smitty
->System Storage Management (Phisical & Logical Storage)
->Logical Volume Manager
->Volume Groups
->Add a Volume Group

VOLUME GROUP name [oravg]
Physical partition SIZE in megabytes [128]
* PHYSICAL VOLUME names [hdisk2]
Activate volume group AUTOMATICALLY [no]
at system restart?
Volume Group MAJOR NUMBER []
Create VG concurrent Capable? [yes]
Auto-varyon in Concurrent Mode? [no]

4
p630_2import共享卷组
1 import oravg共享卷组
->#smitty
->System Storage Management (Phisical & Logical Storage)
->Logical Volume Manager
->Volume Groups
->Import a Volume Group

VOLUME GROUP name [oravg]
* PHYSICAL VOLUME name [hdisk2]
Volume Group MAJOR NUMBER []
Make this VG Concurrent Capable no
Make default varyon of VG Concurrent? no

2 修改oravg共享卷组属性
->#smitty
->System Storage Management (Phisical & Logical Storage)
->Logical Volume Manager
->Volume Groups
->Set Characteristics of a Volume Group
->Change a Volume Group

select * VOLUME GROUP name [oravg]

VOLUME GROUP name [oravg]
* ACTIVATE volume group AUTOMATICALLY [no]
at system restart?
* A QUORUM of disks required to keep the volume [yes]
group on-line?
Convert this VG to Concurrent Capable? [no]
* Autovaryon VG in Concurrent Mode? [no]

5
p630_1 p630_2上配置非TCP/IP网络
->#smitty
->Devices
->TTY
->Add a TTY

select tty rs232 Asynchronous Terminal

TTY type [tty]
TTY interface [rs232]
Description [Terminal asynchrone]
Parent adapter [sa3]
* PORT number [0]
BAUD rate [9600]
PARITY [none]
BITS per characte Music [8]
Number of STOP BITS [1]
TERMINAL type [dumb]
STATE to be configured at boot time [available]
...
...
Enable LOGIN [disable]
Serial to Serial Cable连接一号机和二号机的COM3,作为HACMP的心跳线
测试心跳线:
1)
p630_1机上执行: cat < /dev/tty0
2)
p630_2上执行: cat /etc/hosts > /dev/tty0
3)
p630_1上若显示出p630_2/etc/hosts文件内容,说明心跳线配置正确

6
建立应用服务器启动脚本
/etc/hascript下分别建立dbstart.sh, dbstop.sh, 然后修改文件属性为755:
#chomd 755 *

7
HACMP的设置
1)定义CLUSTER
->Initialization and Standard Configuration
->Add Nodes to an HACMP Cluster
Add/Change/Show an HACMP Cluster

[
输入字段]
* Cluster Name [wly]

NOTE: HACMP must be RESTARTED
on all nodes in order for change to take effect

2)定义p630_1节点
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Nodes
-> Add a Node to the HACMP Cluster
Add a Node to the HACMP Cluster

[
输入字段]
* Node Name [p630_1]
Communication Path to Node [] +
2)定义p630_2节点
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Nodes
-> Add a Node to the HACMP Cluster
Add a Node to the HACMP Cluster

[
输入字段]
* Node Name [p630_1]
Communication Path to Node [] +

(3)
定义网络
A.
定义IP网络
-> Extended Configuration
->Extended Topology Configuration
->Configure HACMP Networks
-> Add a Network to the HACMP Cluster
Add an IP-Based Network to the HACMP Cluster

[
输入字段]
* Network Name [net_ether_01]
* Network Type ether
* Netmask [255.255.255.0] +
* Enable IP Address Takeover via IP Aliases [Yes] +
IP Address Offset for Heartbeating over IP Aliases []
B.
定义非IP网络
-> Extended Configuration
->Extended Topology Configuration
->Configure HACMP Networks
-> Add a Network to the HACMP Cluster
选择# Pre-defined Serial Device Types 中的rs232
Add a Serial Network to the HACMP Cluster
[
输入字段]
* Network Name [net_rs232_01]
* Network Type rs232

(4)
定义网络接口
A.
定义IP网络接口
定义Boot_11接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Interfaces
选择net_ether_01 (0.0.0.0/0)
Add a Communication Interface

[
输入字段]
* IP Label/Address [boot_11] +
* Network Type ether
* Network Name net_ether_01
* Node Name [p630_1] +
Network Interface []

定义Boot_12接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Interfaces
选择net_ether_01 (0.0.0.0/0)
Add a Communication Interface

[
输入字段]
* IP Label/Address [boot_12] +
* Network Type ether
* Network Name net_ether_01
* Node Name [p630_1] +
Network Interface []

定义boot_21接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Interfaces
选择net_ether_01 (0.0.0.0/0)
Add a Communication Interface

[
输入字段]
* IP Label/Address [boot_21] +
* Network Type ether
* Network Name net_ether_01
* Node Name [p630_2] +
Network Interface []

定义boot_22接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Interfaces
选择net_ether_01 (0.0.0.0/0)
Add a Communication Interface

[
输入字段]
* IP Label/Address [boot_22] +
* Network Type ether
* Network Name net_ether_01
* Node Name [p630_2] +
Network Interface []

B.
定义非IP网络接口
定义p630_1tty接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Device
选择 net_rs232_01
Add a Communication Device
[
输入字段]
* Device Name [p630_1tty]
* Network Type rs232
* Network Name net_rs232_01
* Device Path [/dev/tty0]
* Node Name [p630_1]

定义p630_2tty接口:
-> Extended Configuration
-> Extended Topology Configuration
->Configure HACMP Communication Interfaces/Devices
-> Add Communication Interfaces/Devices
选择 Add Pre-defined Communication Interfaces and Devices
选择 Communication Device
选择 net_rs232_01
Add a Communication Device
[
输入字段]
* Device Name [p630_2tty]
* Network Type rs232
* Network Name net_rs232_01
* Device Path [/dev/tty0]
* Node Name [p630_2]

(5)
定义应用服务器
定义wlyapp应用服务器:
->Initialization and Standard Configuration
->Configure Application Servers
->Add an Application Server
Add Application Server

[
输入字段]
* Server Name [wlyapp]
* Start Script [/etc/hascript/dbstart.sh]
* Stop Script [/etc/hascript/dbstop.sh]

(6)
定义共享资源组
定义wlyres资源组
->Initialization and Standard Configuration
->Configure HACMP Resource Group
->Add a Resource Group
选择Cascading
Add a Resource Group with a Cascading Management Policy (standard)

[
输入字段]
* Resource Group Name [wlyres]
*Participating Node Names (Default Node Priority) [p630_1 p630_2] +

(7)
修改资源组属性
修改wlyres资源组属性:
->Initialization and Standard Configuration
->Configure HACMP Resource Group
-> Change/Show Resources for a Cascading Resource Group(standard)
Change/Show Resources for a Cascading Resource Group

[
输入字段]
Resource Group Name wlyres
Participating Node Names (Default Node Priority) p630_2 p630_1
* Service IP Labels/Addresses [] +
Volume Groups [oravg] +
Filesystems (empty is ALL for VGs specified) [] +
Application Servers [wlyapp] +

(8)
定义Service IP
定义p630_1service IP地址:
->Initialization and Standard Configuration
->Configure Resources to Make Highly Available
->Configure Service IP Labeles/Addresses
->Add a service IP Labeles/Addresses
Add a Service IP Label/Address (standard)

[
输入字段]
* IP Label/Address [service1] +
* Network Name [net_ether_01] +

8
同步HACMP配置
->Initialization and Standard Configuration
-> Verify and Synchronize HACMP Comfiguration
Verify and Synchronize HACMP Comfiguration

[
输入字段]
* Verify, Synchronize or Both [Both] +
Force synchronization if verification fails? [No] +
* Verify changes only? [No] +
* Logging [Standard] +

9
HACMP服务的启动和停止
启动:
#smitty clstart
Start Cluster Services
[
输入字段]
* Start now, on system restart or both now +
Start Cluster Services on these nodes [p630_1] +
BROADCAST message at startup? true +
Startup Cluster Lock Services? false +
Startup Cluster Information Daemon? false +
Reacquire resources after forced down ? false +

停止:
#smitty clstop
Stop Cluster Services
[
输入字段]
* Stop now, on system restart or both now +
Stop Cluster Services on these nodes [p630_1] +
BROADCAST cluster shutdown? true +
* Shutdown mode graceful+

 

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

41

添加新评论27 条评论

乔爸乔爸数据库管理员, 软通动力
2016-12-15 17:16
学习一下
xw721xwxw721xw系统架构师, 北明软件
2013-09-11 14:28
扯淡吧!!LZ,你这个说的一点都不明确呀!

第一:没有persistentip
第二:也没有说明HACMP 版本
第三:如果真的按你的配置去实施,那肯定是会坑死N躲人的!
wuwenpinwuwenpin软件开发工程师, 南京
2013-05-29 08:39
很有代表性。支持一下!
what250what250系统工程师, gds
2013-05-23 12:45
学习学习!
uisftechuisftech软件开发工程师, 联创智融
2013-04-17 09:50
谢谢分享,学习了
ss33205687ss33205687数据库管理员, 西安
2013-04-10 11:00
后边加一些接管测试,就非常oK
quanyuan2010quanyuan2010项目经理, boya
2013-04-08 13:19
谢谢分享,
chgxtonychgxtony学生, zjut
2013-04-07 08:05
学习!谢谢分享
jiaxinchao77jiaxinchao77技术经理, raysdata.Ltd
2013-04-03 19:11
分享一下不错
frog_hongfrog_hong系统架构师, 湖南长沙科技有限公司
2013-03-31 17:03
学习!!!!
aleckuoaleckuo系统工程师, 敦陽科技
2013-03-25 16:51
学习!!谢谢分享!
RakasRakas系统工程师, 某股份制银行
2013-03-21 09:28
前段时间刚好也配置过一次,看LZ的文章再复习一次
larry001larry001系统运维工程师, 思达奇
2013-03-18 15:22
学习!!!!!!!!!!!
shlei6067shlei6067数据库管理员, NJ
2013-03-18 09:55
只可惜我目前是只能看,没机会实践。
sentimental2009sentimental2009系统架构师, BF
2013-03-17 21:29
...................
331929818331929818其他, 河南思源网络
2013-03-15 08:21
不错的文档 收了
wfwtwfwt运维工程师, 京北方科技股份有限公司
2013-03-14 22:02
虽然没搞过,但是先收藏了,留着以后用。
huang508huang508软件开发工程师, 南昌市
2013-03-14 13:21
myth007myth007系统管理员, 亚信联创集团股份有限公司
2013-03-14 12:31
留个脚印
夏云静涌夏云静涌系统工程师, 北京宇信易诚科技有限公司
2013-03-12 15:31
没搞过,学习了。
chess2009chess2009系统运维工程师, cqupt
2013-03-10 20:37
学习了~
hsluckyboyshsluckyboys软件实施顾问, 海南华盛天涯水泥有限公司
2013-03-07 09:29
学习了,非常好,不错,幸福ing
jinruiweijinruiwei系统架构师, 敦阳(宁波)科技有限公司
2013-03-05 21:26
老经典的配置。不错啊
leon_yuanleon_yuan系统架构师, SZ
2013-02-28 16:26
Create VG concurrent Capable? [yes]

创建VG的时候,确定需要使用 concurrent 吗?
daoguo525daoguo525系统工程师, 世纪五岳(北京)科技有限公司
2013-02-28 13:05
非常好·谢谢分享!
wjxiaoitwjxiaoit系统工程师, SGC
2013-02-28 11:36
学习!!
浪子浪子系统架构师, 福州赢科
2013-02-25 21:27
学习了,给力
Ctrl+Enter 发表

本文隶属于专栏

AIX运维专栏
专注于AIX系统运维,系统管理。

作者其他文章

  • AIX的系统备份和恢复
    评论 0 · 赞 0
  • AIX中调整VMM
    评论 0 · 赞 0
  • HACMP经典配置
    评论 1 · 赞 0
  • Snap系统配置信息收集
    评论 0 · 赞 0
  • IBM P系列小型机日常维护
    评论 11 · 赞 2
  • 相关文章

    相关问题

    相关资料

    X社区推广