重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4316|回复: 2
打印 上一主题 下一主题

[绝对原创]AIX6.1_HACMP的安装与配置

[复制链接]
跳转到指定楼层
楼主
发表于 2013-5-6 23:06:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

                                                                     HacmpHigh Availability Cluster Muti-Processing)配置 for Aix

一、添加网卡

    1)分别为双机添加心跳网卡

      #smitty tcpip

        Further Configuration

             Network Interfaces

                  Network Interfaces Selection

                       Add a Network Interface

                            Add a Standard Ethernet Network Interface

     2)配置网卡IP

         INTERNET ADDRESS             [10.0.10.12]

         Network MASK                      [255.255.255.0]

 

二、配置hosts 和 rhost参数

      1)配置hosts IP

         #vi  /etc/hosts

 

         #bootip

             192.168.2.10  dbserver1

             192.168.2.12  dbserver2

 

         #serverip

             10.0.0.10 ora1_ser

         #heartip

             10.0.10.10  ora1_heart

             10.0.10.12  ora2_heart

 

         2)配置rhosts参数

         #vi  /usr/es/sbin/cluster/etc/rhosts

 

         dbserver1

         dbserver2

         ora1_ser

         ora1_heart

         ora2_heart

 

三、添加共享卷组

 

         1)192.168.2.10添加卷组

          #smitty vg

              Add a volume Group

                    Add a Scalable Volume Group

 

             VOLUME GROUP name                  [appvg]

           *PHYSICAL VOLUME names           [hdisk3]

             Activate volume group AUTOMATICALLY         [no]

             Volume Group MAJOR NUMBER  [48]

     

          2)192.168.2.10取消active属性

            #varoffvg  appvg

          3)192.168.2.12导入共享卷组

            #smitty vg

               import a Volume Group

 

             VOLUME GROUP name                   [appvg]

           *PHYSICAL VOLUME name              [hdisk3]

             Volume Group MAJOR NUMBER  [48]

       

          注:如果PvID 代码不同

     #chdev -l hdisk3 -a  pv=yes

 

 

四、安装Hacmp

 

          1)放入DVD光盘

          2)#smitty install

          3)选择以DVD方式安装

          4)选择安装所有组件(list cluster.hativoli除外)

    5)accept new license agreement   yes

 

五、配置Hacmp

 

          1)进入hacmp配置面板

              #smitty hacmp

          2)添加cluster                

           Extended Configuration

               Extended Topology Configuration

                   Configure an HACMP Cluster

                       Add/Change/Show an HACMP Cluster

 

          *Cluster Name       [Aixcluster]

 

        3)添加两个节点,与之前hosts配置的bootip相同

            Extended Configuration

                Extended Topology Configuration

                    Configure HACMP Nodes

 

           *Node Name                            [node1]

             Communication Path to Node   [dbserver1]

 

 

        4)添加两个网络(网络心跳,网络节点)

           Extended Configuration

              Extended Topology Configuration

                  Configure HACMP Networks

                      Add a Network to the HACMP Cluster

                          ether

 

          *Network Name                      [net_ether_01]

          *Network Type                       ether

          *NetMask(IPv4)                      [255.255.255.0]

            Enable IP Address Takeover via IP Aliases  [Yes]

 

         5)添加bootip/heartip至网络(注意:心跳IP添加至心跳网卡)

            Extended Configuration

                Extended Topology Configuration

                    Configure HACMP Communication Interfaces/Devices

                        Add Communication Interfaces/Devices

                            Add pre-defined Communication Interfaces and Devices

                                Communication Interfaces

                                    net _ether_01

 

           *IP Label/Address            [dbserver1]

           *Network Type                 ether

           *Network Name               net_ether_01

           *Node Name                    [node1]

          

          6)测试网卡是否通畅

             Extended Configuration

                 Discover HACMP-related Information from Configured Nodes

 

          7)查看并启动进程

             System Management(C-SPOC)

            

            #startsrc -s clcomdES

            #startsrc -s clstrmgrES

 

          8)添加serverip 至网络(与bootip同一网络)

             Extended Configuration

                Extended Resource Configuration

                   HACMP Extended Resources Configuration

                       Configure HACMP Service IP Labels/Addresses

                           Configurable on Multiple Nodes

                                net_ether_01(192.168.2.0/24)

 

               *IP Label/Address                   [ora1_ser]

               *Network Name                      [net_ether_01]

 

           9) 在双机任意目录下创建启停脚本,并给与权限

              #vi startapp.sh

              #vi stopapp.sh

              

              #chmod 775 /home/startapp.sh

              #chmod 775 /home/stopapp.sh

 

           10)添加启停脚本至应用服务

               Extended Configuration

                  Extended Resource Configuration

                      HACMP Extended Resources Configuration

                          Configure HACMP Application Servers

                              Add an Application Server

              *Server Name                 [appmanagerment]

              *Start Script                   [/home/startapp.sh ]

              *Stop Script                   [/home/stopapp.sh]

 

 

            11)配置资源组

                Extended Configuration

                   Extended Resource Configuration

                      HACMP Extended Resource Configuration

                          Add a Resource Group

                

               *Resource Group Name                 [sharedgroup]

               *participating Nodes (Default Node priority)    [node1 node2]

 

 

                修改资源组属性

                Chane/Show Resources and Attributes for a Resource Group

 

                    Service IP Labels/Addresses           [ora1_ser]

                    Application                                   [appmanagement]

 

                    Volume Groups                             [appvg]

 

六、开始同步

                Extended Configuration

                Extended Verification and Synchronization

        

              *Automatically correct errors found during verification?    [Yes]

 

七、启动HACMP

               System Management(C-SPOC)

               HACMP Services

               Start Cluster  Services

 

八、切换资源组

               System Management(C-SPOC)

               HACMP Services

               Stop Cluster Services

 

             *Select an Action on Resource Groups                      Move Resource Groups

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2013-5-6 23:07:32 | 只看该作者

自己先顶一个~纯手工录入 ~

回复 支持 反对

使用道具 举报

板凳
发表于 2013-5-6 23:37:04 | 只看该作者
QUOTE:
以下是引用Alexander在2013-5-6 23:07:32的发言:

自己先顶一个~纯手工录入 ~

  全手工,确实辛苦.

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-15 19:21 , Processed in 0.113160 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表