IBM Power AIX 61+Ha 71配置方法.docx
- 文档编号:9287277
- 上传时间:2023-02-04
- 格式:DOCX
- 页数:28
- 大小:24.94KB
IBM Power AIX 61+Ha 71配置方法.docx
《IBM Power AIX 61+Ha 71配置方法.docx》由会员分享,可在线阅读,更多相关《IBM Power AIX 61+Ha 71配置方法.docx(28页珍藏版)》请在冰豆网上搜索。
IBMPowerAIX61+Ha71配置方法
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
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
ManageNetworksandNetworkInterfaces
DiscoverNetworkInterfacesandDisks
VerifyandSynchronizeClusterConfiguration
4.4.5.3.
MovecursortodesireditemandpressEnter.
ShowTopologyInformationbyNode
AddaNode
Change/ShowaNode
RemoveaNode
ConfigurePersistentNodeIPLabel/Addresses
VerifyandSynchronizeClusterConfiguration
4.4.5.4.
MovecursortodesireditemandpressEnter.
AddaPersistentNodeIPLabel/Address
Change/ShowaPersistentNodeIPLabel/Address
RemoveaPersistentNodeIPLabel/Address
配置完PersistentIP之后就可以利用PersistentIP登陆了。
4.4.6.创建资源组
4.4.6.1.
MovecursortodesireditemandpressEnter.
ClusterNodesandNetworks
ClusterApplicationsandResources
SystemManagement(C-SPOC)
ProblemDeterminationTools
CustomClusterConfiguration
Can'tfindwhatyouarelookingfor?
Notsurewheretostart?
4.4.6.2.
MovecursortodesireditemandpressEnter.
MakeApplicationsHighlyAvailable(UseSmartAssists)
Resources
ResourceGroups
VerifyandSynchronizeClusterConfiguration
4.4.6.3.
MovecursortodesireditemandpressEnter.
AddaResourceGroup
Change/ShowNodesandPoliciesforaResourceGroup
Change/ShowResourcesandAttributesforaResourceGroup
RemoveaResourceGroup
ConfigureResourceGroupRun-TimePolicies
Sh
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- IBM Power AIX 61+Ha 71配置方法 61 Ha 71 配置 方法