IBMPowerAIX61+Ha71配置方法.docx
《IBMPowerAIX61+Ha71配置方法.docx》由会员分享,可在线阅读,更多相关《IBMPowerAIX61+Ha71配置方法.docx(30页珍藏版)》请在冰豆网上搜索。
IBMPowerAIX61+Ha71配置方法
1.说明2
1.1.文档说明2
1.2.注意事项2
2.安装环境3
2.1.硬件,带HMC3
2.2.软件3
3.规划3
3.1.拓扑结构规划3
3.2.应用服务器规划3
3.3.资源组规划4
4.安装步骤4
4.1.配置2台小机的IP地址。
4
4.2.安装PowerHa双机软件,并且升级双机软件。
4
4.3.编辑/etc/hosts与/etc/cluster/rhosts文件。
4
4.4.在主机的终端上输入:
smittyhacmp5
4.4.1.初始化一个群集5
4.4.2.配置存储库磁盘9
4.4.3.群集和存储库磁盘创建完成后,可以先同步下双机。
10
4.4.4.在存储上分别映射2块数据盘过来,然后在HA主备机里面执行cfgmgr–v命令。
11
4.4.5.建立PersistentNodeIPAddresses11
4.4.6.创建资源组13
4.4.7.配置服务IP14
4.4.8.配置应用程序启停脚本14
4.4.9.使双机可以发现存储映射过去的磁盘14
4.4.10.存储映射过去的盘添加到双机资源组中15
4.4.11.同步双机配置17
5.双机的基本操作21
5.1.双机的启动21
5.2.双机的停止21
5.3.双机状态的查看22
5.4.保存snapshot22
6.双机的切换测试22
6.1.手工停服务器测试22
6.2.切换资源组23
6.2.1.Smittycspoc23
6.2.2.切换应用23
6.3.模拟网卡故障测试23
6.4.模拟服务器异常宕机测试24
7.双机的其他操作24
7.1.lscluster–d命令24
7.2.lscluster–m命令24
7.3.usr/es/sbin/cluster/utilities/clmgrquerycluster命令25
7.4.usr/es/sbin/cluster/utilities/cltopinfo命令26
7.5.usr/es/sbin/cluster/utilities/clmgrviewreporttopology命令27
7.6.更换心跳磁盘【心跳盘、repositorydisk】的命令28
1.说明
1.1.文档说明
本文的环境是在AIX6.1操作系统下安装配置hacmp7.1.1.1的步骤,其它版本的系统安装配置基本类似,不同之处,请参考IBM的官方文档。
1.2.注意事项
配置hacmp的一些注意事项:
1.2.1.安装的版本要符合数据中心的版本策略要求
1.2.2.安装前要做好规划,了解应用要实现什么样的高可靠性需求
1.2.3.HA可以实现排除单点故障,但不是冗余,因此关键部件还要有冗余配置,如电源模块、双HBA卡、rootvg镜像等
1.2.4.配置为HA的主、备节点不能是同一台物理服务器上的两个逻辑分区
1.2.5.存储厂商在HA环境下有定制的磁盘解锁脚本,EMC、HDS存储,在HA的addcustomdiskmethods中增加厂商自定义脚本。
1.2.6.编写的应用启停脚本要事先手工执行测试,并且确保停止脚本在系统异常时可以停止应用,以释放资源。
1.2.7.HA配置完成后,不要将HA的服务设置为自启动模式,即HA服务的启动,要手工启动
1.2.8.HA配置完成后,要模拟各种故障场景,充分测试接管功能是否正常。
2.安装环境
2.1.硬件,带HMC
Server1:
IBMPower730(8231E2C)
Server2:
IBMPower730(8231E2C)
2.2.软件
2.2.1.OS环境:
6100-08-02-1316
2.2.2.HA环境:
7.1.1.1
3.规划
3.1.拓扑结构规划
net_ether_01规划
群集名称
节点名称
网络名称
BootLabel
PersistentLabel
ServiceLabel
hisserver_cluster
hisserver1
net_ether_01
hisserver1_boot2
hisserver1_per
hisserver1_service
Hisserver2
hisserver2_boot2
hisserver2_per
hisserver2_service
3.2.应用服务器规划
应用服务器名称
应用服务器启动脚本路径
应用服务器停止脚本路径
app1
/usr/es/script/start.sh
/usr/es/script/stop.sh
3.3.资源组规划
资源组名称
参入节点
应用服务器
ServiceIPLabel
卷组
rg1
hisserver1
app1
hisserver1_service
datavg
hisserver2
backupvg
4.安装步骤
4.1.配置2台小机的IP地址。
名称
En0
En2
Hisserver1
10.52.1.1/24
10.52.2.1/24
Hisserver2
10.52.1.2/24
10.52.2.2/24
4.2.安装PowerHa双机软件,并且升级双机软件。
4.3.编辑/etc/hosts与/etc/cluster/rhosts文件。
/etc/hosts
127.0.0.1loopbacklocalhost
10.52.1.1hisserver1
10.52.1.2hisserver2
10.52.2.1hisserver1_boot2
10.52.2.2hisserver2_boot2
172.16.106.2hisserver1_per
172.16.106.3hisserver2_per
172.16.106.1hisserver1_service
172.16.106.4hisserver2_service
/etc/cluster/rhosts
hisserver1
hisserver2
hisserver1_boot2
hisserver2_boot2
hisserver1_per
hisserver2_per
/etc/hosts
#---------forhacmp--------------
10.10.2.2cell_bup_svc
10.10.2.4cell_his_svc
192.168.2.60kacppt01_boot1KACPPT01
192.168.3.60kacppt01_boot2
10.10.2.60kacppt01_per
192.168.2.61kacppt02_boot1
192.168.3.61kacppt02_boot2
10.10.2.61kacppt02_per
#--------------------------------
4.4.在主机的终端上输入:
smittyhacmp
4.4.1.初始化一个群集
4.4.1.1.
MovecursortodesireditemandpressEnter.
ClusterNodesandNetworks
ClusterApplicationsandResources
SystemManagement(C-SPOC)
ProblemDeterminationTools
CustomClusterConfiguration
Can'tfindwhatyouarelookingfor?
Notsurewheretostart?
4.4.1.2.
MovecursortodesireditemandpressEnter.
InitialClusterSetup(Typical)
ManagetheCluster
ManageNodes
ManageNetworksandNetworkInterfaces
DiscoverNetworkInterfacesandDisks
VerifyandSynchronizeClusterConfiguration
4.4.1.3.
MovecursortodesireditemandpressEnter.
SetupaCluster,NodesandNetworks
DefineRepositoryDiskandClusterIPAddress
WhataretherepositorydiskandclusterIPaddress?
4.4.1.4.
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
ClusterNamehisserver_cluster
CurrentlyConfiguredNode(s)hisserver1hisserver2
当初始化完成群集之后,群集的网络、网络接口都已经自动配置好了。
----------------------------------------------info--------------------------------------------------------------------------
----start----
Warning:
tocompletethisconfiguration,arepositorydiskmustbedefined.
ClusterName:
hisserver_cluster
ClusterConnectionAuthenticationMode:
Standard
ClusterMessageAuthenticationMode:
None
ClusterMessageEncryption:
None
UsePersistentLabelsforCommunication:
No
RepositoryDisk:
None
ClusterIPAddress:
Thereare2node(s)and1network(s)defined
NODEhisserver1:
Networknet_ether_01
hisserver110.52.1.1
hisserver1_boot210.52.2.1
NODEhisserver2:
Networknet_ether_01
hisserver2_boot210.52.2.2
hisserver210.52.1.2
Noresourcegroupsdefined
Initializing..
Gatheringclusterinformation,whichmaytakeafewminutes...
Processing...
Storingthefollowinginformationinfile
/usr/es/sbin/cluster/etc/config/clvg_config
hisserver1:
Hdisk:
hdisk0
PVID:
00f874e355ef7a89
VGname:
rootvg
VGmajor:
10
Conc-capable:
No
VGactive:
Yes
Quorum-required:
No
hisserver2:
Hdisk:
hdisk0
PVID:
00f874e45588e2d4
VGname:
rootvg
VGmajor:
10
Conc-capable:
No
VGactive:
Yes
Quorum-required:
No
hisserver1:
Hdisk:
hdisk1
PVID:
00f874e3338b7141
VGname:
rootvg
VGmajor:
10
Conc-capable:
No
VGactive:
Yes
Quorum-required:
No
hisserver2:
Hdisk:
hdisk1
PVID:
00f874e43378f191
VGname:
rootvg
VGmajor:
10
Conc-capable:
No
VGactive:
Yes
Quorum-required:
No
hisserver1:
Hdisk:
hdisk2
PVID:
00f874e33239aab1
VGname:
None
VGmajor:
0
Conc-capable:
No
VGactive:
No
Quorum-required:
No
hisserver2:
Hdisk:
hdisk2
PVID:
00f874e33239aab1
VGname:
None
VGmajor:
0
Conc-capable:
No
VGactive:
No
Quorum-required:
No
FREEMAJORS:
51...
FREEMAJORS:
51...
Warning:
Thereisnoclusterfound.
cllsclstr:
Noclusterdefined.
cllsclstr:
Errorreadingconfiguration.
Communicationpathhisserver1discoveredanewnode.Hostnameishisserver1.AddingittotheconfigurationwithNodenamehisserver1.
Communicationpathhisserver2discoveredanewnode.Hostnameishisserver2.AddingittotheconfigurationwithNodenamehisserver2.
DiscoveringIPNetworkConnectivity
Retrievingdatafromavailableclusternodes.Thiscouldtakeafewminutes.
Startdatacollectiononnodehisserver1
Startdatacollectiononnodehisserver2
Collectoronnodehisserver1completed
Collectoronnodehisserver2completed
Datacollectioncomplete
Completed10percentoftheverificationchecks
Completed20percentoftheverificationchecks
Completed30percentoftheverificationchecks
Completed40percentoftheverificationchecks
Completed50percentoftheverificationchecks
Completed60percentoftheverificationchecks
Completed70percentoftheverificationchecks
Discovered[6]interfaces
Completed80percentoftheverificationchecks
Completed90percentoftheverificationchecks
Completed100percentoftheverificationchecks
IPNetworkDiscoverycompletednormally
Currentclusterconfiguration:
DiscoveringVolumeGroupConfiguration
----end----
4.4.2.配置存储库磁盘
4.4.2.1.
MovecursortodesireditemandpressEnter.
ClusterNodesandNetworks
ClusterApplicationsandResources
SystemManagement(C-SPOC)
ProblemDeterminationTools
CustomClusterConfiguration
Can'tfindwhatyouarelookingfor?
Notsurewheretostart?
4.4.2.2.
MovecursortodesireditemandpressEnter.
InitialClusterSetup(Typical)
ManagetheCluster
ManageNodes
ManageNetworksandNetworkInterfaces
DiscoverNetworkInterfacesandDisks
VerifyandSynchronizeClusterConfiguration
4.4.2.3.
MovecursortodesireditemandpressEnter.
SetupaCluster,NodesandNetworks
DefineRepositoryDiskandClusterIPAddress
WhataretherepositorydiskandclusterIPaddress?
4.4.2.4.
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
ClusterNamehisserver_cluster
RepositoryDiskhdisk2
ClusterIPAddress228.168.1.1
4.4.3.群集和存储库磁盘创建完成后,可以先同步下双机。
4.4.3.1.
MovecursortodesireditemandpressEnter.
ClusterNodesandNetworks
ClusterApplicationsandResources
SystemManagement(C-SPOC)
ProblemDeterminationTools
CustomClusterConfiguration
Can'tfindwhatyouarelookingfor?
Notsurewheretostart?
4.4.3.2.
MovecursortodesireditemandpressEnter.
InitialClusterSetup(Typical)
ManagetheCluster
ManageNodes
ManageNetworksandNetworkInterfaces
DiscoverNetworkInterfacesandDisks
VerifyandSynchronizeClusterConfiguration
同步完成后磁盘情况如下:
#lspv
hdisk000f874e355ef7a89rootvgactive
hdisk100f874e3338b7141rootvgactive
hdisk200f874e33239aab1caavg_privateactive
4.4.4.在存储上分别映射2块数据盘过来,然后在HA主备机里面执行cfgmgr–v命令。
#lspv
hdisk000f874e355ef7a89rootvgactive
hdisk100f874e3338b7141rootvgactive
hdisk200f874e33239aab1caavg_privateactive
hdisk3
hdisk4
主机上分别执行如下命令:
Chdev–lhdisk3–apv=yes
Chdev–lhdisk4–apv=yes
/usr/sbin/mkvg-y'datavg'-s'128''-f''-n'-V'53''-C'hdisk3
/usr/sbin/mkvg-y'backupvg'-s'128''-f''-n'-V'54''-C'hdisk4
varyonvgdatavg
varyonvgbackupvg
然后通过smittyjfs2建立文件系统。
备机上执行如下命令:
/usr/sbin/importvg-y'datavg'hdisk3
/usr/sbin/importvg-y'backupvg'hdisk4
4.4.5.建立PersistentNodeIPAddresses
4.4.5.1.
MovecursortodesireditemandpressEnter.
ClusterNodesandNetworks
ClusterApplicationsandResources
SystemManagement(C-SPOC)
ProblemDeterminationTools
CustomClusterConfiguration
Can'tfindwhatyouarelookingfor?
Notsurewheretostart?
4.4.5.2.
MovecursortodesireditemandpressEnter.
InitialClusterSetup(Typical)
ManagetheCluster
ManageNodes
Manage