免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: vitovito

[故障求助] 双机550+ha+rac 需求帮助 [复制链接]

论坛徽章:
0
发表于 2005-11-17 14:10 |显示全部楼层
5.3.2.4        增加串口的设备
           Extended Topology Configuration
Move cursor to desired item and press Enter.
  Configure an HACMP Cluster
  Configure HACMP Nodes
  Configure HACMP Sites
  Configure HACMP Networks
  Configure HACMP Communication Interfaces/Devices
  Configure HACMP Persistent Node IP Label/Addresses
  Configure HACMP Global Networks
  Configure HACMP Network Modules
  Configure Topology Services and Group Services
  Show HACMP Topology

        Configure HACMP Communication Interfaces/Devices
Move cursor to desired item and press Enter.
  Add Communication Interfaces/Devices
  Change/Show Communication Interfaces/Devices
  Remove Communication Interfaces/Devices
  Update HACMP Communication Interface with Operating System Settings

Add Discovered Communication Interface and Devices
Add Pre-defined Communication Interfaces and Devices

Communication Interfaces
Communication Devices

          Select a Device Network
Move cursor to desired item and press Enter.
net_rs232_01

               Add a Communication Device
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                    [Entry Fields]
* Device Name                                        [dtwt_tty1]
* Network Type                                        rs232
* Network Name                                        net_rs232_01
* Device Path                                        [/dev/tty0]
* Node Name                                        [dtwtdb01]

Add a Communication Device
Type or select values in entry fields.
Press Enter AFTER making all desired changes.                                                      
[Entry Fields]
* Device Name                                        [dtwt_tty2]
* Network Type                                        rs232
* Network Name                                        net_rs232_01
* Device Path                                        [/dev/tty0]
* Node Name                                        [dtwtdb02]

5.3.2.5        增加service label
             Extended Configuration
Move cursor to desired item and press Enter.
  Discover HACMP-related Information from Configured Nodes
  Extended Topology Configuration
  Extended Resource Configuration
  Extended Event Configuration
  Extended Performance Tuning Parameters Configuration
  Security and Users Configuration
  Snapshot Configuration
  Export Definition File for Online Planning Worksheets

  Extended Verification and Synchronization
  HACMP Cluster Test Tool

            Extended Resource Configuration
Move cursor to desired item and press Enter.
  HACMP Extended Resources Configuration
  Configure Resource Group Run-Time Policies
  HACMP Extended Resource Group Configuration

          HACMP Extended Resources Configuration
Move cursor to desired item and press Enter.
  Configure HACMP Applications
  Configure HACMP Service IP Labels/Addresses
  Configure HACMP Tape Resources
  Configure HACMP Communication Adapters and Links
  Configure Custom Disk Methods
  Customize Resource Recovery
  Configure Resource Distribution Preferences

          Configure HACMP Service IP Labels/Addresses
Move cursor to desired item and press Enter.
  Add a Service IP Label/Address
  Change/Show a Service IP Label/Address
  Remove Service IP Label(s)/Address(es)

           Select a Service IP Label/Address type
Move cursor to desired item and press Enter.
Configurable on Multiple Nodes
Bound to a Single Node

           Network Name
Move cursor to desired item and press Enter.                             ?
net_ether_01 (2.2.2.0/24)                                              ?
net_ether_02 (10.66.8.0/24 172.1.1.0/24)

          Add a Service IP Label/Address configurable on Multiple Nodes (extended)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                      [Entry Fields]
* IP Label/Address                                   db_srv1                                            
* Network Name                                        net_ether_02
  Alternate HW Address to accompany IP Label/Address []

     Add a Service IP Label/Address configurable on Multiple Nodes (extended)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                        [Entry Fields]
* IP Label/Address                                   db_srv2                                            
* Network Name                                        net_ether_02
  Alternate HW Address to accompany IP Label/Address []

论坛徽章:
0
发表于 2005-11-17 14:11 |显示全部楼层
5.3.3        配置资源组信息
5.3.3.1        增加app server
     HACMP Extended Resources Configuration
Move cursor to desired item and press Enter.
  Configure HACMP Applications
  Configure HACMP Service IP Labels/Addresses
  Configure HACMP Tape Resources
  Configure HACMP Communication Adapters and Links
  Configure Custom Disk Methods
  Customize Resource Recovery
  Configure Resource Distribution Preferences

      Configure HACMP Application Servers
Move cursor to desired item and press Enter.
  Add an Application Server
  Change/Show an Application Server
  Remove an Application Server

       Add Application Server
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                [Entry Fields]
* Server Name                                    [dtwtapp]
* Start Script                                      [/ha/start]
* Stop Script                                      [/ha/stop]
  Application Monitor Name(s)
5.3.3.2        增加资源组
        Extended Resource Configuration
Move cursor to desired item and press Enter.
  HACMP Extended Resources Configuration
  Configure Resource Group Run-Time Policies
  HACMP Extended Resource Group Configuration

       HACMP Extended Resource Group Configuration
Move cursor to desired item and press Enter.
  Add a Resource Group
  Change/Show a Resource Group
  Change/Show Resources and Attributes for a Resource Group
  Remove a Resource Group
  Show All Resources by Node or Resource Group

     Add a Resource Group (extended)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                    [Entry Fields]
* Resource Group Name                                [dtwtres]
* Participating Nodes (Default Node Priority)        [dtwtdb01 dtwtdb02]                                          
  Startup Policy                            Online On All Available Nodes              
  Fallover Policy                           Bring Offline (On Error Node Only)         
  Fallback Policy                           Never Fallback

      Add a Resource Group (extended)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                    [Entry Fields]
* Resource Group Name                                [dtwtres1]
* Participating Nodes (Default Node Priority)        [dtwtdb01 dtwtdb02]                                          
  Startup Policy                               Online On Home Node Only                  
  Fallover Policy                         Fallover To Next Priority Node In The Lis>
  Fallback Policy                         Fallback To Higher Priority Node In The L>

      Add a Resource Group (extended)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                    [Entry Fields]
* Resource Group Name                                [dtwtres2]
* Participating Nodes (Default Node Priority)        [dtwtdb02 dtwtdb01]                                          
  Startup Policy                               Online On Home Node Only                  
  Fallover Policy                         Fallover To Next Priority Node In The Lis>
  Fallback Policy                         Fallback To Higher Priority Node In The L>

5.3.3.3        修改资源组属性
         HACMP Extended Resource Group Configuration
Move cursor to desired item and press Enter.
  Add a Resource Group
  Change/Show a Resource Group
  Change/Show Resources and Attributes for a Resource Group
  Remove a Resource Group
  Show All Resources by Node or Resource Group

逐个修改三个资源组信息:
dtwtres   
dtwtres1
dtwtres2

     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                                 dtwtres
  Participating Nodes (Default Node Priority)         dtwtdb01 dtwtdb02
  Startup Policy                      Online On All Available Nodes
  Fallover Policy                    Bring Offline (On Error Node Only)
  Fallback Policy                              Never Fallback

  Concurrent Volume Groups                           [datavg]                                    
  Use forced varyon of volume groups, if necessary    false                                      
  Automatically Import Volume Groups                  false                                      
  Application Servers                                [dtwtapp]
  Tape Resources                                     []                                          
  Raw Disk PVIDs                                     []                                          
  Disk Fencing Activated                              false                                      
  Fast Connect Services                              []                                          
  Communication Links                                []                                          
  Workload Manager Class                             []                                          
  Miscellaneous Data                                 []

       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                                 dtwtres1
  Participating Nodes (Default Node Priority)         dtwtdb01 dtwtdb02
  Startup Policy                           Online On Home Node Only
  Fallover Policy            Fallover To Next Priority Node In The Lis>
  Fallback Policy            Fallback To Higher Priority Node In The L>
  Fallback Timer Policy (empty is immediate)         []                                          
  Service IP Labels/Addresses                        [db1_svr]                                   
  Application Servers                                []                                          
  Volume Groups                                      []

       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                                 dtwtres2
  Participating Nodes (Default Node Priority)         dtwtdb02 dtwtdb01
  Startup Policy            Online On Home Node Only
  Fallover Policy           Fallover To Next Priority Node In The Lis>
  Fallback Policy           Fallback To Higher Priority Node In The L>
  Fallback Timer Policy (empty is immediate)         []                                          
  Service IP Labels/Addresses                        [db2_svr]                                   
  Application Servers                                []                                          
  Volume Groups                                      []

论坛徽章:
0
发表于 2005-11-17 14:11 |显示全部楼层
5.3.4        同步HACMP配置
           Extended Configuration
Move cursor to desired item and press Enter.
  Discover HACMP-related Information from Configured Nodes
  Extended Topology Configuration
  Extended Resource Configuration
  Extended Event Configuration
  Extended Performance Tuning Parameters Configuration
  Security and Users Configuration
  Snapshot Configuration
  Export Definition File for Online Planning Worksheets

  Extended Verification and Synchronization
  HACMP Cluster Test Tool

           HACMP Verification and Synchronization
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                   [Entry Fields]
* Verify, Synchronize or Both                     [Both]                                      
* Automatically correct errors found during          [No]                                       
  verification?
* Force synchronization if verification fails?       [No]                                       
* Verify changes only?                               [No]                                       
* Logging                                            [Standard]

5.4        启动HACMP
smitty clstart
             Start Cluster Services
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                        [Entry Fields]
* Start now, on system restart or both                now                                          Start Cluster Services on these nodes              [dtwtdb01]                                 
  BROADCAST message at startup?                       true                                       
  Startup Cluster Information Daemon?                 false                                      
  Reacquire resources after forced down ?             false

以同样方式在dtwtdb02节点运行
5.5        创建并发VG,并加入资源组dtwtdb_res
5.5.1        创建VG
smitty cl_convg
                                      Concurrent Volume Groups
Move cursor to desired item and press Enter.
  List All Concurrent Volume Groups
  Create a Concurrent Volume Group
  Create a Concurrent Volume Group with Data Path Devices
  Set Characteristics of a Concurrent Volume Group
  Import a Concurrent Volume Group
  Mirror a Concurrent Volume Group
  Unmirror a Concurrent 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.
> dtwtdb01
> dtwtdb02


步骤        节点        步骤        备注
1.                dtwtdb01        创建vg:datavg,采用smitty cl_convg命令        
2.                dtwtdb01        创建裸设备信息,并修改字符流设备的权限
用smitty cl_conlv进行创建裸设备       

创建结束后,VG的信息显示如下:
# lsvg -L datavg
VOLUME GROUP:       datavg                   VG IDENTIFIER:  00cfafef00004c000000010737d159aa
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      399 (102144 megabytes)
MAX LVs:            256                      FREE PPs:       331 (84736 megabytes)
LVs:                22                       USED PPs:       68 (17408 megabytes)
OPEN LVs:           0                        QUORUM:         2
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        no
Concurrent:         Enhanced-Capable         Auto-Concurrent: Disabled
VG Mode:            Concurrent
Node ID:        1                        Active Nodes:   2
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

论坛徽章:
0
发表于 2005-11-17 14:12 |显示全部楼层
6        附录
6.1        相关文件
6.1.1        /etc/hosts
以dtwtdb01的配置为例
127.0.0.1                loopback localhost        dtwtdb01# loopback (lo0) name/address
10.66.8.52        db1_boot        dtwtdb01
10.66.8.50        db1_svr
172.1.1.1        db1_stdby
2.2.2.1                db1_prv

10.66.8.51        db2_svr
10.66.8.53        db2_boot        dtwtdb02
172.1.1.2        db2_stdby
2.2.2.2                db2_prv

10.48.178.201        db1_console1
10.48.178.203        db2_console1

6.1.2        /.rhosts
该文件的权限为600
db1_boot
db2_boot
db1_svr
db2_svr
db1_stdby
db2_stdby
dtwtdb01
dtwtdb02
db1_prv
db2_prv

6.1.3        /usr/es/sbin/cluster/etc/rhosts
该文件的权限为600
10.66.8.50
10.66.8.51
10.66.8.52
10.66.8.53
172.1.1.1
172.1.1.2
2.2.2.1
2.2.2.2

6.1.4        /usr/sbin/cluster/netmon.cf
10.66.8.50
10.66.8.51
10.66.8.52
10.66.8.53
172.1.1.1
172.1.1.2
2.2.2.1
2.2.2.2

6.1.5        创建lv的pp数目列表
dbcntrl1        1
dbcntrl2         1
dbcntrl3         1
dbsystem         8
dbusers                8
dbdrsys                4
dbtools                4
dbtemp                8
dbundotbs1        4
dbundotbs2        4
dblog11                1
dblog12                1
dblog21                1
dblog22                1
dbindx                4
dbcwmlite        1
dbexample        4
dboemrepo        4
dbspfile         1
dbsrvmconf        2
dbxdb                4
dbodm                1

论坛徽章:
0
发表于 2005-11-17 14:14 |显示全部楼层
6.2        问题集锦
6.2.1        AIX 5.3不支持hacmp 4.5版本
配置完HA之后,同步HA时报错:
ERROR: Could not get netmask from interface db1_boot on node dtwtdb01.
ERROR: Could not get netmask from interface db1_sdby on node dtwtdb01.
ERROR: Could not get netmask from interface db2_boot on node dtwtdb02.
ERROR: Could not get netmask from interface db2_sdby on node dtwtdb02.

尝试了无数次之后,还是报错,经过查证,是版本不匹配的原因,详见下表:
        AIX 4.3.3        AIX 5.1 (32-bit)        AIX 5.1 (64-bit)        AIX 5.2        AIX 5.3
HACMP 4.4        YES        YES
NO        NO        NO
HACMP 4.4.1        YES        YES
NO        NO        NO
HACMP/ES 4.4.1         YES        YES
YES
NO        NO
HACMP 4.5        NO        YES        NO        YES
NO
HACMP/ES 4.5        NO        YES        YES
YES
NO
HACMP 5.1        NO        YES
YES
YES
YES

HACMP 5.2        NO        YES
YES
YES
YES

HACMP 5.3        NO        NO
NO
YES
YES

论坛徽章:
0
发表于 2005-11-17 14:15 |显示全部楼层
6.2.2        创建数据库时没有权限访问裸设备
解决方法:
在安装oracle rac时oracle无法正常访问并行裸设备。
export PGSD_SUBSYS=grpsvcs 在oracle用户下的.profile里加入即可解决oracle无法并行访问raw lv
或者不安装VSD用的pssp rsct.basic.sp &rsct.compat.basic.sp和所有的VSD安装包
6.2.3        HACMP同步失败
报错信息如下:
ERROR: Verification of Cluster Topology for RSCT failed.
See "/var/ha/log/topsvcs.default" for detailed information.
WARNING: File 'netmon.cf' is missing or empty on node dtwtdb01. This file is needed for a cluster with the single-adapter network net_rs232_01. Please create 'netmon.cf' file on node dtwtdb01 as described in 'HACMP Planning and Installation Guide'.
WARNING: File 'netmon.cf' is missing or empty on node dtwtdb02. This file is needed for a cluster with the single-adapter network net_rs232_01. Please create 'netmon.cf' file on node dtwtdb02 as described in 'HACMP Planning and Installation Guide'.

解决方法:
到两个节点的/usr/sbin/cluster目录下检查是否有netmon.cf文件,如果没有,请增加该文件,并增加内容;如果有,请检查内容,内容如下:
192.168.129.1
192.168.129.2
172.168.129.1
172.168.129.2
10.66.8.50
10.66.8.51

6.2.4        不能两个节点同时mount问题需要考虑的问题
        问题现象
在启动数据库实例的时候,在第一个节点启动Oracle没有问题,在启动第二个节点时,Oracle数据库不能到open状态;如果这时将第一个节点shutdown,第二个节点会自动open;也就是说:哪个节点先启动,就能到open状态;后启动的实例需要等第一个节点释放资源后才能启动成功。

论坛徽章:
0
发表于 2005-11-17 14:15 |显示全部楼层
        问题分析
从日志文件分析,List of nodes: 0,和List of nodes: 1,可以看出,数据库启动的时候并不能认出两个节点,说明两台主机的通讯存在问题,因此,问题应该出在HACMP的配置中。

        问题解决
通过对HA的配置分析,发现原先配置的方式有问题,做了下面的调整:
1.        采用HACMP自己认网络配置后加以修改的方式
2.        不用IP别名的方式,修改在4.3.2.2中有说明
3.        配置私有网络,作为RAC的通讯网络,具体在4.2、4.3.2.2节中有说明

论坛徽章:
0
发表于 2005-11-17 14:17 |显示全部楼层
好麻烦,由于论坛有限制,只能一点一点粘贴,如果有需要,我可以发word文档,请留下联系方式

论坛徽章:
0
发表于 2005-11-17 17:46 |显示全部楼层
给我发一份吧,hbyl@sohu.com, 谢谢

论坛徽章:
0
发表于 2005-11-18 10:25 |显示全部楼层
给我发一份吧,jianbozhou@tom.com, 谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP