[AIX] HACMP双机配置
更新:HHH   时间:2023-1-7


1、smitty clstart
启动HA双机
2、smitty clstop
停止HA双机
3、stopsrc -s 双机进程名
停止单个HA双机进程
4、startsrc -s 双机进程名
启动单个HA双机进程

调试HACMP命令参考
运行中为调测可能需要暂停HACMP的监控功能,或者不停止HACMP而执行切换类似的操作,HACMP5.2均已提供类似功能,可供调测双机中使用。

Online激活运行资源组。
#smitty hacmp
选择“System Management (C-SPOC) > HACMP Resource Group and Application Management > Bring a Resource Group Online”。

offline停止运行资源组。
#smitty hacmp
选择“System Management (C-SPOC) > HACMP Resource Group and Application Management > Bring a Resource Group Offline”。

move切换资源组至另一节点。
#smitty hacmp
选择“System Management (C-SPOC) > HACMP Resource Group and Application Management > Move a Resource Group to Another Node”。
对单资源组来说,相当于所谓的双机自发切换,等同于switchflag功能。

Suspend/Resume挂起/恢复应用监控。
#smitty hacmp
选择“System Management (C-SPOC) > HACMP Resource Group and Application Management > Move a Resource Group to Another Node > Suspend/ Resume Application Monitoring”。
对系统来说,相当于haltflag功能。

Analysis应用可用性。
#smitty hacmp
选择“System Management (C-SPOC) > HACMP Resource Group and Application Management > Application Availability Analysis”。
此功能用于通过一段时间的运行,查看应用是否存在问题。

备份恢复HACMP配置。
备份HACMP配置
#smitty hacmp
选择“Extended Configuration > Snapshot Configuration > Add a Cluster Snapshot”。
在“Cluster Snapshot Name”字段输入备份后的文件名,在“Cluster Snapshot Description”字段中输入此次备份描述后,按“Enter”即可。

恢复HACMP配置
#smitty hacmp
选择“Extended Configuration > Snapshot Configuration > Apply a Cluster Snapshot”。
选择要恢复的文件名,确认文件备份时的描述后,按“Enter”即可。

其他常用命令。
HACMP5.2提供的其余功能菜单项在此处不再赘述,给出如下几个常用的查看命令,如表1所示。

表1 常用命令 命令
含义

#/usr/sbin/cluster/utilities/clfindres
查看系统双机资源状态。

#/usr/sbin/cluster/utilities/cllscf
查看系统双机网络配置情况。

#/usr/es/sbin/cluster/utilities/clshowres -n'flrdbsrv2'
查看系统双机资源配置一个节点情况。

#/usr/es/sbin/cluster/utilities/clshowres -g'appres'
查看系统双机资源配置一个资源组配置情况。

#clshowres
查看所有系统双机资源配置情况。

返回系统运维教程...