IBM System p5 服务器 HACMP 安装指南.docx

上传人:b****3 文档编号:12889159 上传时间:2023-04-22 格式:DOCX 页数:16 大小:23.19KB
下载 相关 举报
IBM System p5 服务器 HACMP 安装指南.docx_第1页
第1页 / 共16页
IBM System p5 服务器 HACMP 安装指南.docx_第2页
第2页 / 共16页
IBM System p5 服务器 HACMP 安装指南.docx_第3页
第3页 / 共16页
IBM System p5 服务器 HACMP 安装指南.docx_第4页
第4页 / 共16页
IBM System p5 服务器 HACMP 安装指南.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

IBM System p5 服务器 HACMP 安装指南.docx

《IBM System p5 服务器 HACMP 安装指南.docx》由会员分享,可在线阅读,更多相关《IBM System p5 服务器 HACMP 安装指南.docx(16页珍藏版)》请在冰豆网上搜索。

IBM System p5 服务器 HACMP 安装指南.docx

IBMSystemp5服务器HACMP安装指南

IBMSystemp5服务器HACMP安装指南

系统需求

硬件需求

IBMHACMP支持所有IBMSystemp5服务器。

软件需求

AIX与RSCT版本要求

AIX5LVersion

RSCTVersion

RSCTFilesets

AIX5LVersion5.3TL1

2.4.2

∙pat.basic.hacmp2.4.2.0

∙pat.clients.hacmp2.4.2.0

∙rsct.core.sec2.4.2.1

∙rsct.core.rmc2.4.2.1

AIX5LVersion5.2TL5

2.3.6

∙pat.basic.hacmp2.3.6.0

∙pat.clients.hacmp2.3.6.0

∙rsct.core.sec2.3.6.1

∙rsct.core.rmc2.3.6.1

AIXBOS软件要求

AIX5LBOSComponent

AIX5LV5.2TL5或更新版本

AIX5LV5.3TL1或更新版本

bos.adt.lib

5.3.0.10

5.2.0.10

bos.adt.libm

5.3.0.10

5.2.0.13

bos.adt.syscalls

5.3.0.10

5.2.0.11

.tcp.client

5.3.0.10

5.2.0.14

.tcp.server

5.3.0.10

5.2.0.14

bos.rte.SRC

5.3.0.10

5.2.0.10

bos.rte.libc

5.3.0.10

5.2.0.14

bos.rte.libcfg

5.3.0.10

bos.rte.libcur

5.3.0.10

5.2.0.10

bos.rte.libptdreads

5.3.0.10

5.2.0.12

bos.rte.odm

5.3.0.10

5.2.0.11

bos.data(requireforcluster.man.en_US.es)

5.3.0.10

5.2.0.10

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

node1

Bootip

10.0.25.23/16

ha1_bt2

en1

node2

Bootip

192.168.25.24/16

ha2_bt1

en0

node2

Bootip

10.0.25.24/16

ha2_bt2

en1

node1,node2

Serviceip

10.1.25.1/16

ha_svc1

node1,node2

Hearbeatipoffset

10.2.25.1/16

ha1_bt1

上例子中有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?

no+

注意:

∙需要将卷组设置为系统开机时不自动激活,即将“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

如果在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

Add/Change/ShowanHACMPCluster

[EntryFields]

*ClusterName[ha_cluster]

添加节点:

通过以下路径进入添加集群节点界面,输入节点名和此节点的通信接口(这里使用上面提到的Bootip)。

smittyhacmp->ExtendedConfiguration->ExtendedTopologyConfiguration->ConfigureHACMPNodes->AddaNodetotheHACMPCluster

添加节点1

AddaNodetotheHACMPCluster

[EntryFields]

*NodeName[node1]

CommunicationPathtoNode[ha1_bt1]

以相同方法添加第二个节点。

如果有多个节点,以此类推。

添加节点2

AddaNodetotheHACMPCluster

[EntryFields]

*NodeName[node2]

CommunicationPathtoNode[ha2_bt1]

在两节点上收集HACMP相关信息(可选):

通过以下路径进行集群信息收集。

smittyhacmp->ExtendedConfiguration->DiscoverHACMP-relatedInformationfromConfiguredNodes

ExtendedConfiguration

DiscoverHACMP-relatedInformationfromConfiguredNodes

ExtendedTopologyConfiguration

ExtendedResourceConfiguration

ExtendedClusterServiceSettings

ExtendedEventConfiguration

ExtendedPerformanceTuningParametersConfiguration

SecurityandUsersConfiguration

SnapshotConfiguration

ExportDefinitionFileforOnlinePlanningWorksheets

ExtendedVerificationandSynchronization

HACMPClusterTestTool

添加网络:

HACMP的网络分为Discoverednetwork和Pre-definednetwork两种,如果之前有收集HACMP的相关信息,可选Discoverednetwork;否则,选择Pre-definednetwork。

此处可以根据此集群采用的心跳方式选择相应的网络,包括ethernetwork、diskhbnetwork和rs232network。

本例中我们采用IP别名方式做心跳。

smittyhacmp->ExtendedConfiguration->ExtendedTopologyConfiguration->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

[EntryFields]

*NetworkName[net_ether_01]

*NetworkTypeether

*Netmask[255.255.0.0]+

*EnableIPAddressTakeoverviaIPAliases[Yes]+

IPAddressOffsetforHeartbeatingoverIPAliases[10.2.25.1]

添加通信接口:

smittyhacmp->ExtendedConfiguration->ExtendedTopologyConfiguration->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网络做心跳可跳过此步骤:

此步骤的样例是采用磁盘心跳的方式,如果采用串口心跳的话,选择串口设备即可。

smittyhacmp->ExtendedConfiguration->ExtendedTopologyConfiguration->ConfigureHACMPCommunicationInterfaces/Devices->AddCommunicationInterfaces/Devices->AddDiscoveredCommunicationInterfaceandDevices->CommunicationDevices

SelectPoint-to-PointPairofDiscoveredCommunicationDevicestoAdd

MovecursortodesireditemandpressF7.

ONEORMOREitemscanbeselected.

PressEnterAFTERmakingallselections.

#NodeDevicePvid

node2hdisk3000d3adaf6804f40

node1hdisk3000d3adaf6804f40

node1tmscsi0

node2tmscsi0

node1tmscsi1

选择node1和node2上的hdisk3,然后回车即可。

添加应用服务器:

在ServerName处输入应用的名称,在StartScript和StopScript处输入应用的启动和停止脚本的路径。

smittyhacmp->ExtendedConfiguration->ExtendedResourceConfiguration->HACMPExtendedResourcesConfiguration->ConfigureHACMPApplicationsServers->ConfigureHACMPApplicationServers->AddanApplicationServer

AddApplicationServer

[EntryFields]

*ServerName[oracle]

*StartScript[/usr/sbin/start_oracl>

*StopScript[/usr/sbin/stop_oracle]

ApplicationMonitorName(s)+

此应用服务的启动和停止脚本就是之前在做准备工作时创建的那两个脚本。

添加服务IP:

smittyhacmp->ExtendedConfiguration->ExtendedResourceConfiguration->HACMPExtendedResourcesConfiguration->ConfigureHACMPServiceIPLabels/Addresses->AddaServiceIPLabel/Address->ConfigurableonMultipleNodes

AddaServiceIPLabel/AddressconfigurableonMultipleNodes(extended)

[EntryFields]

*IPLabel/Addressha_svc1+

*NetworkNamenet_ether_01

AlternateHardwareAddresstoaccompanyIPLabel/A[]

ddress

首先选择此服务IP在哪个网络上,我们这里选择net_ether_01后,将会出现以上界面。

在IPLabel/Address处选择相应的服务IP的Label。

添加资源组:

smittyhacmp->ExtendedConfiguration->ExtendedResourceConfiguration->HACMPExtendedResourceGroupConfiguration->AddaResourceGroup

AddaResourceGroup(extended)

[EntryFields]

*ResourceGroupName[oracle_resg]

*ParticipatingNodes(DefaultNodePriority)[node1node2]+

StartupPolicyOnlineOnHomeNodeO>+

FalloverPolicyFalloverToNextPrio>+

FallbackPolicyFallbackToHigherPr>+

在ResourceGroupName处输入资源组的名称,在ParticipatingNodes(DefaultNodePriority)处选择参与的节点。

更改资源组属性:

将服务IP、应用服务器和卷组都加入到此资源组中

smittyhacmp->ExtendedConfiguration->ExtendedResourceConfiguration->HACMPExtendedResourceGroupConfiguration->Change/ShowResourcesandAttributesforaResourceGroup

Change/ShowAllResourcesandAttributesforaResourceGroup

[TOP][EntryFields]

ResourceGroupNameoracle_resg

ParticipatingNodes(DefaultNodePriority)node1node2

StartupPolicyOnlineOnHomeNodeO>

FalloverPolicyFalloverToNextPrio>

FallbackPolicyFallbackToHigherPr>

FallbackTimerPolicy(emptyisimmediate)[]+

Service

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1