Oracle HA 在Unix上双机环境的安装指南

来源:岁月联盟 编辑:zhuzhu 时间:2007-07-25

一、环境

 

1、硬件环境

 

IBM M85 2台

IBM 7133-D40 SSA 磁盘阵列

 

2、软件环境

 

 

AIX 4.3.3HACMP 4.1.1.0ORACLE9.2.0.1

 

 

软件类别 软件名称 软件状态 备注

操作系统 AIX4.3.3 已安装

操作系统补丁 AIX PATCH 已安装 补丁10,以及安装ORACLE需要的Iy30886、Iy30927、Iy31003补丁。

热备软件 HACMP4.4.1 已安装

数据库 ORACLE9.2 已安装

 

3、磁盘规划:

 

物理硬盘pdisk0 pdisk1以raid1方式做成hdisk2,逻辑硬盘hdisk2放在vg01卷组上,正常工作时为M851服务;

物理硬盘pdisk2 pdisk3 pdisk4 pdisk5 pdisk6 pdisk7以raid1+0方式做成hdisk3,逻辑硬盘hdisk3放在vg02卷组上,正常工作时为M852服务;

物理硬盘 pdisk8 作 HOT SPARES;

M851上的rootvg使用逻辑硬盘hdisk0与hdisk1做成镜像;

M852上的rootvg使用逻辑硬盘hdisk0与hdisk1做成镜像;

 

4、IP地址规划:

 

主机名 启动地址 服务地址 等待地址

 

M851 202.168.0.11 202.168.0.1 172.17.0.1

M852 202.168.0.12 202.168.0.2 172.17.0.2

 

二、操作系统安装

 

1、基本补丁(AIX UPDATE CD)

 

需要将补丁版本升级至9或10。

执行smit update_all命令,按F4选择/dev/cd0光驱。

升级后可以使用 instfix -i | grep ML 命令查看补丁版本情况,示例:

 

 

All filesets for 4.3.0.0_AIX_ML were found.All filesets for 4.3.1.0_AIX_ML were found.All filesets for 4.3.2.0_AIX_ML were found.All filesets for 4320-02_AIX_ML were found.Not all filesets for 4.3.3.0_AIX_ML were found.All filesets for 4330-01_AIX_ML were found.All filesets for 4330-02_AIX_ML were found.All filesets for 4330-03_AIX_ML were found.All filesets for 4330-04_AIX_ML were found.All filesets for 4330-05_AIX_ML were found.All filesets for 4330-06_AIX_ML were found.All filesets for 4330-07_AIX_ML were found.All filesets for 4330-08_AIX_ML were found.All filesets for 4330-09_AIX_ML were found.All filesets for AIX43ML were found.

 

此系统的补丁版本是9

 

 

2、特殊补丁(ORACLE 安装需要)

 

JRE 1.1.8-BUILD 2002-05-09、bos、JAVA 131三个补丁包,在如下Iy30886、Iy30927、Iy31003三个文件夹中。

1.将补丁包解包后文件拷贝至 /usr/sys/inst.images 目录下;

2.运行如下命令: installp -acgXd /usr/sys/inst.images bos.rte.install 生成安装文件包;

3.执行 smit update_all命令,按F4选择/usr/sys/inst.images光驱。

 

三、ORACLE安装

 

系统要求

 

1、Oracle 9i SERVER的硬件要求

 

RAM >= 512。使用此命令检查物理内存情况:lsattr -El sys0 -a realmem

PAGING SPACE 一般来说等于 2*RAM,最小400MB。

使用此命令查看:lsps -a 例:

Page Space Physical Volume Volume Group Size %Used Active Auto Type

hd6 hdisk0 rootvg 480MB 10 yes yes lv

使用smit lvm(逻辑卷册系统管理员管理)改变大小

→ Paging Space

→ Change / Show Characteristics of a Paging Space

→ 修改NUMBER of additional logical partitions 这里每增加1个代表增加16MB

Temporary Disk Space:/tmp目录下需要 500MB;使用此命令查看:df -k

安装目录磁盘空间:4G。

 

2、Oracle 9i SERVER的软件要求

 

操作系统AIX 4.3.3的补丁要求参见 "2.2操作系统补丁安装"部分

 

3、创建oracle用户及dba组

 

首先创建dba 组:smit groups -> Add a Group -> 在 Group Name 栏输入 dba 。

创建oracle用户:smit user -> Add a User -> 在 User Name 栏输入 oracle;在Primary Group 栏选择(F4) system;在 Group Set 栏选择 system和dba;在HOME directory

 

栏输入/home/oracle。

实际操作是4个以cpio为扩展名的压缩包AIX64_SERVER_92010_DISK1~4.CPIO的安装介质。先创建一个临时的文件系统,将安装包拷贝并释放到临时文件系统中,安装完毕后删除临

 

时文件系统,步骤如下:

 

1、创建一个新的文件系统并mount该文件系统

 

SMITTYSystem Storage Management (Physical & Logical Storage)File SystemsAdd / Change / Show / Delete File SystemsJournaled File SystemsAdd a Journaled File SystemAdd a Standard Journaled File SystemVolume Group Name

 

 

选择默认项即可

在设置界面中 SIZE = 6000000(3G)、MOUNT POINT = /install 回车创建完毕

 

 

SMIT(图形界面中)System Storage Management (Physical & Logical Storage)File SystemsMount a File System 设置界面中 FILE SYSTEM name = /dev/lv01(可选)、DIRECTORY over which to mount = / install、TYPE of file system = jfs(可选)OK

 

 

2、将压缩包拷至临时文件系统上并解压缩

 

将安装包光盘放入光驱

mount光驱:mount -rv cdrfs /dev/cd0 /cdrom

拷贝文件到硬盘 /ORACLE 目录下:cd /oracle、cp /cdrom/AIX64_SERVER_92010_DISK1~4.CPIO .

cpio -idcmv unmount /cdrom -> 取出光盘 ->下一个文件

删除AIX64_SERVER_92010_DISK1~4.CPIO:rm AIX64_SERVER_92010_DISK1~4.CPIO

 

3、安装

 

以ORACLE身份登录,cd /install/Disk1目录,运行 ./Runinstaller 脚本,提示 按y后弹出安装界面

3、安装:以ORACLE身份登录,cd /install/Disk1目录,运行 ./Runinstaller 脚本,提示 按y后弹出安装界面

同时另启一个窗口,以root 身份登录,cd /install/Disk1目录,执行./rootpre.sh

同时另启一个窗口,以root 身份登录,在安装过程中需要执行 /tmp/orainstRoot.sh、/home/oracle/OraHome1/root.sh两个脚本

需要输入ORACLE HOME的名字和路径,如下 ORACLE_HOME、/home/oracle/ora9

Installation Types 选择 Enterprise Edition -> Transaction Processing

Global DataBase Name :ORA、SID :ORA

Directory For DataBase Files:/home/oracle/ora9/oradata

Character Set :Simplified Chinese ZHS16GBK(可选择)

JDK Home:usr/jdk_base

Root 登录执行 /home/oracle/OraHome1/root.sh脚本

Enter the full pathname of the local bin DIR :[/usr/local/bin]:回车

4、ORACLE SERVER 启动步骤

 

更新oracle用户的.profile和.dtprofile文件(用于设置环境变量)

以oracle身份登录

.profile 文件和.dtprofile 文件示例:

 

 

ORACLE_BASE=/home/oracleORACLE_HOME=$ORACLE_BASE/ora9ORACLE_SID=orcla(A机/B机)ORACLE_OWNER=oracleORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/dataSHLIB_PATH=$ORACLE_HOME/libLD_LIBRARY_PATH=$ORACLE_HOME/libLN_CNTRL=L_PTHREADS_D7ORACLE_TERM=ansiPATH=$ORACLE_HOME/bin:$ORACLE_HOME/network/bin:$PATHexport PATH ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERMexport ORACLE_OWNERexport NLS_LANG ORA_NLS33 SHLIB_PATH LD_LIBRARY_PATH LN_CNTRL

 

 

5、数据库实例的启动与关闭

 

启动数据库实例

 

sqlplus /nolog

conn / as sysdba

startup

 

关闭数据库实例

 

sqlplus /nolog

conn / as sysdba

shutdown immediate

 

这里启动与关闭的实例的对象是由环境变量中 ORACLE_SID 指定的,可以通过export 命令来改变它的值。例如: export ORACLE_SID=orcla

 

6、数据库监听服务的启动与关闭

 

启动监听器

 

lsnrctl start

 

关闭监听器

 

lsnrctl stop

 

这里可以在命令的末尾加上监听服务的名字(在 ORACLE_HOME/network/admin/listener.ora中配置),例如:lsnrctl start lsnr_ta

 

在双机热备系统中ORACLE的安装

 

1、磁盘状况描述

 

A机与B机的本地各有两块硬盘作镜像;

磁盘阵列划分成分别为TA和直销服务的两个物理卷;

正常情况下:A机接管为TA服务的物理卷;B机接管为直销服务的物理卷。

 

2、安装方法

 

1.在A机和B机上创建dba组和oracle用户,两台机器的id需要保持一致,使用id命令看用户属性: id oracle

uid=203(oracle) gid=0(system) groups=202(dba)

2.在A机和B机上同时开始安装数据库,在A机指定数据库实例名时,指定TA的实例名,例如:SID=orcla;在B机指定数据库实例名时,指定直销的实例名,例如:SID=orclb;

3.在A机指定数据库文件的路径时,指定TA在磁盘阵列上的路径,例如:Directory For DataBase Files:/adata/orcla;在B机指定数据库文件的路径时,指定直销在磁盘阵列上

 

的路径,例如:Directory For DataBase Files:/bdata/orclb;

4.ORACLE安装结束后,使A机接管直销的物理卷、B机接管TA的物理卷。操作步骤如下:

在A机上unmount A机的文件系统 unmount /adata;

在A机上Deactivate smitty vg -> Deactivate a Volume Group -> 在 Volume Group Name 栏内选择 adatavg;

在B机上unmount B机的文件系统 /bdata命令: unmount /bdata;

在B机上smitty vg -> Deactivate a Volume Group -> 在 Volume Group Name 栏内选择 bdatavg;

在A机上激活直销卷组smitty vg -> Activate a Volume Group -> 在 Volume Group Name 栏内选择 bdatavg;

在A机上装配文件系统 mount /bdata;

在B机上激活TA卷组smitty vg -> Activate a Volume Group -> 在 Volume Group Name 栏内选择 adatavg;

在B机上装配文件系统 mount /adata;

 

5.运行 dbca 创建数据库实例,在A机上创建直销的实例,在指定数据库文件的路径时,指定直销在磁盘阵列上的路径,覆盖原来在B机创建的数据库文件,例如:Directory For

 

DataBase Files:/bdata/orclb;在B机上创建TA的实例,在指定数据库文件的路径时,指定TA在磁盘阵列上的路径,覆盖原来在A机创建的数据库文件,例如:Directory For

 

DataBase Files:/bdata/orcla;注意创建的实例名和指定的数据库文件路径要和前面创建的实例保持一致。(在指定数据库文件路径时,所有.CTL、.log、.DBF、.ORA的文件路

 

径均需要手工指定到同一文件路径下)。

 

6.把B机 $ORACLE_HOME/dbs/目录下 orapworcla和spfileorcla.ora两个文件拷贝到A机上$ORACLE_HOME/dbs/目录下;把A机 $ORACLE_HOME/dbs/目录下 orapworclb和

 

spfileorclb.ora两个文件拷贝到B机上$ORACLE_HOME/dbs/目录下;

7.修改两台机器$ORACLE_HOME/network/admin/目录下 listener.ora和tnsnames.ora两个文件并保持一致,示例:

 

 

listener.oraLSNR_A =(DEscriptION_LIST =(DEscriptION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)))(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 202.168.0.1)(PORT = 1521)))))LSNR_B =(DEscriptION_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 202.168.0.2)(PORT = 1522)))SID_LIST_LSNR_A =(SID_LIST =(SID_DESC =(PROGRAM = extproc)(SID_NAME = PLSExtProc)(ORACLE_HOME = /home/oracle/ora9))(SID_DESC =(GLOBAL_DBNAME = orcla)(ORACLE_HOME = /home/oracle/ora9)(SID_NAME = orcla)))SID_LIST_LSNR_B =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = orclb)(ORACLE_HOME = /home/oracle/ora9)(SID_NAME = orclb))) tnsnames.oraorcla =(DEscriptION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 202.168.0.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcla)))orclb =(DEscriptION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 202.168.0.2)(PORT = 1522)))(CONNECT_DATA =(SERVICE_NAME = orclb)))

 

 

 

8.在A机上ORACLE环境变量的ORACLE_SID指定TA的实例名,例如:ORACLE_SID=orcla;在B机上ORACLE环境变量的ORACLE_SID指定直销的实例名,例如:ORACLE_SID=orclb;

四、HACMP的安装与配置

 

(1)安装

HACMP软件的安装与AIX基本*作系统选项软件的安装相同,用户可以根据需要选择安装HACMP软件,一般HACMP软件光盘上的内容全选。

smit update_all

选择光驱

默认安装光盘上所有软件

 

(2)配置

 

1、/.rhosts

 

在两台主机上用VI建立 .rhosts文件,内容为:

m851_svc

m851_stb

m851_boot

m852_svc

m852_stb

m852_boot

在两台机器上分别改变 .rhosts文件的属

性:

chmod 644 .rhosts

 

2、/etc/hosts

 

在两台主机上的/etc/hosts文件中用VI编辑,内容为:

202.168.0.1 m851_svc

196.100.2.11 m851_stb

172.17.0.1 m851_boot

202.168.0.1 m852_svc

202.168.0.12 m852_stb

172.17.0.2 m852_boot

 

3、配置网络拓扑结构

 

smit hacmp:

屏幕显示hacmp菜单:

HACMPCluster ConfigurationCluster ServicesCluster System ManagementCluster Recovery AidsRAS Support---------- end of screen ----------选择Cluster Configuration,Cluster ConfigurationCluster TopologyCluster SecurityCluster ResourcesCluster SnapshotsCluster VerificationCluster Custom ModificationRestore System Default Configuration from Active ConfigurationAdvanced Performance Tuning Parameters---------- end of screen ----------选择Cluster TopologyCluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Configure ClusterConfigure Cluster Add a Cluster DefinitionChange / Show Cluster DefinitionRemove Cluster Definition---------- end of screen ----------选择Add a Cluster Definition,并进行配置:Add a Cluster Definition[Entry Fields]**NOTE: Cluster Manager MUST BE RESTARTEDin order for changes to be acknowledged.*** Cluster ID [188](输入) #* Cluster Name [test](输入)---------- end of screen ----------添加成功后返回到Cluster TopologyCluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Configure NodesConfigure NodesAdd Cluster NodesChange / Show Cluster Node NameRemove a Cluster Node---------- end of screen ----------选择Add Cluster Nodes,并进行配置(添加两个Node,M851、M852):Add Cluster Nodes[Entry Fields]Node Names [m851](输入 Node Name)---------- end of screen ----------Add Cluster Nodes[Entry Fields]Node Names [m852](输入 Node Name)---------- end of screen ----------添加成功后,返回到Cluster TopologyCluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Configure AdaptersConfigure AdaptersAdapters on IP-based networkAdapters on Non IP-based network---------- end of screen ----------选择Adapters on IP-based networkAdapters on IP-based network Discover Current Network ConfigurationAdd an AdapterChange / Show an AdapterRemove an Adapter---------- end of screen ----------选择Add an Adapter,配置m851_bootAdd an IP-based Adapter[Entry Fields]Adapter IP Label m851_bootNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [boot] +Adapter IP address [202.168.0.11] Adapter Hardware Address [] Node Name [m851] +Netmask [255.255.255.0] +---------- end of screen ----------<ccid_page/>配置m851_stbAdd an IP-based Adapter[Entry Fields]Adapter IP Label m851_stbNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [standby] +Adapter IP address [172.17.0.1] Adapter Hardware Address [] Node Name [m851] +Netmask [255.255.255.0] +---------- end of screen ----------配置m851_svcAdd an IP-based Adapter[Entry Fields]Adapter IP Label m851_svcNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [service] +Adapter IP address [202.168.0.1] Adapter Hardware Address [0x0002556affff] Node Name [m851] +Netmask [255.255.255.0] +---------- end of screen ----------配置m852_bootAdd an IP-based Adapter[Entry Fields]Adapter IP Label m852_bootNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [boot] +Adapter IP address [202.168.0.12] Adapter Hardware Address [] Node Name [m852] +Netmask [255.255.255.0] +---------- end of screen ----------配置m852_stbAdd an IP-based Adapter[Entry Fields]Adapter IP Label m852_stbNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [standby] +Adapter IP address [172.17.0.2] Adapter Hardware Address [] Node Name [m852] +Netmask [255.255.255.0] +---------- end of screen ----------配置m852_svcAdd an IP-based Adapter[Entry Fields]Adapter IP Label m852_svcNew Adapter IP Label [] +* Network Type [ether] +* Network Name [test_eth] +* Network Attribute [public] +* Adapter Function [service] +Adapter IP address [202.168.0.2] Adapter Hardware Address [0x0002556ad9ff] Node Name [m852] +Netmask [255.255.255.0] +---------- end of screen ----------

4、分别增加TTY在两台主机上:

 

smit tty

选择:Add a TTY

 

 

Add a TTYType or select values in entry fields.Press Enter AFTER making all desired changes.[TOP] [Entry Fields]TTY tty2TTY type ttyTTY interface rs232Description Asynchronous TerminalStatus AvailableLocation 01-S4-00-00Parent adapter sa3 PORT number [0] +Enable LOGIN disable +BAUD rate [9600] +PARITY [none] +BITS per character [8] +Number of STOP BITS [1] +[MORE...35]

 

 

在第二台主机上同样方法配置一个TTY。

 

5、配置心跳线TTY

 

Cluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Configure AdaptersConfigure AdaptersAdapters on IP-based networkAdapters on Non IP-based network---------- end of screen ----------选择Adapters on Non IP-based networkAdapters on Non IP-based networkAdd an Adapter Change / Show an Adapter Remove an Adapter ---------- end of screen ----------选择Add an Adapter,并进行配置Add an Adapter[Entry Fields]Adapter Label m851_ttyNew Adapter Label []Network Type [rs232] +* Network Name [test_tty] +* Device Name [/dev/tty2]* Node Name [m851] +---------- end of screen ----------Add an Adapter[Entry Fields]Adapter Label m852_ttyNew Adapter Label []Network Type [rs232] +* Network Name [test_tty] +* Device Name [/dev/tty3]* Node Name [m852] +---------- end of screen ----------

6、配置资源组:

 

smit hacmp:

屏幕显示hacmp菜单:

 

 

HACMPCluster ConfigurationCluster ServicesCluster System ManagementCluster Recovery AidsRAS Support---------- end of screen ----------选择Cluster Configuration,Cluster ConfigurationCluster TopologyCluster SecurityCluster ResourcesCluster SnapshotsCluster VerificationCluster Custom ModificationRestore System Default Configuration from Active ConfigurationAdvanced Performance Tuning Parameters---------- end of screen ----------选择Cluster ResourcesCluster ResourcesDefine Resource GroupsDefine Application ServersConfigure Application MonitoringDefine Tape ResourcesDefine Highly Available Communication LinksDiscover Current Volume Group ConfigurationConfigure Dynamic Node Priority PoliciesChange/Show Resources/Attributes for a Resource GroupCluster EventsChange/Show Run Time ParametersChange/Show Cluster Lock Manager Resource AllocationShow Cluster ResourcesSynchronize Cluster Resources---------- end of screen ----------

 

 

7、配置应用服务器

 

 

选择Define Application ServersDefine Application ServersAdd an Application ServerChange / Show an Application Server Remove an Application Server ---------- end of screen ----------

 

 

 

1.选择Add an Application Server,并进行配置

 

 

Add an Application Server[Entry Fields]Server Name adata_appStart script [/usr/sbin/cluster/appserver/startapp1]Stop script [/usr/sbin/cluster/appserver/stopapp1]---------- end of screen ----------Add an Application Server[Entry Fields]Server Name bdata_appStart script [/usr/sbin/cluster/appserver/startapp2]Stop script [/usr/sbin/cluster/appserver/stopapp2]---------- end of screen ----------

 

 

2.增加资源组

 

 

选择Define Resource GroupsDefine Resource GroupsAdd a Resource GroupChange / Show a Resource GroupRemove a Resource Group---------- end of screen ----------选择Add a Resource Group,并配置两个资源组Add a Resource Group[Entry Fields]Resource Group Name resource1Node Relationship cascading +Participating Node Names / Default Node Priority [m851 m852] +---------- end of screen ----------Add a Resource Group[Entry Fields]Resource Group Name resource2Node Relationship cascading +Participating Node Names / Default Node Priority [m852 m851] +---------- end of screen ----------

 

3.配置资源组

 

 

选择Change/Show Resources/Attributes for a Resource Group,配置resource1和resource2配置resource1Change/Show Resources/Attributes for a Resource Group[TOP] [Entry Fields]Resource Group Name resource1Node Relationship cascadingParticipating Node Names / Default Node Priority m851 m852Dynamic Node Priority [] +Service IP label [m851_svc] +Filesystems (default is All) [] +Filesystems Consistency Check fsck +Filesystems Recovery Method sequential +Filesystems/Directories to Export [] +Filesystems/Directories to NFS mountNetwork For NFS Mount [] +Volume Groups [adatavg] +Concurrent Volume groups [] +Raw Disk PVIDs [] +Connections Services [] +Fast Connect Services [] +Tape Resources [] +Application Servers [adata_app] +Highly Available Communication Links [] +Miscellaneous Data []Automatically Import Volume Groups false +Inactive Takeover Activated false +Cascading Without Fallback Enabled false +9333 Disk Fencing Activated false +SSA Disk Fencing Activated false + Filesystems mounted before IP configured false +---------- end of screen ----------配置resource2Change/Show Resources/Attributes for a Resource Group[TOP] [Entry Fields]Resource Group Name resource2Node Relationship cascadingParticipating Node Names / Default Node Priority m852 m851Dynamic Node Priority [] +Service IP label [m852_svc] +Filesystems (default is All) [] +Filesystems Consistency Check fsck +Filesystems Recovery Method sequential +Filesystems/Directories to Export [] +Filesystems/Directories to NFS mount [] +Network For NFS Mount [] +Volume Groups [bdatavg] +Concurrent Volume groups [] +Raw Disk PVIDs [] +Connections Services [] +Fast Connect Services [] +Tape Resources [] +Application Servers [bdata_app] +Highly Available Communication Links [] +Miscellaneous Data [] Automatically Import Volume Groups false +Inactive Takeover Activated false +Cascading Without Fallback Enabled false +9333 Disk Fencing Activated false +SSA Disk Fencing Activated false + Filesystems mounted before IP configured false +---------- end of screen ----------

 

拓扑同步和资源同步

 

在主机一配置完成以后,用菜单中的同步命令进行将第一资源放到第二台机器上的工作。

 

1.拓扑同步

 

具体配置方法如下:

 

smit hacmp:

屏幕显示hacmp菜单:

 

HACMPCluster ConfigurationCluster ServicesCluster System ManagementCluster Recovery AidsRAS Support---------- end of screen ----------选择Cluster Configuration,Cluster ConfigurationCluster TopologyCluster SecurityCluster ResourcesCluster SnapshotsCluster VerificationCluster Custom ModificationRestore System Default Configuration from Active ConfigurationAdvanced Performance Tuning Parameters---------- end of screen ----------选择Cluster TopologyCluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Synchronize Cluster Topology,回车确认等待同步完成。

 

 

2.资源同步

 

具体配置方法如下:

smit hacmp:

屏幕显示hacmp菜单:

 

HACMPCluster ConfigurationCluster ServicesCluster System ManagementCluster Recovery AidsRAS Support---------- end of screen ----------选择Cluster Configuration,Cluster ConfigurationCluster TopologyCluster SecurityCluster ResourcesCluster SnapshotsCluster VerificationCluster Custom ModificationRestore System Default Configuration from Active ConfigurationAdvanced Performance Tuning Parameters---------- end of screen ----------选择Cluster TopologyCluster TopologyConfigure ClusterConfigure NodesConfigure NetworksConfigure AdaptersConfigure SitesConfigure Global NetworksConfigure Network ModulesConfigure Topology Services and Group ServicesShow Cluster TopologySynchronize Cluster Topology---------- end of screen ----------选择Cluster ResourcesCluster ResourcesDefine Resource GroupsDefine Application ServersConfigure Application MonitoringDefine Tape ResourcesDefine Highly Available Communication LinksDiscover Current Volume Group ConfigurationConfigure Dynamic Node Priority PoliciesChange/Show Resources/Attributes for a Resource GroupCluster EventsChange/Show Run Time ParametersChange/Show Cluster Lock Manager Resource AllocationShow Cluster ResourcesSynchronize Cluster Resources---------- end of screen ----------选择Synchronize Cluster Resources,回车确认等待同步完成。

 

3.校验

具体配置方法如下:

smit hacmp:

屏幕显示hacmp菜单:

 

HACMPCluster ConfigurationCluster ServicesCluster System ManagementCluster Recovery AidsRAS Support---------- end of screen ----------选择Cluster Configuration,Cluster ConfigurationCluster TopologyCluster SecurityCluster ResourcesCluster SnapshotsCluster VerificationCluster Custom ModificationRestore System Default Configuration from Active ConfigurationAdvanced Performance Tuning Parameters---------- end of screen ----------选择Cluster VerificationCluster VerificationVerify ClusterDefine Custom Verification Method ---------- end of screen ----------选择Verify ClusterVerify Cluster[Entry Fields]Base HACMP Verification Methods both +(Cluster topology, resources, both, none)Custom Defined Verification Methods [] +Error Count [] #Log File to store output []---------- end of screen ----------回车确认即可。