AIX PowerHA은 IBM이 제공하는 고가용성 클러스터링 솔루션입니다. 이 솔루션을 사용하면 여러 서버를 하나의 클러스터로 그룹화하여 애플리케이션의 가용성과 성능을 향상시킬 수 있습니다.
AIX PowerHA 7.1 클러스터 설치
Setup a Cluster, Nodes and Networks
#/usr/es/sbin/cluster/utilities/clmgr add cluster $cluster_name NODES=”$node_list”
/usr/es/sbin/cluster/utilities/clmgr add cluster CL_khmin NODES=”gpfsrac1 gpfsrac2 gpfsrac3″
AIX PowerHA HA 노드 추가
/usr/es/sbin/cluster/utilities/clmgr add cluster PRD_HA NODES=”gpfsrac1_mgr gpfsrac2_mgr”
Define Repository and Cluster IP Address
#/usr/es/sbin/cluster/utilities/clmgr add repository $repos_disk DISABLE_VALIDATION=true
/usr/es/sbin/cluster/utilities/clmgr add repository hdisk2 DISABLE_VALIDATION=true
CAN BE SKIPPED if don’t need to configure another cluster IP
/usr/es/sbin/cluster/utilities/clmgr modify cluster CLUSTER_IP=$cl_ipaddr
Synchronize Cluster to create CAA across all nodes configured
/usr/es/sbin/cluster/utilities/clmgr sync cluster
Add Application Controller Scripts
/usr/es/sbin/cluster/utilities/claddserv -s’APP_gpfsrac1′ -b’/usr/es/sbin/cluster/scripts/start_ha1.sh’ -e’/usr/es/sbin/cluster/scripts/stop_ha1.sh’
/usr/es/sbin/cluster/utilities/claddserv -s’APP_gpfsrac2′ -b’/usr/es/sbin/cluster/scripts/start_ha2.sh’ -e’/usr/es/sbin/cluster/scripts/stop_ha2.sh’
/usr/es/sbin/cluster/utilities/claddserv -s’APP_gpfsrac3′ -b’/usr/es/sbin/cluster/scripts/start_ha3.sh’ -e’/usr/es/sbin/cluster/scripts/stop_ha3.sh’
Add a Service IP Label/Address
You need to check how many net_ether has been configured and which net_ether you really want to choose
#/usr/es/sbin/cluster/utilities/clmgr add service_ip $IP NETWORK=$NW
/usr/es/sbin/cluster/utilities/clmgr add service_ip ha1_svc NETWORK=net_ether_01
/usr/es/sbin/cluster/utilities/clmgr add service_ip ha2_svc NETWORK=net_ether_01
/usr/es/sbin/cluster/utilities/clmgr add service_ip ha3_svc NETWORK=net_ether_01
If you want to configure “Source IP Label for outgoing packets”
/usr/es/sbin/cluster/utilities/clmodnetwork -m -n’net_ether_01′ -p’sldp_anti_collocation_and_first’ -f’ha1_svc’
Add a Resource Group
Fallback : never fall back
/usr/es/sbin/cluster/utilities/claddgrp -g ‘RG_ha1’ -n ‘gpfsrac1 gpfsrac3’ -S ‘OHN’ -O ‘FNPN’ -B ‘NFB’
/usr/es/sbin/cluster/utilities/claddgrp -g ‘RG_ha2’ -n ‘gpfsrac2 gpfsrac3’ -S ‘OHN’ -O ‘FNPN’ -B ‘NFB’
/usr/es/sbin/cluster/utilities/claddgrp -g ‘RG_ha3’ -n ‘gpfsrac3 gpfsrac2’ -S ‘OHN’ -O ‘FNPN’ -B ‘NFB’
Change/Show Resources and Attributes for a Resource Group
/usr/es/sbin/cluster/utilities/claddres -g ‘RG_ha1′ SERVICE_LABEL=’ha1_svc’ APPLICATIONS=’APP_gpfsrac1′ VOLUME_GROUP=’VG_ha1′
/usr/es/sbin/cluster/utilities/claddres -g ‘RG_ha2′ SERVICE_LABEL=’ha2_svc’ APPLICATIONS=’APP_gpfsrac2′ VOLUME_GROUP=’VG_ha2′
/usr/es/sbin/cluster/utilities/claddres -g ‘RG_ha3′ SERVICE_LABEL=’ha3_svc’ APPLICATIONS=’APP_gpfsrac3′ VOLUME_GROUP=’VG_ha3′
Discover 안된 Disk 를 정의하면 정상적으로 update 가 안되는거 같음. 정상적이면 아래 2 메세지중에 발생
Auto Discover/Import of Volume Groups was set to true.
Gathering cluster information, which may take a few minutes.
Importing volume group VG_ha2 to the following node(s): gpfsrac1
gpfsrac1: Volume group VG_ha2 has been updated.
gpfsrac3: Volume group VG_ha2 has been updated.
gpfsrac2: Volume group VG_ha2 has been updated.
Auto Discover/Import of Volume Groups was set to true.
Gathering cluster information, which may take a few minutes.
Synchronize Cluster
/usr/es/sbin/cluster/utilities/clmgr sync cluster
Cluster Status Check
/usr/sbin/clcmd odmget HACMPtopsvcs | grep -i Instance
/usr/sbin/clcmd lssrc -ls clstrmgrES | grep stateHACMP Start up
/usr/es/sbin/cluster/cspoc/fix_args nop cl_rc.cluster ‘-N’ -cspoc-n ‘gpfsrac1’ ‘-A’ ‘-C interactive’
/usr/es/sbin/cluster/cspoc/fix_args nop cl_rc.cluster ‘-N’ -cspoc-n ‘gpfsrac2’ ‘-A’ ‘-C interactive’
/usr/es/sbin/cluster/cspoc/fix_args nop cl_rc.cluster ‘-N’ -cspoc-n ‘gpfsrac3’ ‘-A’ ‘-C interactive’