PowerHA7.1安装配置文档

更新时间:2023-10-03 11:29:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

PowerHA7.1安装配置文档

Version 1.0

作者:

文档记录

版本记录

Date of this revision: 2014/5/3 Saturday 版本号 1.0

时间 2014/5/3 Saturday 变更纪要 形成文档 是否变更 N

POWERHA7.1安装配置文档 ...................................................................................................... 1 1 2

规划 ................................................................................................................................. 4 安装软件 ......................................................................................................................... 7 2.1 拓扑图 ................................................................................................................................... 7 2.2 SAN 设置(可选) ............................................................................................................... 7 2.3 安装软件 ............................................................................................................................... 8 3

设置网络相关.................................................................................................................. 8 3.1 网卡IP设置 .......................................................................................................................... 8 3.2 HOSTS文件设置 ...................................................................................................................... 8 3.3 配置/ETC/CLUSTER/RHOSTS文件 ............................................................................................... 9 3.4 准备REPOSITORY DISK和共享存储 .......................................................................................... 9 4

创建群集 ......................................................................................................................... 9 4.1 初始化群集 ........................................................................................................................... 9 4.2 定义REPOSITORY DISK ............................................................................................................ 10 4.3 配置PERSISTENT IP ................................................................................................................. 10 4.4 同步 ..................................................................................................................................... 11 4.5 查看配置信息 ..................................................................................................................... 12 4.6 配置资源和应用程序 ......................................................................................................... 12 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6

添加Applications脚本 ......................................................................................... 12 配置服务IP ........................................................................................................... 13 创建资源组 ........................................................................................................... 13 修改资源组属性 ................................................................................................... 14 添加卷组 ............................................................................................................... 14 再次同步 ............................................................................................................... 15

5 HACMP状态管理 ............................................................................................................... 15 5.1 启停HACMP........................................................................................................................ 15 5.2 查看HACMP最终状态 ....................................................................................................... 16 5.3 修复查看HACMP状态不正常 ........................................................................................... 16 5.4 删除REPOSITORY DISK ............................................................................................................. 17

1 规划

项目 硬件 支持 要求 PowerHA Hardware Support Matrix: http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/TD105638 系统版6100-06 or 7100 本要求 补丁版本推荐 http://www14.software.ibm.com/webapp/set2/flrt/home 软件 要求 The following Base Operating System (BOS) components for AIX are required for PowerHA: bos.adt.lib bos.adt.libm bos.adt.syscalls bos.ahafs bos.clvm.enh bos.cluster bos.data bos.net.tcp.client bos.net.tcp.server bos.rte.SRC bos.rte.libc bos.rte.libcfg bos.rte.libcur

bos.rte.libpthreads bos.rte.lvm bos.rte.odm cas.agent (required for the IBM Systems Director plug-in) The following file sets on the AIX base media are required: rsct.basic.rte rsct.compat.basic.hacmp rsct.compat.clients.hacmp The appropriate versions of RSCT for the supported AIX releases are also supplied with the PowerHA installation media. 硬件 要求 Have at least two network adapters connected to different Ethernet switches in the same virtual LAN (VLAN) Employ dual-fabric SAN connections to the storage subsystems using at least two Fibre Channel (FC) adapters and appropriate multipath drivers. 网络 要求 共享 存储 支持主流SAN存储 PowerHA 7.1 supports only the use of enhanced concurrent volume groups 3个网段,不再支持IP替换的方式

SAN 心跳 repository disk 资料 交换机上面要划zone,HBA卡要设置(查看2.2) 存储上的磁盘,大小512M≤460G。不支持LVM镜像。 7.1.1后支持第三方多路径 POWREHA 信息中心:http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp?topic=/com.ibm.aix.powerha.navigation/powerha_pdf.htm 相关资源下载(powerha资源汇总): http://www-03.ibm.com/systems/power/software/availability/aix/resources.html 红皮书: IBM PowerHA SystemMirror 7.1 for AIX.pdf IBM PowerHA SystemMirror Standard Edition 7.1.1 for AIX Update.pdf

2 安装软件

2.1 拓扑图

2.2 SAN 设置(可选)

? zoneing:

两个SAN交换机上分别创建主机到主机的zone。 ? 修改HBA卡属性:

? 方法一:适用于可以删除子设备时

rmdev -Rl fcsX chdev -l fcsX -a tme=yes chdev -l fscsiX -a dyntrk=yes -a fc_err_recov=fast_fail cfgmgr -l fcsX;cfgmgr -l sfwcommX 验证: lsdev -C | grep -e fcsX -e sfwcommX lsattr -El fcsX | grep tme lsattr -El fscsiX | grep -e dyntrk -e fc_err_recov 方法二:适用于设备忙时,重启生效

chdev -P -l fcsX -a tme=yes

chdev -P -l fscsiX -a dyntrk=yes -a fc_err_recov=fast_fail 2.3 安装软件

最简安装包(待测试)

cluster.es.client cluster.es.server cluster.es.cspoc 3 设置网络相关

3.1 网卡IP设置

IP 标签地址 Syndey_en0 Syndey Perth_en0 Perth_en1 Perth Perth_svc 网络接口 网络名 en0 en0 en1 接口功能 IP 地址 100.10.1.10 网络掩码 255.255.255.0 ether1 #boot1 ether1 #boot2 ether1 #service ether1 #boot1 ether1 #boot2 ether1 #service Syndey _en1 en1 Syndey _svc 100.10.11.10 255.255.255.0 192.168.2.13 255.255.255.0 100.10.1.11 255.255.255.0 100.10.11.11 255.255.255.0 192.168.2.14 255.255.255.0 ether1 #Persistent 192.168.2.10 255.255.255.0 ether1 #Persistent 192.168.2.12 255.255.255.0 3.2 hosts文件设置

主机名和节点名对应,/etc/hosts文件中必须要有主机名对应的IP 每台服务器都要修改

100.10.1.10 Syndey_en0 #boot1 100.10.11.10 Syndey_en1 #boot2 192.168.2.10 Syndey #Persistent 192.168.2.12 Syndey_svc #service 100.10.1.11 Perth_en0 #boot1 100.10.11.11 Perth_en1 #boot2 192.168.2.11 Perth #Persistent 192.168.2.13 Perth_svc #service 由于POWERHA7.1要求配置cluster前主机名能解析。通过下面方法确认: # hostname|xargs ping <<正常返回就可以

PING Syndey: (100.10.1.10): 56 data bytes 64 bytes from 100.10.1.10: icmp_seq=0 ttl=255 time=0 ms 如果主机名要与persistent对应,要先设置个IP别名。

Syndey#ifconfig en0 192.168.2.10 alias Perth#ifconfig en0 192.168.2.11 alias 3.3 配置/etc/cluster/rhosts文件

这个文件是7.1的新增(必须)。 每台服务器都要修改

100.10.1.10 100.10.11.10 192.168.2.10 192.168.2.12 100.10.1.11 100.10.11.11 192.168.2.11 192.168.2.13 修改完/etc/cluster/rhosts后用,refresh -s clcomd命令更新配置

3.4 准备repository disk和共享存储

通过下面命令设置repository disk 的PVID。集群主机都要设置。

chdev –l hdisk –a pv=yes 通过下面方式设置共享存储(可以略过,集群配置好后通过C-SPOC设置)

A主机:创建卷组 B主机:导入卷组 4 创建群集

4.1 初始化群集

#smitty sysmirror or smitty hacmp

? Cluster Nodes and Networks ? Initial Cluster Setup (Typical) ? Setup a Cluster, Nodes and Networks

Setup Cluster, Nodes and Networks (Typical) Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Cluster Name [australia] New Nodes (via selected communication paths) [perth] + Currently Configured Node(s) sydney 4.2 定义Repository Disk

如果上一步没有自动创建,要手动创建。 #?

? Initial Cluster Setup (Typical)

? Define Repository and Cluster IP Address

Define Repository and Cluster IP Address Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Cluster Name australia * Repository Disk [disk2] <<通过下拉选项选择磁盘+ Cluster IP Address []

4.3 配置persistent ip

#smit sysmirror ? ? ?

?

? Select a Node ? net_ether_01 选择节点Syndey配置

[Entry Fields] * Node Name Syndey

* Network Name [net_ether_01] + * Node IP Label/Address [Syndey] + Netmask(IPv4)/Prefix Length(IPv6) [] 选择节点Syndey配置

[Entry Fields] * Node Name Perth * Network Name [net_ether_01] + * Node IP Label/Address [Perth] + Netmask(IPv4)/Prefix Length(IPv6) [] 4.4 同步

#smit sysmirror

? Cluster Nodes and Networks

? Verify and Synchronize Cluster Configuration

4.5 查看配置信息

/usr/es/sbin/cluster/utilities/cltopinfo #PowerHA cluster topology 4.6 配置资源和应用程序 4.6.1 添加Applications脚本

步骤 创建脚本目录 创建脚本 Syndey mkdir /HA71/ touch /HA71/db_start.sh Perth mkdir /HA71/ touch /HA71/db_start.sh touch /HA71/db_stop.sh 修改脚本权限 chmod +x /HA71/db_start.sh chmod +x /HA71/db_stop.sh touch /HA71/db_stop.sh chmod +x /HA71/db_start.sh chmod +x /HA71/db_stop.sh #

? Cluster Applications and Resources ? Resources

? Configure User Applications (Scripts and Monitors) ? Application Controller Scripts

Add Application Controller Scripts Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Application Controller Name [dbac] * Start Script [/HA71/db_start.sh] * Stop Script [/HA71/db_stop.sh] Application Monitor Name(s) +

4.6.2 配置服务IP

#?

? Resources

? Configure Service IP Labels/Addresses ? Add a Service IP Label/Address

+--------------------------------------------------------------------------+ | Network Name | | | | Move cursor to desired item and press Enter. | | | | net_ether_01 (100.10.1.0/24 100.10.11.0/24) 下一步:选择服务IP Add a Service IP Label/Address Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * IP Label/Address Syndey_svc + Netmask(IPv4)/Prefix Length(IPv6) [] * Network Name ether01

4.6.3 创建资源组

#

? Cluster Applications and Resources ? Resource Groups. ? Add a Resource Group

Add a Resource Group Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Resource Group Name [dbrg] * Participating Nodes (Default Node Priority) [sydney perth] +

Startup Policy Online On Home Node O> + Fallover Policy Fallover To Next Prio> + Fallback Policy Never Fallback > + <<主备推荐nerver fallback 4.6.4 修改资源组属性

#

? Cluster Applications and Resources ? Resource Groups.

? Change/Show Resources and Attributes for a Resource Group

Change/Show All Resources and Attributes for a Resource Group Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] [Entry Fields] Resource Group Name dbrg Participating Nodes (Default Node Priority) sydney perth Startup Policy Online On Home Node O> Fallover Policy Fallover To Next Prio> Fallback Policy Fallback To Higher Pr> Fallback Timer Policy (empty is immediate) [] + Service IP Labels/Addresses [Syndey_svc] + Application Controllers [dbac] + Volume Groups [] + Use forced varyon of volume groups, if necessary false + 4.6.5 添加卷组

#smitty sysmirror

? System Management (C-SPOC) ? Storage ? Volume Groups

? Create a Volume Group <<选择节点名 ? Node Names ? ? ? ? Move cursor to desired item and press Esc+7. ?

? ONE OR MORE items can be selected. ? ? Press Enter AFTER making all selections. ? ? ? ? > perth ? ? > sydney 下一步:

? Move cursor to desired item and press Esc+7. ? ? ONE OR MORE items can be selected. ? ? Press Enter AFTER making all selections. ? ? ? ? 00c1f170674f3d6b ( hdisk3 on all selected nodes ) <<选择共享磁盘 下一步:

Create a Volume Group Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] [Entry Fields] Node Names perth,sydney Resource Group Name [dbrg] + PVID 00c1f170674f3d6b VOLUME GROUP name [dbvg] Physical partition SIZE in megabytes 512 + Volume group MAJOR NUMBER [37] # Enable Cross-Site LVM Mirroring Verification false + Enable Fast Disk Takeover or Concurrent Access Fast Disk Takeover + Volume Group Type Original CRITICAL volume group? no + 4.6.6 再次同步

5 HACMP状态管理

5.1 启停HACMP

? 启动smit clstart

Start Cluster Services Type or select values in entry fields. Press Enter AFTER making all desired changes.

本文来源:https://www.bwwdw.com/article/hcwd.html

Top