HACMP51配置.docx

上传人:b****8 文档编号:9860997 上传时间:2023-05-21 格式:DOCX 页数:24 大小:23.34KB
下载 相关 举报
HACMP51配置.docx_第1页
第1页 / 共24页
HACMP51配置.docx_第2页
第2页 / 共24页
HACMP51配置.docx_第3页
第3页 / 共24页
HACMP51配置.docx_第4页
第4页 / 共24页
HACMP51配置.docx_第5页
第5页 / 共24页
HACMP51配置.docx_第6页
第6页 / 共24页
HACMP51配置.docx_第7页
第7页 / 共24页
HACMP51配置.docx_第8页
第8页 / 共24页
HACMP51配置.docx_第9页
第9页 / 共24页
HACMP51配置.docx_第10页
第10页 / 共24页
HACMP51配置.docx_第11页
第11页 / 共24页
HACMP51配置.docx_第12页
第12页 / 共24页
HACMP51配置.docx_第13页
第13页 / 共24页
HACMP51配置.docx_第14页
第14页 / 共24页
HACMP51配置.docx_第15页
第15页 / 共24页
HACMP51配置.docx_第16页
第16页 / 共24页
HACMP51配置.docx_第17页
第17页 / 共24页
HACMP51配置.docx_第18页
第18页 / 共24页
HACMP51配置.docx_第19页
第19页 / 共24页
HACMP51配置.docx_第20页
第20页 / 共24页
亲,该文档总共24页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

HACMP51配置.docx

《HACMP51配置.docx》由会员分享,可在线阅读,更多相关《HACMP51配置.docx(24页珍藏版)》请在冰点文库上搜索。

HACMP51配置.docx

HACMP51配置

Hacmp5.1的配置方法

Hacmp自从出了5.1版本后,很多客户向IBM技术支持中心打电话咨询配置方法。

的确,hacmp5.1较以前的版本无论是从界面还是从配置方法都有了很大的改变。

具体

内容我们可以从IBMhacmp5。

1红皮书上获知。

但对于大部分hacmp软件使用者来说,

最重要的是要有一个快速入门的步骤。

因此我会在这里介绍一下hacmp的入门安装与

配置。

一,Hacmp的软件安装。

1.安装前提

如果您的操作系统是AIX5.1 ,那么您要安装维护补丁包ML03以上,目前

最高的补丁版本是ML05. 并且您还要安装RSCT2.2.1.30或更高版本。

以下的包也是必须要安装的:

•bos.adt.lib

•bos.adt.libm

•bos.adt.syscalls

•.tcp.client

•.tcp.server

•bos.rte.SRC

•bos.rte.libc

•bos.rte.libcfg

•bos.rte.libcur

•bos.rte.libpthreads

•bos.rte.odm

如果您要安装并行的资源组,还要安装下面的包:

•bos.rte.lvm.rte5.1.0.25orhigher

•bos.clvm.enh.

2.开始安装

一般基本上除了haview,netwiew(Tivoli),的包以外,所有的hacmp的包都要安装。

3.打补丁。

注意,客户总是忽略给hacmp打补丁这一步骤。

其实对hacmp来说,补丁是十分重要的。

很多

发现的缺陷都已经在补丁中被解决了。

有的客户严格的按照正确步骤安装和配置完hacmp的软件后,发现takeover有问题,ip接管有问题,机器自动宕机等等千奇百怪的问题,其实都与补丁

有关。

所以客户一定要注意打补丁这个环节。

现在hacmp最新的补丁是:

IY53044-LatestHACMPforAIXR510FixesasofJanuary2004

大家可以从IBM网站上下载,或者打800-810-1818热线电话索要。

4.重启机器。

在hacmp5。

1中为了安全起见,不再使用/.rhosts文件来控制两台机器

之间的命令和数据交换,而是引进的一个新的进程clcomd。

如果你编辑/etc/inittab文件

就会发现安装完hacmp后,在最后添加了一行:

clcomdES:

2:

once:

startsrc-sclcomdES>/dev/console2>&1。

因此重新启机后,ps–ef|grepclomd,会发现:

root1290864780Apr12-0:

21/usr/es/sbin/cluster/clcomd–d,证明该进程启动了。

Hacmp5.1使用

/usr/es/sbin/cluster/etc/rhosts文件来代替/.rhosts文件的功能。

注意:

如果两个节点间的通讯发生了什么问题,可以检查rhots文件,或者编辑rhosts文件

加入两个节点的网络信息。

二,hacmp5.1的配置

我们以两台机器为例:

test1和test2,共享三块7133硬盘。

1.首先配置两台机器的ip和vg,以及/etc/hosts和application启动/停止脚本

test1:

/>netstat-in

NameMtuNetworkAddressIpktsIerrsOpktsOerrsColl

en01500link#20.4.ac.49.f2.d57796004780500

en01500100.1100.1.0.17796004780500

en11500link#30.6.29.ec.44.d63301100

en11500192.168.0192.168.0.13301100

test2:

/>netstat-in

NameMtuNetworkAddressIpktsIerrsOpktsOerrsColl

en01500link#20.4.ac.49.60.233113808258200

en01500100.1100.1.0.23113808258200

en11500link#30.4.ac.3e.b9.4b3601300

en11500192.168.0192.168.0.23601300

test1:

hdisk00004383268b07574rootvgactive

hdisk3000438325e22bca7test1vg

hdisk400043832125e5aa8None

hdisk5000438323d0e4487None

test2:

hdisk0000d29574085126drootvgactive

hdisk5000438325e22bca7test1vg

hdisk600043832125e5aa8None

hdisk7000438323d0e4487None

/etc/hosts

100.1.0.2test2_boot1test2

100.1.0.1test1_boot1test1

192.168.0.1test1_boot2

192.168.0.2test2_boot2

10.1.0.1test1_svc

10.1.0.2test2_svc

10.1.0.5test1_per

10.1.0.6test1_per

test2:

/ha51>ls–l

-rwxr-xr-x1rootsystem65Apr1313:

51start

-rw-r--r--1rootsystem31Apr1311:

49start.log

-rwxr-xr-x1rootsystem66Apr1314:

01start1

-rw-r--r--1rootsystem31Apr1314:

01start1.log

-rwxrwxrwx1rootsystem64Apr1311:

48stop

-rw-r--r--1rootsystem31Apr1311:

48stop.log

-rwxr-xr-x1rootsystem66Apr1314:

01stop1

-rw-r--r--1rootsystem31Apr1314:

01stop1.log

vistart

date>>/ha51/start.log

banner"startapp1">>/tmp/hacmp.out

vistop

date>>/ha51/stop.log

banner"stopapp1">>/tmp/hacmp.out

vistart1

date>>/ha51/start1.log

banner"startapp2">>/tmp/hacmp.out

vistop1

date>>/ha51/stop1.log

banner"stopapp2">>/tmp/hacmp.out

注意:

在两个节点要保证hosts和启动/停止脚本要一样存在。

2.用smittyhacmp来配置hacmp

添加cluster和node

smittyhacmp

InitializationandStandardConfiguration

ExtendedConfiguration

SystemManagement(C-SPOC)

ProblemDeterminationTools

AddNodestoanHACMPCluster

ConfigureResourcestoMakeHighlyAvailable

ConfigureHACMPResourceGroups

VerifyandSynchronizeHACMPConfiguration

DisplayHACMPConfiguration

*ClusterName[ha51tsc]_

NewNodes(viaselectedcommunicationpaths)_[m[test2_boot1test1_boot1]

CurrentlyConfiguredNode(s)

这一部很重要,一般我们都是把每个节点的boot1作为communicationpath.Newnode

可以一起加,也可以一个一个的加。

当回车以后,系统会自己discoverhacmp的资源

显示如下:

IPNetworkDiscoverycompletednormally

Currentclusterconfiguration:

Noresourcegroupsdefined

ClusterDescriptionofCluster:

ha51tsc

ClusterSecurityLevel:

Standard

Thereare2node(s)and1network(s)defined

NODEtest1:

Networknet_ether_02

test1_boot1100.1.0.1

test1_boot2192.168.0.1

NODEtest2:

Networknet_ether_02

test2_boot1100.1.0.2

test2_boot2192.168.0.2

添加高可用资源(serviceip,applicationserver,vgandjfs)

添加服务ip地址

AddNodestoanHACMPCluster

ConfigureResourcestoMakeHighlyAvailable

ConfigureHACMPResourceGroups

VerifyandSynchronizeHACMPConfiguration

DisplayHACMPConfiguration

 

ConfigureServiceIPLabels/Addresses

ConfigureApplicationServers

ConfigureVolumeGroups,LogicalVolumesandFilesystems

ConfigureConcurrentVolumeGroupsandLogicalVolumes

AddaServiceIPLabel/Address

Change/ShowaServiceIPLabel/Address

RemoveServiceIPLabel(s)/Address(es)

*IPLabel/Address[test1_svc]

NetworkName[net_ether_02]

*IPLabel/Address[test2_svc]

NetworkName[net_ether_02]

 

添加applicationserver

ConfigureServiceIPLabels/Addresses

ConfigureApplicationServers

ConfigureVolumeGroups,LogicalVolumesandFilesystems

ConfigureConcurrentVolumeGroupsandLogicalVolumes

 

AddanApplicationServer

Change/ShowanApplicationServer

RemoveanApplicationServer

*ServerName[app1]

*StartScript[/ha51/start]

*StopScript[/ha51/stop]

*ServerName[app2]

*StartScript[/ha51/start1]

*StopScript[/ha51/stop1]

添加共享vg,jfs

注意在前面的步骤中我们看到已经有一个共享VGtest1vg存在了,它使用传统的方法:

1.在test1节点上创建test1vg,lv,jfs

2.Varyoffvg

3.在test2上importvg

4.Varyoffvg

现在我们试着用hacmp的功能去创建test2vg

ConfigureServiceIPLabels/Addresses

ConfigureApplicationServers

ConfigureVolumeGroups,LogicalVolumesandFilesystems

ConfigureConcurrentVolumeGroupsandLogicalVolumes

 

SharedVolumeGroups

SharedLogicalVolumes

SharedFileSystems

SynchronizeSharedLVMMirrors

SynchronizeaSharedVolumeGroupDefinition

 

ListAllSharedVolumeGroups

CreateaSharedVolumeGroup

CreateaSharedVolumeGroupwithDataPathDevices

SetCharacteristicsofaSharedVolumeGroup

ImportaSharedVolumeGroup

MirroraSharedVolumeGroup

UnmirroraSharedVolumeGroup

在选择菜单中同时用F7选择test1和test2

Øtest1

Øtest2

选中PVID 00043832125e5aa8

NodeNamestest1,test2

PVID00043832125e5aa8

 VOLUMEGROUPname [test2vg]

PhysicalpartitionSIZEinmegabytes          4

VolumegroupMAJORNUMBER[49]

test2:

/ha51>lspv

hdisk0000d29574085126drootvgactive

hdisk5000438325e22bca7test1vg

hdisk600043832125e5aa8test2vg

hdisk7000438323d0e4487None

test1:

/ha51>lspv

hdisk00004383268b07574rootvgactive

hdisk3000438325e22bca7test1vg

hdisk400043832125e5aa8test2vg

hdisk5000438323d0e4487None

同样方法你可以在两个节点上同时创建ljfs

SharedVolumeGroups

SharedLogicalVolumes

SharedFileSystems

SynchronizeSharedLVMMirrors

SynchronizeaSharedVolumeGroupDefinition

 

JournaledFileSystems

EnhancedJournaledFileSystems

AddaJournaledFileSystem

AddaJournaledFileSystemonaPreviouslyDefinedLogicalVolume

ListAllSharedFileSystems

Change/ShowCharacteristicsofaSharedFileSystem

RemoveaSharedFileSystem

AddaStandardJournaledFileSystem

AddaCompressedJournaledFileSystem

AddaLargeFileEnabledJournaledFileSystem

test1vgtest1,test2

test2vgtest1,test2

NodeNamestest1,test2

Volumegroupnametest1vg

*SIZEoffilesystem[10]

*MOUNTPOINT[/test1jfs]

PERMISSIONSread/write

MountOPTIONS[]

StartDiskAccounting?

no

FragmentSize(bytes)4096

Numberofbytesperinode4096

AllocationGroupSize(MBytes)8

系统会自动在test1上添加test1jfs文件系统,并且自动会在两个

节点上作update.但是根据我自己的经验,最好还是用传统的方式在

一个结点上创建vg,lv,jfs.然后再import到另一个节点上。

这里有一个tips,如果在这里创建共享jfs遇到问题,可以先手工把vg

在一个结点上varyon,然后再创建就可以了。

创建资源组

 

InitializationandStandardConfiguration

ExtendedConfiguration

SystemManagement(C-SPOC)

ProblemDeterminationTools

AddNodestoanHACMPCluster

ConfigureResourcestoMakeHighlyAvailable

ConfigureHACMPResourceGroups

VerifyandSynchronizeHACMPConfiguration

DisplayHACMPConfiguration

AddaResourceGroup

Change/ShowaResourceGroup

RemoveaResourceGroup

Change/ShowResourcesforaResourceGroup(standard)

 

Cascading

RotatingConcurrentCustom

*ResourceGroupName[res1]

*ParticipatingNodeNames/DefaultNodePriority[test1test2]

同样方法可以添加res2

接下来可以配置资源组,当然也可以在ExtendedConfiguration中去详细配置。

我们姑且先在InitializationandStandardConfiguration中配置。

Smittycm_config_hacmp_resource_groups_menu_dmn

AddaResourceGroup

Change/ShowaResourceGroup

RemoveaResourceGroup

Change/ShowResourcesforaResourceGroup(standard)

选择res1

ResourceGroupNameres1

ParticipatingNodeNames(DefaultNodePriority)test1test2

*ServiceIPLabels/Addresses[test1_svc]VolumeGroups[mtest1vg]Filesystems(emptyisALLforVGsspecified)[/test1jfs]ApplicationServers[mapp1]

同样的方法配置res2

检查和同步hacmp配置

InitializationandStandardConfiguration

ExtendedConfiguration

SystemManagement(C-SPOC)

ProblemDeterminationTools

 

AddNodestoanHACMPCluster

ConfigureResourcestoMakeHighlyAvailable

ConfigureHACMPResourceGroups

VerifyandSynchronizeHACMPConfiguration

DisplayHACMPConfiguration

 

ClusterDescriptionofCluster:

ha51tsc

ClusterSecurityLevel:

Standard

Thereare2node(s)and1network(s)defined

NODEtest1:

Networknet_ether_02

test2_svc10.1.0.2

test1_svc10.1.0.1

test1_boot2192.168.0.1

test1_boot1100.1.0.1

NODEtest2:

Networknet_ether_02

test2_svc10.1.0.2

test1_svc10.1.0.1

test2_boot1100.1.0.2

test2_boot2192.168.0.2

ResourceGroupres1

Behaviorcascading

ParticipatingNodestest1test2

ServiceIPLabeltest1_svc

ResourceGroupres2

Behaviorcascading

ParticipatingNodestest2test1

ServiceIPLab

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

当前位置:首页 > 初中教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2