2008-4-17 09:11
heyse
求助HACMP5.4不能手动offline资源组的问题
[color=Red]我配置的HACMP5.4不能offline资源组;手工切换,拔网线倒换、异常掉电倒换,杀进程倒换等测试都是正常的,请各位老兄帮忙看看,哪儿存在问题[/color]
Broadcast message from root@VMS-PA1-A1 (tty) at 01:26:42 ...
HACMP/ES for AIX on VMS-PA1-A1 shutting down.
Please exit any cluster applications...
0513-044 the clinfoES subsystem was requested to stop
查看资源组的状态显示为online状态,但双机的服务已经为inoperative状态了,如下:
Status of the RSCT subsystems used by HACMP:
Subsystem Group PID Status
topsvcs topsvcs inoperative
grpsvcs grpsvcs inoperative
grpglsm grpsvcs inoperative
emsvcs emsvcs inoperative
emaixos emsvcs inoperative
ctrmc rsct 458984 active
Status of the HACMP subsystems:
Subsystem Group PID Status
clcomdES clcomdES 471050 active
clstrmgrES cluster 479288 active
Status of the optional HACMP subsystems:
Subsystem Group PID Status
clinfoES cluster inoperative
[color=Blue]以下为HACMP5.4的配置过程(其中有图片,现在省掉了,请见凉)[/color]
安装前的准备:
先配置好boot、standby网卡的IP地址。
然后修改相关的文件
#cat /etc/hosts --hosts配置为下面的格式:
127.0.0.1 loopback localhost # loopback (lo0) name/address
192.168.2.137 scp1_boot scp1
192.168.3.137 scp1_stb scp1
192.168.2.138 scp2_boot scp2
192.168.3.138 scp2_stb scp2
10.60.121.133 scp_svc scp
10.60.121.135 smt_svc smt
# cat /.rhosts --root用户的.rhosts文件配置为下面的格式:
scp
10.60.121.133
smt
10.60.121.135
scp1
192.168.2.137
192.168.3.137
scp2
192.168.2.138
192.168.3.138
编辑HACMP双机软件的rhosts文件,格式如下:
# cd /usr/es/sbin/cluster/etc
# pwd
/usr/es/sbin/cluster/etc
# cat rhosts
192.168.2.137
192.168.3.137
192.168.2.138
192.168.3.138
10.60.121.133
10.60.121.135
scp1_boot
scp1_stb
scp2_boot
scp2_stb
scp_svc
smt_svc
scp
smt
编辑HACMP双机软件的clhosts文件,在最后增加浮动IP。
#vi /usr/es/sbin/cluster/etc/clhosts
10.60.121.133
10.60.121.135
创建RS232 TTY
按照下列步骤,分别在主、备机上创建RS232TTY。
1. 以root用户登录AIX操作系统。
2. 创建RS232TTY。
3. 选择[tty rs232 Asynchronous Terminal]项。
4. 按<F4>键,从列表中选择COM口(注意其编号,然后选择如:sa0 Available 01-S4 Standard I/O Serial Port,一般为选项的最后一个COM口)。
5. 在创建界面中全部用缺省选项,
6. 按<ENTER>键创建。
检查双机间串口的连通性
按照下列步骤检查双机间的连通性。
1. 以root用户登录node1。
2. 检查连通性。
# cat < /dev/tty0
3. 以root用户登录node2。
4. 检查连通性。
# cat /etc/hosts > /dev/tty0
# cat < /dev/tty0
5. 以root用户登录node1。
6. 检查连通性。
# cat /etc/hosts > /dev/tty0
结果
node1上应该显示node2上的/etc/hosts文件的内容,不应该有乱码出现。
同理node2上应该显示node1上的/etc/hosts文件内容,不应该有乱码出现。
HACMP配置:
配置Cluster name
#smitty hacmp
----> Extended Configuration
----> Extended Topology Configuration
----> Configure an HACMP Cluster
----> Add/Change/Show an HACMP Cluster
配置双机节点
#smitty hacmp
Extended Configuration
----> Extended Topology Configuration
----> Configure HACMP Nodes
----> Add a Node to the HACMP Cluster
在Node Name中输入主机名scp1,在Communication Path to Node中通过F4/Esc4显示的IP列表中选择主机名scp1对应IP行scp1_boot。
然后同样加入另一个节点scp2。
[color=Blue]使用discover读出磁盘等相关配置[/color]
配置Cluster网络
a、增加网络名
#smitty hacmp
---- > Extended Configuration"
---- > Extended Topology Configuration
---- > Configure HACMP Networks
---- > Add a Network to the HACMP
在弹出的对话框中选中 # Pre-defined IP-based Network Types中的ether后:
在Network name栏中会默认生成一个网络名,保持默认如上图中的所有内容。
b、给刚才增加的网络名分配网卡。
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---->Configure HACMP Communication Interfaces/Devices
---- > Add Communication Interfaces/Devices
Add discovered communication interface and devices
选择communication interfaces
选择创建的网络名net_ether_01,按回车键。
选择主、备机的boot、standby网络配置信息。
c、增加串口,心跳资源。
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---->Configure HACMP Communication Interfaces/Devices
---- > Add Communication Interfaces/Devices
Add discovered communication interface and devices
选择communication devices
选择主、备机使用的串口
双机资源配置
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---- >HACMP Extended Resource Configuration
a、配置应用服务
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
----> HACMP Extended Resources Configuration
---- > Configure HACMP Applications
----> Configure HACMP Application Servers
---->Add an Application Server
输入应用服务名,启动、关闭脚本的路径。
创建第二个应用服务:app_scp和app_smtransf。
配置浮动IP(业务ip)
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
----> HACMP Extended Resources Configuration
---- > Configure HACMP Service IP Labels/Addresses
----> Add a Service IP Label/Address
Configurable on Multiple Nodes
在IP Laberl/Address栏按F4键,选择scp_svc。
创建第二个资源组的浮动ip:scp_svc和smt_svc。
配置资源组
smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---->HACMP Extended Resource Group Configuration
---- >Add a Resource Group
输入要创建的资源组名g_scp,包含的节点scp1、scp2,以及运行的策略如上图。
创建两个资源组rg_scp和rg_smtransf。
修改资源组
smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---->HACMP Extended Resource Group Configuration
---->Change/show resources and attributes for a resource group
修改rg_scp资源组:
在service IP_Labels/addresses栏中(按F4键),选择创建的浮动IP,在application servers栏中选择创建的应用服务app_scp,在volume Groups栏中选择要使用的卷组vgsybase,其它保持默认,如上图。
修改rg_smtransf资源组:
在service IP_Labels/addresses栏中(按F4键),选择创建的浮动IP(smt_svc),在application servers栏中选择创建的应用服务app_smtransf,其它保持默认,如上图
双机配置资源同步
#smitty hacmp
---- > Extended Configuration
---->Extended Verification and Synchronization
在automatically correct errors found during栏中选择interactively,表示发现错误后,系统自动纠错。
[font=宋体][size=10.5pt]至此双机配置完毕,[/size][/font][font=宋体][size=10.5pt],后面的工作就是启动双机,测试双机倒换等工作了。[/size][/font]