HACMP5.4配置文档
装好系统——做镜像——调Pagespace分区大小等——安装HA文件集(在系统盘里,参考HA必打补丁)——安装系统补丁(先装系统补丁再装HA文件集,有可能系统补丁会被卸掉)
安装HACMP:
先配置系统环境,修改hosts文件,路径/etc/hosts,用vi hosts进入,从127.0.0.1 loopback下面开始配置。
修改rhosts文件
路径/usr/es/sbin/cluster/etc再进入rhosts命令:vi rhosts
host1
host2
host1_boot
host1_stb
host1_per
host2_boot
host2_stb
host2_per
host_srv
改hosts文件
路径/etc再进入hosts,命令vi hosts
从127.0.0.1 loopback localhost 下面开始配置
192.168.5.22 host1_boot host1
192.168.6.22 host1_stb
192.168.7.22 host1_per
192.168.5.180 host2_boot host2
192.168.7.180 host2_per
192.168.7.100 host_srv
192.168.6.180 host2_stb host2
配置Cluster Name
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure an HACMP Cluster
Add/Change/Show an HACMP Cluster
* Cluster Name [名字] 名字随便选择
配置Cluster节点
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Nodes
Add a Node to the HACMP Cluste
*NodeName [NodeA]名字要好区分,例如node22
Communication Path to Node [p630a_boot] +选择对应的节点,例如node22,上面俩步要配置两次
discover一下
配置networks
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Add a Network to the HACMP Cluster
先配ether,再配rs232,直接选择确定,不用输入
创建IP通信接口
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Communication Interfaces/Devices
Add Communication Interfaces/Device
Add Discovered Communication Interfaces and Devices
Communication Interfaces
全部选择(en0,en1,en0,en1)确定,
Add Communication Interfaces/Device
Add Pre-defined Communication Interfaces and Devices
Communication Devices
选项:Device Name : host_tty0名字好区别就可以
Device Path:/dev/tty0路径不用更改
选完node22配完,改下名字选择node180配置
配置服务IP
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Persistent Node IP Label/Addresses
直接选择确定
配置HACMP资源
创建Applications Servers
# smitty hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Applications Servers
Add an Application Server
* Server Name [appserver] 名字随便写
* Start Script [/home/clstart.sh]
* Stop Script [/home/clstop.sh]路径不一定是home
添加Service IP
# smitty hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Service IP Labels/Addresses
Add a Service IP Label/Address
进去选择确认就可以
# smitty hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Group Configuration
Add a Resource Group
* Resource Group Name [rg_node_a]
Participating Nodes (Default Node Priority) [NodeA NodeB] 俩个节点一起选
配置资源组属性
# smitty hacmp
Extended Configuration
Extended Resource Configuration
Change/Show Resources and Attributes for a Resource Group
需要更改的设置:Application Servers [appserver] +
Volume Groups [datavg]+
Automatically Import Volume Groups ture+
同步HACMP配置
# smitty hacmp
Extended Configuration
Extended Verification and Synchronization
需要更改的配置:* Automatically correct errors found during [Interactively] +
启动HACMP
smitty clstart
查看双机有没有起来:/usr/es/sbin/cluster/clstat -a,
查看cluster状态:lssrc -g cluster
查看起来情况: # smitty hacmp
System Management (C-SPOC)
Manage HACMP Services
Show Cluster Services
clcomdES ;clstrmgrES;clinfoES三项都必须起来,没有起来的可以手动操作,例如命令:startsrc -s clcomdES
停止HACMP
smitty clstop
lssrc -g cluster查看情况,没有关闭的手动关闭,例如命令:stopsrc -s clcomdES
最后才删除原来的配置
HA必打文件集:
Bos.clvm.enh
Bos.data
Rsct.basic(Rsct.basic.hacmp,Rsct.basic.rte,Rsct.basic.sp)
Bos.perf.tools
Perfagent.tools
Bos.adt.syscalls
Bos.adt.libm
Rsct.compt.basic(Rsct.compat.basic.hacmp,Rsct.compat.basic.rte,Rsct.compat.basic.sp)
Rsct.compat.clients(Rsct.compat.clients.hacmp,Rsct.compat.clients.rte,Rsct.compat.clients.sp)
Bos.net
x11.dt
x11.compat
x11.vfb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
discover一下
配置networks
# smitty hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Add a Network to the HACMP Cluster
先配ether,再配rs232,直接选择确定,不用输入,
可是我点了确定后无法继续下去了