P51A主机HACMP53配置步骤.docx

上传人:b****7 文档编号:25451502 上传时间:2023-06-08 格式:DOCX 页数:13 大小:18.93KB
下载 相关 举报
P51A主机HACMP53配置步骤.docx_第1页
第1页 / 共13页
P51A主机HACMP53配置步骤.docx_第2页
第2页 / 共13页
P51A主机HACMP53配置步骤.docx_第3页
第3页 / 共13页
P51A主机HACMP53配置步骤.docx_第4页
第4页 / 共13页
P51A主机HACMP53配置步骤.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

P51A主机HACMP53配置步骤.docx

《P51A主机HACMP53配置步骤.docx》由会员分享,可在线阅读,更多相关《P51A主机HACMP53配置步骤.docx(13页珍藏版)》请在冰豆网上搜索。

P51A主机HACMP53配置步骤.docx

P51A主机HACMP53配置步骤

一.硬件配置

1.存储设备

与现有的DS4300相连接,并且划分出1个datavg

二.软件配置

1.AIX操作系统版本5.3

2.HACMP版本5.3

三.IP配置

YH1

YH2

boot

192.168.70.125

192.168.70.126

stdby

192.168.80.60

192.168.80.61

service

192.168.70.127

注:

boot和servicel在同一个网段,boot与stdby在不同的网段

只有1个应用,主备模式,(Cascading)

四.软件安装及补丁

1.AIX5.3操作系统的安装

2.操作系统相关包安装(有些默认已经安装了)

bos.data

bos.diag

bos.content

bos.alt

bos.dlc

bos.mh

pat

bos.adt

bos.sysmgt

bos.dosutil

bos.perf

bos.pmapi

rsct.basic注:

用#lslpp–l|grepname可以看是否装上

p安装软件包时需要把ACCEPTnewlicenseagreements”为yes

rsct.core软件包安装完需重启机器生效,可以等后面操作完成后再重起.

3.HACMP5.3安装

除了cluster.hativoli、cluster.haview以外,所有包都安装。

注:

安装软件包时需要把ACCEPTnewlicenseagreements”为yes

有时候提示安装失败,可以忽略、

注:

安装完所有补丁包后机器一定要重新启动!

五.实施步骤

1.在两台p51A上设置IP地址

(1)在p51A_1机上

A.配置boot_1网卡

->#smitty(smittytcpip)注:

#lscfg|grepent看网卡

->CommunicationsApplicationsandServices

->TCP/IP

->MinimumConfiguration&Startup

选择en0

*HOSTNAME[YH1]

*InternetADDRESS(dotteddecimal)[192.168.70.125]

NetworkMASK(dotteddecimal)[255.255.255.0]

*NetworkINTERFACEen1

NAMESERVER

InternetADDRESS(dotteddecimal)[]

DOMAINName[]

DefaultGATEWAYAddress[]

B.配置stdby_1网卡

->#smitty

->CommunicationsApplicationsandServices

->TCP/IP

->MinimumConfiguration&Startup

selecten1

*HOSTNAME[YH1]

*InternetADDRESS(dotteddecimal)[192.168.80.60]

NetworkMASK(dotteddecimal)[255.255.255.0]

*NetworkINTERFACEen3

NAMESERVER

InternetADDRESS(dotteddecimal)[]

DOMAINName[]

DefaultGATEWAYAddress[]

(2)在p51A_2机上

A.配置boot_2网卡

->#smitty

->CommunicationsApplicationsandServices

->TCP/IP

->MinimumConfiguration&Startup

selecten0

*HOSTNAME[YH2]

*InternetADDRESS(dotteddecimal)[192.168.70.126]

NetworkMASK(dotteddecimal)[255.255.255.0]

*NetworkINTERFACEen1

NAMESERVER

InternetADDRESS(dotteddecimal)[]

DOMAINName[]

DefaultGATEWAYAddress[]

B.配置stdby_2网卡

->#smitty

->CommunicationsApplicationsandServices

->TCP/IP

->MinimumConfiguration&Startup

selecten1

*HOSTNAME[YH2]

*InternetADDRESS(dotteddecimal)[192.168.80.61]

NetworkMASK(dotteddecimal)[255.255.255.0]

*NetworkINTERFACEen3

NAMESERVER

InternetADDRESS(dotteddecimal)[]

DOMAINName[]

DefaultGATEWAYAddress[]

2.在两台p51A上修改/etc/hosts文件,内容如下

(1)在p51A_1机上

127.0.0.1loopbacklocalhostYH1

192.168.70.125boot_1YH1

192.168.80.60stdby_1YH1

192.168.70.127svc_1

注:

esc+i加;s删;dd删行;o换行

192.168.70.126boot_2YH2ftpp51A_2IPputhosts/etc/hosts

192.168.80.61stdby_2YH2记住通过ftp需要把第一行改成p615_2

(2)在p51A_2机上

127.0.0.1loopbacklocalhostYH2

192.168.70.125boot_1YH1

192.168.80.60stdby_1YH1

192.168.70.127svc_1

192.168.70.126boot_2YH2

192.168.80.61stdby_2YH2

3.在p51A_1上建立共享卷组

建立datavg共享卷组

->#smittymkvg

选AddanOriginalVolumeGroup

AddaBigVolumeGroup

AddaScalableVolumeGroup

则出现

VOLUMEGROUPname[datavg]

PhysicalpartitionSIZEinmegabytes[]

*PHYSICALVOLUMEnames[hdisk2]注:

根据客户现场提供,这里假设为hdisk2

ActivatevolumegroupAUTOMATICALLY[no]

atsystemrestart?

VolumeGroupMAJORNUMBER[]

CreateVGconcurrentCapable?

[yes]

Auto-varyoninConcurrentMode?

[no]

注:

看datavg是否是激活状态,如果是激活,则需要#varyoffvgdatavg

#rmdev–Rdlhdisk2

#cfgmgr-v

4.在p51A_2上import共享卷组

(1)importdatavg共享卷组

->#smitty(smittyimportvg)

出现:

VOLUMEGROUPname[datavg]手动输入

*PHYSICALVOLUMEname[hdisk2]+

VolumeGroupMAJORNUMBER[]+#

#

(2)修改datavg共享卷组属性

->#smitty(smittychvg)

select*VOLUMEGROUPname[datavg]

VOLUMEGROUPname[datavg]

*ACTIVATEvolumegroupAUTOMATICALLY[no]

atsystemrestart?

*AQUORUMofdisksrequiredtokeepthevolume[yes]

groupon-line?

ConvertthisVGtoConcurrentCapable?

[no]

*AutovaryonVGinConcurrentMode?

[no]

5.在两台P51A上建立应用服务器启动脚本

(1)在p51A_1上

在/app下分别建立dbstart.sh,dbstop.sh,然后修改文件属性为700:

#mkdir/app

#chmod700*

(2)在p51A_2上

在/app下分别建立dbstart.sh,dbstop.sh,然后修改文件属性为700:

#mkdir/app#rmrm–R/app

#chmod700*

6.HACMP的设置

以下步骤

(1)-(8)只在P51A_1上做

(1)定义CLUSTER

#smittyhacmp或者

选择InitializationandStandardConfigurationExtendedConfiguration

选择AddNodestoanHACMPClusterExtendedTopologyConfiguration

ConfigureanHACMPCluster

[输入字段]Add/Change/ShowanHACMPCluste

ClusterName[YHCLUSTER]

NewNodes(viaselectedcommunicationpaths)[]+

CurrentlyConfiguredNode(s)

(2)定义节点

定义p51A_1节点

#smittyhacmp

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPNodes

选择AddaNodetotheHACMPCluster

[输入字段]

NodeName[YH1]

CommunicationPathtoNode[]

定义p51A_2节点注:

在p51A_1上做

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPNodes

选择AddaNodetotheHACMPCluster

[输入字段]

NodeName[YH2]

CommunicationPathtoNode[]

(3)定义网络

A.定义IP网络

#smittyhacmp

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPNetworks

选择AddaNetworktotheHACMPCluster

选择#Pre-definedIP-basedNetworkTypes中的ether

[输入字段]

NetworkName[net_ether_01]

*NetworkTypeether

*Netmask[255.255.255.0]+

*EnableIPAddressTakeoverviaIPAliases[no]+

IPAddressOffsetforHeartbeatingoverIPAliases[]

(4)定义网络接口

A.定义IP网络接口

定义boot_1接口:

#smittyhacmp

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPCommunicationInterfaces/Devices

选择AddCommunicationInterfaces/Devices

选择AddPre-definedCommunicationInterfacesandDevices

选择CommunicationInterfaces

选择net_ether_01(0.0.0.0/0)

[输入字段]

*IPLabel/Address[boot_1]+

*NetworkTypeether

*NetworkNamenet_ether_01

*NodeName[YH1]+

NetworkInterface[]

定义stdby_1接口:

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPCommunicationInterfaces/Devices

选择AddCommunicationInterfaces/Devices

选择AddPre-definedCommunicationInterfacesandDevices

选择CommunicationInterfaces

选择net_ether_01(0.0.0.0/0)

[输入字段]

*IPLabel/Address[stdby_1]+

*NetworkTypeether

*NetworkNamenet_ether_01

*NodeName[YH1]+

NetworkInterface[]

定义boot_2接口:

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPCommunicationInterfaces/Devices

选择AddCommunicationInterfaces/Devices

选择AddPre-definedCommunicationInterfacesandDevices

选择CommunicationInterfaces

选择net_ether_01(0.0.0.0/0)

[输入字段]

*IPLabel/Address[boot_2]+

*NetworkTypeether

*NetworkNamenet_ether_01

*NodeName[YH2]+

NetworkInterface[]

定义stdby_2接口:

选择ExtendedConfiguration

选择ExtendedTopologyConfiguration

选择ConfigureHACMPCommunicationInterfaces/Devices

选择AddCommunicationInterfaces/Devices

选择AddPre-definedCommunicationInterfacesandDevices

选择CommunicationInterfaces

选择net_ether_01(0.0.0.0/0)

[输入字段]

*IPLabel/Address[stdby_2]+

*NetworkTypeether

*NetworkNamenet_ether_01

*NodeName[YH2]+

NetworkInterface[]

(5)定义ServiceIP

在p51A_1操作:

#smittyhacmp

选择InitializationandStandardConfiguration

选择ConfigureResourcestoMakeHighlyAvailable

选择ConfigureServiceIPLabeles/Addresses

选择AddaserviceIPLabeles/Addresses

[输入字段]

*IPLabel/Address[svc_1]+

*NetworkName[net_ether_01]+

5.3一样

(6)定义应用服务器

定义ZTEAPP应用服务器:

#smittyhacmp

选择InitializationandStandardConfiguration

选择ConfigureResourcestoMakeHighlyAvailable

选择ConfigureApplicationServers

选择AddanApplicationServer

[输入字段]

*ServerName[YHAPP]

*StartScript[/app/dbstart.sh]

*StopScript[/app/dbstop.sh]

5.3一样

(7)定义共享资源组

定义YHRE资源组

#smittyhacmp

选择InitializationandStandardConfiguration

选择ConfigureHACMPResourceGroup

选择AddaResourceGroup

ResourceGroupName[YHRE]

*ParticipatingNodes(DefaultNodePriority)[YH1YH2]+

在5.2以后的HACMP里,默认是自动设置为Cascading)

StartupPolicyOnlineOnHomeNodeO>+

FalloverPolicyFalloverToNextPrio>+

FallbackPolicyFallbackToHigherPr>+

(8)修改资源组属性

修改YHRE资源组属性:

#smittyhacmp

选择InitializationandStandardConfiguration

选择ConfigureHACMPResourceGroup

选择Change/ShowResourcesforaCascadingResourceGroup(standard)

[输入字段]

ResourceGroupNameYHRE

ParticipatingNodes(DefaultNodePriority)YH1YH2

StartupPolicyOnlineOnHomeNodeO>

FalloverPolicyFalloverToNextPrio>

FallbackPolicyFallbackToHigherPr>

ServiceIPLabels/Addresses[svc_1]+

ApplicationServers[YHAPP]+

VolumeGroups[datavg]+手动输入

Useforcedvaryonofvolumegroups,ifnecessaryfalse+

Filesystems(emptyisALLforVGsspecified)[]+

 

7.同步HACMP配置

注:

该步只在P51A_1上做

#smittyhacmp

选择InitializationandStandardConfiguration

选择VerifyandSynchronizeHACMPComfiguration

5.3不用输入,直接到这里回车就同步了。

注:

一直等到同步成功为止

8.查看HACMP进程是否正常(正常有2-4个Cluster进程)

#lssrc–gcluster

subsystemgroupPIDstatus

clstrmgecluster22454active

clsmuxpdcluster15874active

9.HACMP服务的启动和停止

启动:

要两个节点同时启动,停止时只停止1个节点

#smittyclstart

StartClusterServices

[输入字段]

*Startnow,onsystemrestartorbothnow+

StartClusterServicesonthesenodes[YH1YH2]+

BROADCASTmessageatstartup?

true+

StartupClusterLockServices?

false+

StartupClusterInformationDaemon?

true

Reacquireresourcesafterforceddown?

false+

#tail–f/tmp/hacmp.out

停止:

停止的时只停止1个节点

#smittyclstop

StopClusterServices

[输入字段]

*Stopnow,onsystemrestartorbothnow+

StopClusterServicesonthesenodes[YH1]+

BROADCASTclustershutdown?

true+

*Shutdownmodegraceful[takeover]+注:

shutdownmode请选择takeover,意思是让备机自动接管

六.测试(写的比较简单,可以看以前的文章)

1.#lsvg–o

2.#ifconfig-a

七.完毕

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

当前位置:首页 > 成人教育 > 专升本

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

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