aix6.1+hacmp5.4.1安装

更新时间:2023-10-09 18:02:01 阅读量: 综合文库 文档下载

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

安装aix6.1

配置ip地址 smitty tcpip,

配置存储设备:

我们通过 cfgmgr 命令刷新下设备。 # cfgmgr -vl iscsi0

lspv 查看是否认到存储上的硬盘

lscfg -vpl hdiskxx 查看硬盘xx的配置

AIX6.1 ISCSI调优

找到盘后,调整以下内容: 1,修改网卡配置 ifconfig en0 down ifconfig en0 detach

chdev -l en0 -a jumbo_frames=yes ifconfig en0 up

2,修改interface配置

chdev -l en0 -a tcp_recvspace=262144 chdev -l en0 -a tcp_sendspace=262144 chdev -l en0 -a rfc1323=1 3,修改tcpip配置

no -o sb_max=524288以上 no –p –o sb_max=1310720

用存储上的硬盘来创建vg smitty mkvg 创建VG smitty mklv 创建LV smitty jfs 创建文件系统

lsvg -o 查看已经varyon(激活)的vg,如 datavg 在node1上执行 varyoffvg datavg

在node2上执行 importvg -y vgname hdiskx 如:importvg -y datavg hdisk1 然后再在node2上执行varyoffvg datavg

smit installp 开始安装hacmp5.4 (clluster.hativoli, clusterhaview, netwiew 这三个不安装)

安装hacmp时缺少的补丁包,需要到aix6.1的安装盘中找到并安装 bos.net.nfs.server 6.1.6.0

bos.adt.libm 6.1.6.0 # Fileset Update bos.adt.syscalls 5.2.0.50 # Fileset Update

bos.data 5.1.0.0 # Base Level Fileset rsct.basic.hacmp 2.4.5.0 # Base Level Fileset rsct.basic.rte 2.4.5.0 # Base Level Fileset rsct.opt.storagerm 2.4.5.0 # Base Level Fileset

lslpp -l |grep cluster |wc -l 查看HA安装包,共44个

smit update_all 为hacmp5.4打补丁到5.4.1

lppchk -v

lppchk -c cluster* 检查hacmp是否安装成功,无报错成功,有报错重启机器

在系统下执行lslpp -lc >/ha_lpp.txt收集HA的基础包,然后把/ha_lpp.txt下载到笔记本上。 补丁可在 IBM 网站下载 :

http://www-933.ibm.com/eserver/support/fixes/

http://www-933.ibm.com/support/fixcentral/aix/downloadOptions 按里面的提示点击链接,上传ha_lpp.txt文件后下载补丁,使用smitty update_all来安装所有补丁。

修改/etc/hosts表,添加两个节点的boot ip和service ip如: Hostname = aixdb1 Hostname = aixdb2

200.0.0.206 aixdb1_boot aixdb1 (公网IP) 200.0.0.208 aixdb2_boot aixdb2 (公网IP)

10.0.0.l aixdb1_std (通讯IP) 10.0.0.2 aixdb2_std (通讯IP)

200.0.0.209 aixdb_svr (对外服务IP)

touch /tmp/oraclestart /tmp/oraclestop 创建启动/停在脚本

chmod 755 /tmp/oraclestat 为启动脚本赋予权限 chmod 755 /tmp/oraclestop 为停止脚本赋予权限

文件系统扩空间大小可根据应用来定 # chfs -a size=2G /

Filesystem size changed to 4194304

定义CLUSTER拓扑 创建双机节点信息 # smitty hacmp

→Initialization and Standard Configuration →Add Nodes to an HACMP Cluster

[Cluster Name]项输入:clzxin10(自定义);

[New Nodes (via selected communication paths)]:按键,选择主备机名称,或者在 [Currently Configured Node(s)]选项中输入主备机名称,以空格分隔。 按键创建。

配置网络

# smitty hacmp

→Extended Configuration

→Extended Topology Configuration

→Configure HACMP Communication Interfaces/Devices →Add Communication Interfaces/Devices

→Add Pre-defined Communication Interface and Device →Communication Interfaces 选择net_ether_01。

? [IP Label/Address]项:按键,选择node1_boot; ? [Network Type]项:选择默认的ether;

? [Network Name]项:选择默认的net_ether_01; ? [Node Name]项:按键,选择node1;

? [Network Interface]项:根据实际情况输入网卡,如en0。 按键创建。

然后按表的顺序分别创建各网络适配器。

表1 CLUSTER中创建的Communication Interfaces名称

IP Label/Address Network Type Network Name Node Name Network Interface node1_boot node1_stb node2_boot node2_stb Ether Ether ether ether net_ether_01 net_ether_01 net_ether_01 net_ether_01 node1 node1 node2 node2 根据实际情况选择网卡 根据实际情况选择网卡 根据实际情况选择网卡 根据实际情况选择网卡 定义心跳串口

1. 定义心跳串口名称 # smitty hacmp

→Extended Configuration

→Extended Topology Configuration →Configure HACMP Networks

→Add a Network to the HACMP Cluster

选择[ Discovered Serial Device Types] 的rs232。 系统缺省用net_rs232_01给串口网络命名。 按键创建。 2. 配置心跳串口 # smitty hacmp

→Extended Configuration

→Extended Topology Configuration

→Configure HACMP Communication Interfaces/Devices →Add Communication Interfaces/Devices

→Add Pre-defined Communication Interfaces and Devices →Communication Devices

选择net_rs232_01。 ? [Device Name]:输入node1_tty; ? [Network Type]:选择默认的rs232; ? [Network Name]:选择默认的net_rs232_01; ? [Device Path]: 输入连接两台机器的串口设备名称; ? [Node Name]:输入对应机器名。 按键,完成心跳串口的配置。 然后按表的顺序分别创建各Adapter:

表2 CLUSTER中创建的Communication Devices名称 Device Name node1_tty node2_tty Network Type rs232 rs232 Network Name Net_rs232_01 Net_rs232_01 Device Path /dev/tty0 /dev/tty0 Node Name node1 node2 定义浮动IP # smitty hacmp

→Initialization and Standard Configuration

→Configure Resources to Make Highly Available →Configure Service IP Labels/Addresses →Add a Service IP Label/Address

? [IP Label/Address]项:按键,选择servcie ip; ? [Network Name]项:按键,选择net_ether_01。 按键创建。

定义Application Server # smitty hacmp

→Initialization and Standard Configuration

→Configure Resources to Make Highly Available →Configure Application Servers →Add an Application Server ? [Server Name]:输入应用服务名称app_zxin; ? [Start Script]:输入/home/zxin10/hacmp/zxinclc start; ? [Stop Script]:输入/home/zxin10/hacmp/zxinclc stop。 按键创建。

定义资源组Resource Group (1) 创建资源组rg_zxin # smitty hacmp

→Initialization and Standard Configuration →Configure HACMP Resource Groups →Add a Resource Group 编辑如下选项:

? [resource Group Name]: 输入rg_zxin;

? [Participating Nodes (Default Node Priority) ]:按键,选择node1、node2; ? [Startup Policy]:按键,选择 Online Using Distribution Policy; ? [Fallover Policy]:按键,选择Fallover To Next Priority Node In The List; ? [Fallback Policy]:按键,选择Never Fallback。

键创建。 (2) 配置资源组

键,返回到上级菜单。

→Change/Show Resources for a Resource Group (standard) 选择rg_zxin。

? [Service IP Labels/Addresses]:按键,选择node; ? [Volume Groups]:输入vgsybase;

? [Filesystems (empty is ALL for VGs specified)]:缺省,不输入; ? [Application Servers]:按键,选择app_zxin。 按键生成资源组配置。 同步CLUSTER资源组配置 # smitty hacmp

→Initialization and Standard Configuration

→Verify and Synchronize HACMP Configuration 按键,系统开始执行命令。

观察系统在同步的过程中是否出现错误。若有错误则仔细检查配置步骤。若没有错误,则表明双机已配置成功。

调整主备机性能参数 # smitty hacmp

→Extended Configuration

→Extended Performance Tuning Parameters Configuration →Change/Show I/O pacing

? [HIGH water mark for pending write I/Os per file]:输入33; ? [LOW water mark for pending write I/Os per file]:输入24。 按键,返回到上级菜单。 →Change/Show syncd frequency [syncd frequency (in seconds)]项:修改为10。 按键,完成调整。

启动及测试

软件安装结束后,需要进行以下操作:

1. 双机软件的启动(分别在主备节点进行);

2. 双机的倒换测试。通过测试可以检查整个软件安装是否成功。

smit clstart 启动ha

/usr/es/sbin/cluster/clstat 查看HA应用是否正常,如无法显示,按如下方法解决

关于在aix6.1+hacmp5.4.1环境下,使用clstat命令没有返回值的情况,只需要对操作系统的snmp的配置文件进行一点修改就可以使用clstat命令可以正确返回,方法如下: 1,修改文件/etc/snmpdv3.conf,增加语句

# exclude snmpv3 related MIBs from the default view

VACM_VIEW defaultView snmpModules - excluded -

VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included - VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -

VACM_VIEW defaultView 1.3.6.1.4.1.2.3.1.2.1.5 - included - 增加此语句

2,依次执行如下命令 stopsrc -s snmpd startsrc -s snmpd sleep 120

snmpinfo -m dump -v -o /usr/es/sbin/cluster/hacmp.defs /usr/es/sbin/cluster/utilities/cldump /usr/es/sbin/cluster/clstat -o

smit clstop 停掉主节点,进行切换测试

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

Top