IBM System p5 服务器 HACMP 安装指南文档格式.docx
《IBM System p5 服务器 HACMP 安装指南文档格式.docx》由会员分享,可在线阅读,更多相关《IBM System p5 服务器 HACMP 安装指南文档格式.docx(16页珍藏版)》请在冰点文库上搜索。
![IBM System p5 服务器 HACMP 安装指南文档格式.docx](https://file1.bingdoc.com/fileroot1/2023-4/30/6f2a153a-5e80-432a-b513-25f7237d8ec6/6f2a153a-5e80-432a-b513-25f7237d8ec61.gif)
5.2.0.13
bos.adt.syscalls
5.2.0.11
.tcp.client
5.2.0.14
.tcp.server
bos.rte.SRC
bos.rte.libc
bos.rte.libcfg
bos.rte.libcur
bos.rte.libptdreads
5.2.0.12
bos.rte.odm
bos.data(requireforcluster.man.en_US.es)
bos.clvm.enh(requireforCLVM)
bos.rte.lvm.rte(requireforCLVM)
安装前的准备工作
本安装指南所提及的node1和node2分别表示安装HACMP的两台p5服务器,本例中采用IP别名方式做心跳,oracle应用做为上层应用。
安装HACMP前需完成以下工作:
配置集群网络
HACMP集群的IP地址分为三大类:
Bootip(也叫baseip)、Serviceip和Heartbeatip(使用IP做心跳时需要)。
这三种IP最好都在不同网段。
下面是本文中采用的IP分配,仅供参考:
集群网络配置
节点
IP类别
IP地址
IP标签
网络接口
node1
Bootip
192.168.25.23/16
ha1_bt1
en0
10.0.25.23/16
ha1_bt2
en1
node2
192.168.25.24/16
ha2_bt1
10.0.25.24/16
ha2_bt2
node1,node2
Serviceip
10.1.25.1/16
ha_svc1
Hearbeatipoffset
10.2.25.1/16
上例子中有IP标签的IP地址都需加入/etc/hosts文件。
/etc/hosts文件内容如下:
127.0.0.1loopbacklocalhost
192.168.25.23ha1_bt1
192.168.25.24ha2_bt1
10.0.25.23ha1_bt2
10.0.25.24ha2_bt2
10.1.25.1ha_svc1
因为Hearbeatipoffset是一个地址段,10.2.25.1/16只是一个起始地址,所以不需要加入到/etc/hosts中。
为保证主机名解析正确无误,修改AIX解析顺序:
#echo“hosts=local,bind”>
/etc/netsvc.conf
配置集群共享磁盘
如果采用EXP24作为共享存储,需更改SCSIID;
如果采用DS4000系列存储,可跳过此步。
EXP24作共享磁盘需更改服务器端的SCSI通道ID,以免SCSIID冲突。
默认SCSIID为7,可将其中一台服务器的SCSIID改为6或者8。
SCSIID的值越大,优先级越高,SCSIID的范围是1-15。
SCSIID的更改可在SMS菜单中进行,也可使用以下命令进行更改:
#chdev-aid=6-lscsi2-P
其中scsi2是服务器与EXP24连接的SCSI通道。
在node1上在创建共享磁盘卷组。
使用smitty_mkovg创建一个OriginalVG。
在VOLUMEGROUPname处输入卷组的名称,并在PHYSICALVOLUMEnames处选择共享磁盘中的pv,将ActivatevolumegroupAUTOMATICALLYatsystemrestart选项由yes改为no。
AddanOriginalVolumeGroup
[EntryFields]
VOLUMEGROUPname[datavg]
PhysicalpartitionSIZEinmegabytes+
*PHYSICALVOLUMEnames[hdisk3]+
FORCEthecreationofvolumegroup?
no+
ActivatevolumegroupAUTOMATICALLYno+
atsystemrestart?
VolumegroupMAJORNUMBER[]+#
CreateVGConcurrentCapable?
注意:
∙需要将卷组设置为系统开机时不自动激活,即将“ActivatevolumegroupAUTOMATICALLYatsystemrestart?
”的值设为NO。
∙如果采用磁盘心跳,需将磁盘心跳所在的磁盘的卷组设为concurrent模式的VG
在node1的共享磁盘卷组上创建逻辑卷及文件系统。
根据应用的要求创建相应大小的逻辑卷及文件系统。
在node1上使用以下命令反激活卷组。
#varyoffvg
添加tty设备(串口心跳)
在node1和node2上安装串口扩展卡,并用串口线将两个节点相连。
添加串口设备,将波特率设为9600。
使用smittymaktty命令添加串口设备,首先选择rs232作为终端类型,然后选择相应的异步适配器,最后回车出现以下界面。
AddaTTY
[TOP][EntryFields]
TTYtypetty
TTYinterfacers232
DescriptionAsynchronousTerminal
Parentadaptersa0
*PORTnumber[0]+
EnableLOGINdisable+
BAUDrate[9600]+
PARITY[none]+
BITSpercharacter[8]+
NumberofSTOPBITS[1]+
TIMEbeforeadvancingtonextportsetting[0]+#
TERMINALtype[dumb]
FLOWCONTROLtobeused[xon]+
[MORE...29]
在PORTnumber处选择端口号,在BAUDrate处选择波特率为9600,应保证两节点之间的串口端口的波特率相同。
测试串口是否工作正常。
在node1节点上进行以下操作:
node1#cat/etc/hosts>
/dev/tty0
在node2节点上进行以下操作:
node2#cat<
/dev/tty0
如果在node2上看到文字输入,表示串口工作正常
建立应用启动和停止脚本
分别在两个节点在创建应用启动和停止脚本,并让这两个脚本有执行权限。
两个节点的脚本的路径必须一致。
#touch/usr/sbin/start_oracle/usr/sbin/stop_oracle
#chmod+x/usr/sbin/start_oracle/usr/sbin/stop_oracle
安装步骤
安装HACMP软件及相应的补丁。
本安装指南讲述HACMP/ES的安装过程,如果需要使用HACMP/XD,请参考IBM相关资料进行正确安装。
将HACMPV5.4光盘放入光驱后,请安装以下软件包:
HACMP软件列表
HACMPFileset
Description
cluster.es
HACMP/ESBasicsoftware
cluster.es.cfs
HACMP/ESClusterFileSystemSupport
Cluster.es.cspoc
HACMP/ESCSPOC
Cluster.es.plugins
HACMP/ESplug-insoftware
Cluster.license
HACMPElectronicLicense
cluster.man.en_US.es
HACMP/ESenglishmanpages
建立集群:
通过以下路径进入添加集群界面,然后输入集群名称。
smittyhacmp->
ExtendedConfiguration->
ExtendedTopologyConfiguration->
ConfigureanHACMPCluster->
Add/Change/ShowanHACMPCluster
*ClusterName[ha_cluster]
添加节点:
通过以下路径进入添加集群节点界面,输入节点名和此节点的通信接口(这里使用上面提到的Bootip)。
ExtendedTopologyConfiguration->
ConfigureHACMPNodes->
AddaNodetotheHACMPCluster
添加节点1
[EntryFields]
*NodeName[node1]
CommunicationPathtoNode[ha1_bt1]
以相同方法添加第二个节点。
如果有多个节点,以此类推。
添加节点2
*NodeName[node2]
CommunicationPathtoNode[ha2_bt1]
在两节点上收集HACMP相关信息(可选):
通过以下路径进行集群信息收集。
DiscoverHACMP-relatedInformationfromConfiguredNodes
ExtendedConfiguration
ExtendedTopologyConfiguration
ExtendedResourceConfiguration
ExtendedClusterServiceSettings
ExtendedEventConfiguration
ExtendedPerformanceTuningParametersConfiguration
SecurityandUsersConfiguration
SnapshotConfiguration
ExportDefinitionFileforOnlinePlanningWorksheets
ExtendedVerificationandSynchronization
HACMPClusterTestTool
添加网络:
HACMP的网络分为Discoverednetwork和Pre-definednetwork两种,如果之前有收集HACMP的相关信息,可选Discoverednetwork;
否则,选择Pre-definednetwork。
此处可以根据此集群采用的心跳方式选择相应的网络,包括ethernetwork、diskhbnetwork和rs232network。
本例中我们采用IP别名方式做心跳。
ConfigureHACMPNetworks->
AddaNetworktotheHACMPCluster
我们采用IP网络做为心跳网络,在“IPAddressOffsetforHeartbeatingoverIPAliases”处填写心跳起始地址。
本例中每个节点有两个网口并且采用IP别名方式做心跳,所以心跳IP地址会采用10.2.25.1,10.2.25.2,10.3.25.1,10.3.25.2这四个IP地址。
AddanIP-BasedNetworktotheHACMPCluster
*NetworkName[net_ether_01]
*NetworkTypeether
*Netmask[255.255.0.0]+
*EnableIPAddressTakeoverviaIPAliases[Yes]+
IPAddressOffsetforHeartbeatingoverIPAliases[10.2.25.1]
添加通信接口:
ConfigureHACMPCommunicationInterfaces/Devices->
AddCommunicationInterfaces/Devices->
AddDiscoveredCommunicationInterfaceandDevices->
CommunicationInterfaces->
ALL
SelectPoint-to-PointPairofDiscoveredCommunicationDevicestoAdd
MovecursortodesireditemandpressF7.
ONEORMOREitemscanbeselected.
PressEnterAFTERmakingallselections.
[MORE…4]
en0ha1_bt1192.168.25.23
#net_ether_01/node1
en1ha1_bt210.0.25.23
#net_ether_01/node2
en0ha2_bt1192.168.25.24
en1ha2_bt210.0.25.24
[BOTTOM]
选择四个网口(bootip)做为通信接口,然后回车。
添加通信设备(用于串口心跳和磁盘心跳),如果采用IP网络做心跳可跳过此步骤:
此步骤的样例是采用磁盘心跳的方式,如果采用串口心跳的话,选择串口设备即可。
CommunicationDevices
#NodeDevicePvid
node2hdisk3000d3adaf6804f40
node1hdisk3000d3adaf6804f40
node1tmscsi0
node2tmscsi0
node1tmscsi1
选择node1和node2上的hdisk3,然后回车即可。
添加应用服务器:
在ServerName处输入应用的名称,在StartScript和StopScript处输入应用的启动和停止脚本的路径。
ExtendedResourceConfiguration->
HACMPExtendedResourcesConfiguration->
ConfigureHACMPApplicationsServers->
ConfigureHACMPApplicationServers->
AddanApplicationServer
AddApplicationServer
*ServerName[oracle]
*StartScript[/usr/sbin/start_oracl>
*StopScript[/usr/sbin/stop_oracle]
ApplicationMonitorName(s)+
此应用服务的启动和停止脚本就是之前在做准备工作时创建的那两个脚本。
添加服务IP:
ConfigureHACMPServiceIPLabels/Addresses->
AddaServiceIPLabel/Address->
ConfigurableonMultipleNodes
AddaServiceIPLabel/AddressconfigurableonMultipleNodes(extended)
*IPLabel/Addressha_svc1+
*NetworkNamenet_ether_01
AlternateHardwareAddresstoaccompanyIPLabel/A[]
ddress
首先选择此服务IP在哪个网络上,我们这里选择net_ether_01后,将会出现以上界面。
在IPLabel/Address处选择相应的服务IP的Label。
添加资源组:
HACMPExtendedResourceGroupConfiguration->
AddaResourceGroup
AddaResourceGroup(extended)
*ResourceGroupName[oracle_resg]
*ParticipatingNodes(DefaultNodePriority)[node1node2]+
StartupPolicyOnlineOnHomeNodeO>
+
FalloverPolicyFalloverToNextPrio>
FallbackPolicyFallbackToHigherPr>
在ResourceGroupName处输入资源组的名称,在ParticipatingNodes(DefaultNodePriority)处选择参与的节点。
更改资源组属性:
将服务IP、应用服务器和卷组都加入到此资源组中
Change/ShowResourcesandAttributesforaResourceGroup
Change/ShowAllResourcesandAttributesforaResourceGroup
ResourceGroupNameoracle_resg
ParticipatingNodes(DefaultNodePriority)node1node2
FallbackTimerPolicy(emptyisimmediate)[]+
Service