1、IBM Power AIX 61+Ha 71配置方法1.说明1.1.文档说明本文的环境是在AIX6.1操作系统下安装配置hacmp7.1.1.1的步骤,其它版本的系统安装配置基本类似,不同之处,请参考IBM的官方文档。1.2.注意事项配置hacmp的一些注意事项:1.2.1.安装的版本要符合数据中心的版本策略要求1.2.2.安装前要做好规划,了解应用要实现什么样的高可靠性需求1.2.3.HA可以实现排除单点故障,但不是冗余,因此关键部件还要有冗余配置,如电源模块、双HBA卡、rootvg镜像等1.2.4.配置为HA的主、备节点不能是同一台物理服务器上的两个逻辑分区1.2.5.存储厂商在HA环境
2、下有定制的磁盘解锁脚本,EMC、HDS存储,在HA 的add custom disk methods中增加厂商自定义脚本。1.2.6.编写的应用启停脚本要事先手工执行测试,并且确保停止脚本在系统异常时可以停止应用,以释放资源。1.2.7.HA配置完成后,不要将HA的服务设置为自启动模式,即HA服务的启动,要手工启动1.2.8.HA配置完成后,要模拟各种故障场景,充分测试接管功能是否正常。2.安装环境2.1.硬件,带HMCServer1: IBM Power 730(8231 E2C)Server2: IBM Power 730(8231 E2C)2.2.软件2.2.1.OS环境:6100-08
3、-02-13162.2.2.HA环境:7.1.1.13.规划3.1.拓扑结构规划net_ether_01规划群集名称节点名称网络名称Boot LabelPersistent LabelService Labelhisserver_clusterhisserver1net_ether_01hisserver1_boot2hisserver1_perhisserver1_serviceHisserver2hisserver2_boot2hisserver2_perhisserver2_service3.2.应用服务器规划应用服务器名称应用服务器启动脚本路径应用服务器停止脚本路径app1/usr/e
4、s/script/start.sh/usr/es/script/stop.sh3.3.资源组规划资源组名称参入节点应用服务器Service IP Label卷组rg1hisserver1app1hisserver1_servicedatavghisserver2backupvg4.安装步骤4.1.配置2台小机的IP地址。名称En0En2Hisserver110.52.1.1/2410.52.2.1/24Hisserver210.52.1.2/2410.52.2.2/244.2.安装Power Ha双机软件,并且升级双机软件。4.3.编辑/etc/hosts与/etc/cluster/rhost
5、s文件。/etc/hosts127.0.0.1 loopback localhost10.52.1.1 hisserver110.52.1.2 hisserver210.52.2.1 hisserver1_boot210.52.2.2 hisserver2_boot2172.16.106.2 hisserver1_per172.16.106.3 hisserver2_per172.16.106.1 hisserver1_service172.16.106.4 hisserver2_service/etc/cluster/rhostshisserver1hisserver2hisserver1_
6、boot2hisserver2_boot2hisserver1_perhisserver2_per4.4.在主机的终端上输入:smitty hacmp4.4.1.初始化一个群集4.4.1.1.Move cursor to desired item and press Enter.Cluster Nodes and NetworksCluster Applications and ResourcesSystem Management (C-SPOC)Problem Determination ToolsCustom Cluster ConfigurationCant find what you
7、are looking for ?Not sure where to start ?4.4.1.2.Move cursor to desired item and press Enter. Initial Cluster Setup (Typical) Manage the Cluster Manage Nodes Manage Networks and Network Interfaces Discover Network Interfaces and Disks Verify and Synchronize Cluster Configuration4.4.1.3.Move cursor
8、to desired item and press Enter. Setup a Cluster, Nodes and Networks Define Repository Disk and Cluster IP Address What are the repository disk and cluster IP address ? 4.4.1.4.Type or select values in entry fields.Press Enter AFTER making all desired changes. Entry Fields Cluster Name hisserver_clu
9、ster Currently Configured Node(s) hisserver1 hisserver2当初始化完成群集之后,群集的网络、网络接口都已经自动配置好了。-info- start -Warning: to complete this configuration, a repository disk must be defined.Cluster Name: hisserver_clusterCluster Connection Authentication Mode: StandardCluster Message Authentication Mode: NoneClust
10、er Message Encryption: NoneUse Persistent Labels for Communication: NoRepository Disk: NoneCluster IP Address: There are 2 node(s) and 1 network(s) definedNODE hisserver1: Network net_ether_01 hisserver1 10.52.1.1 hisserver1_boot2 10.52.2.1NODE hisserver2: Network net_ether_01 hisserver2_boot2 10.52
11、.2.2 hisserver2 10.52.1.2No resource groups definedInitializing.Gathering cluster information, which may take a few minutes.Processing.Storing the following information in file/usr/es/sbin/cluster/etc/config/clvg_confighisserver1:Hdisk: hdisk0PVID: 00f874e355ef7a89VGname: rootvgVGmajor: 10Conc-capab
12、le: NoVGactive: YesQuorum-required:Nohisserver2:Hdisk: hdisk0PVID: 00f874e45588e2d4VGname: rootvgVGmajor: 10Conc-capable: NoVGactive: YesQuorum-required:Nohisserver1:Hdisk: hdisk1PVID: 00f874e3338b7141VGname: rootvgVGmajor: 10Conc-capable: NoVGactive: YesQuorum-required:Nohisserver2:Hdisk: hdisk1PVI
13、D: 00f874e43378f191VGname: rootvgVGmajor: 10Conc-capable: NoVGactive: YesQuorum-required:Nohisserver1:Hdisk: hdisk2PVID: 00f874e33239aab1VGname: NoneVGmajor: 0Conc-capable: NoVGactive: NoQuorum-required:Nohisserver2:Hdisk: hdisk2PVID: 00f874e33239aab1VGname: NoneVGmajor: 0Conc-capable: NoVGactive: N
14、oQuorum-required:NoFREEMAJORS: 51.FREEMAJORS: 51.Warning: There is no cluster found.cllsclstr: No cluster defined.cllsclstr: Error reading configuration.Communication path hisserver1 discovered a new node. Hostname is hisserver1. Adding it to the configuration with Nodename hisserver1.Communication
15、path hisserver2 discovered a new node. Hostname is hisserver2. Adding it to the configuration with Nodename hisserver2.Discovering IP Network ConnectivityRetrieving data from available cluster nodes. This could take a few minutes. Start data collection on node hisserver1 Start data collection on nod
16、e hisserver2 Collector on node hisserver1 completed Collector on node hisserver2 completed Data collection complete Completed 10 percent of the verification checks Completed 20 percent of the verification checks Completed 30 percent of the verification checks Completed 40 percent of the verification
17、 checks Completed 50 percent of the verification checks Completed 60 percent of the verification checks Completed 70 percent of the verification checksDiscovered 6 interfaces Completed 80 percent of the verification checks Completed 90 percent of the verification checks Completed 100 percent of the
18、verification checksIP Network Discovery completed normallyCurrent cluster configuration:Discovering Volume Group Configuration- end -4.4.2.配置存储库磁盘4.4.2.1.Move cursor to desired item and press Enter. Cluster Nodes and Networks Cluster Applications and Resources System Management (C-SPOC) Problem Dete
19、rmination Tools Custom Cluster Configuration Cant find what you are looking for ? Not sure where to start ?4.4.2.2.Move cursor to desired item and press Enter. Initial Cluster Setup (Typical) Manage the Cluster Manage Nodes Manage Networks and Network Interfaces Discover Network Interfaces and Disks
20、 Verify and Synchronize Cluster Configuration4.4.2.3.Move cursor to desired item and press Enter. Setup a Cluster, Nodes and Networks Define Repository Disk and Cluster IP Address What are the repository disk and cluster IP address ?4.4.2.4.Type or select values in entry fields.Press Enter AFTER mak
21、ing all desired changes. Entry FieldsClusterName hisserver_clusterRepository Disk hdisk2 Cluster IP Address 228.168.1.14.4.3.群集和存储库磁盘创建完成后,可以先同步下双机。4.4.3.1.Move cursor to desired item and press Enter. Cluster Nodes and Networks Cluster Applications and Resources System Management (C-SPOC) Problem De
22、termination Tools Custom Cluster Configuration Cant find what you are looking for ? Not sure where to start ?4.4.3.2.Move cursor to desired item and press Enter. Initial Cluster Setup (Typical) Manage the Cluster Manage Nodes Manage Networks and Network Interfaces Discover Network Interfaces and Dis
23、ks Verify and Synchronize Cluster Configuration同步完成后磁盘情况如下:# lspvhdisk0 00f874e355ef7a89 rootvg activehdisk1 00f874e3338b7141 rootvg activehdisk2 00f874e33239aab1 caavg_private active4.4.4.在存储上分别映射2块数据盘过来,然后在HA主备机里面执行cfgmgr v命令。# lspvhdisk0 00f874e355ef7a89 rootvg activehdisk1 00f874e3338b7141 rootv
24、g activehdisk2 00f874e33239aab1 caavg_private activehdisk3hdisk4主机上分别执行如下命令:Chdev l hdisk3 a pv=yesChdev l hdisk4 a pv=yes/usr/sbin/mkvg -y datavg -s 128 -f -n -V53 -C hdisk3/usr/sbin/mkvg -y backupvg -s 128 -f -n -V54 -C hdisk4varyonvg datavgvaryonvg backupvg然后通过smitty jfs2建立文件系统。备机上执行如下命令:/usr/sbi
25、n/importvg -y datavg hdisk3/usr/sbin/importvg -y backupvg hdisk44.4.5.建立Persistent Node IP Addresses4.4.5.1.Move cursor to desired item and press Enter. Cluster Nodes and Networks Cluster Applications and Resources System Management (C-SPOC) Problem Determination Tools Custom Cluster Configuration C
26、ant find what you are looking for ? Not sure where to start ?4.4.5.2.Move cursor to desired item and press Enter. Initial Cluster Setup (Typical) Manage the Cluster Manage Nodes Manage Networks and Network Interfaces Discover Network Interfaces and Disks Verify and Synchronize Cluster Configuration4
27、.4.5.3.Move cursor to desired item and press Enter. Show Topology Information by Node Add a Node Change/Show a Node Remove a Node Configure Persistent Node IP Label/Addresses Verify and Synchronize Cluster Configuration4.4.5.4.Move cursor to desired item and press Enter. Add a Persistent Node IP Lab
28、el/Address Change / Show a Persistent Node IP Label/Address Remove a Persistent Node IP Label/Address配置完Persistent IP之后就可以利用Persistent IP登陆了。4.4.6.创建资源组4.4.6.1.Move cursor to desired item and press Enter. Cluster Nodes and Networks Cluster Applications and Resources System Management (C-SPOC) Proble
29、m Determination Tools Custom Cluster Configuration Cant find what you are looking for ? Not sure where to start ?4.4.6.2.Move cursor to desired item and press Enter. Make Applications Highly Available (Use Smart Assists) Resources Resource Groups Verify and Synchronize Cluster Configuration4.4.6.3.Move cursor to desired item and press Enter. Add a Resource Group Change/Show Nodes and Policies for a Resource Group Change/Show Resources and Attributes for a Resource Group Remove a Resource Group Configure Resource Group Run-Time Policies Sh
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1