技术开发 频道

Oracle RAC安装部署之规划(二)

  2.2.8配置HACMP

  1.创建集群

  # smitty hacmp

  Initialization and Standard Configuration

  Add Nodes to an HACMP Cluster

  Configure Nodes to an HACMP Cluster (standard)

  Type or select values in entry fields.

  Press Enter AFTER making all desired changes. 

  [Entry Fields]

  * Cluster Name [dbclt]

  New Nodes (via selected communication paths) [db01 db02] +

  Currently Configured Node(s)

  2.创建资源组racdbrg

  # smitty hacmp

  Initialization and Standard Configuration

  Configure HACMP 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 [racdbrg]

  * Participating Nodes (Default Node Priority) [db01 db02] +

  Startup Policy Online On All Available Nodes +

  Fallover Policy Bring Offline (On Error Node Only) +

  Fallback Policy Never Fallback +

  3.为资源组racdbrg增加共享磁盘

  # smitty hacmp

  Initialization and Standard Configuration

  Configure HACMP Resource Groups

  Change/Show Resources for a Resource Group (standard)

  Select a Resource Group

  Move cursor to desired item and press Enter.

  datavg

  Change/Show All Resources and Attributes for a Resource Group

  Type or select values in entry fields.

  Press Enter AFTER making all desired changes.

  [Entry Fields]

  Resource Group Name racdbrg

  Participating Nodes (Default Node Priority) db01 db02

  Startup Policy Online On All Available Nodes

  Fallover Policy Bring Offline (On Error Node O>

  Fallback Policy Never Fallback

  Concurrent Volume Groups [datavg] +

  Use forced varyon of volume groups, if necessary false +

  Application Servers [] +

  4.配置串口网络作为HB

  # smitty hacmp

  Extended Configuration

  Extended Topology Configuration

  Configure HACMP Communication Interfaces/Devices

  Add Communication Interfaces/Devices

  Select a category

  Move cursor to desired item and press Enter.

  > Add Discovered Communication Interface and Devices

  Add Pre-defined Communication Interfaces and Devices

  Select a category

  Move cursor to desired item and press Enter.

  Discovery last performed: (Dec 08 20:10)

  Communication Interfaces

  > Communication Devices

  Select Point-to-Point Pair of Discovered Communication Devices to Add

  Move cursor to desired item and press F7. Use arrow keys to scroll.

  ONE OR MORE items can be selected.

  Press Enter AFTER making all selections.

  Node Device Device Path Pvid

  db01 hdisk2 /dev/hdisk2 0002ee503cc

  db02 hdisk2 /dev/hdisk2 0002ee503cc

  > db01 tty0 /dev/tty0

  > db02 tty0 /dev/tty0

  4.配置HB IP网络

  # smitty hacmp

  Extended Configuration

  Extended Topology Configuration

  Configure HACMP Networks

  Change/Show a Network in the HACMP Cluster

  Select a Network to Change/Show

  Move cursor to desired item and press Enter.

  net_ether_01 (192.168.0.0/24)

  net_ether_02 (10.10.2.0/24)

  Change/Show an IP-Based Network in the HACMP ClusterType or select values in entry fields.

  Press Enter AFTER making all desired changes.

  [Entry Fields]

  * Network Name net_ether_02

  New Network Name []

  * Network Type [ether]

  * Netmask [255.255.255.0]

  * Enable IP Address Takeover via IP Aliases [Yes]

  IP Address Offset for Heartbeating over IP Aliases []

  * Network attribute private

  5.同步集群配置文件

  # smitty hacmp

  Extended Configuration

  Extended Verification and Synchronization

  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 [Yes]

  verification?

  * Force synchronization if verification fails? [No]

  * Verify changes only? [No]

  * Logging [Standard]

  6.测试HACMP集群

  第一个节点

  # hostname

  db01

  # smitty clstart --启动hacmp

  # lssrc -g cluster --查看hacmp的状态

  第二个节点

  # hostname

  db02

  # smitty clstart

  # lssrc -g cluster

  # lsvg -o

  datavg

  rootvg

  # lsvg -l datavg

  datavg:

  LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT

  LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT

  rac_crs1024m jfs 2 2 1 closed/syncd N/A

  rac_vote1024m jfs 2 2 1 closed/syncd N/A

  rac_system_1024m jfs 4 4 1 closed/syncd N/A

  rac_pwdfile_100m jfs 1 1 1 closed/syncd N/A

  rac_sysaux_800m jfs 4 4 1 closed/syncd N/A

  rac_undo1_4096m jfs 16 16 1 closed/syncd N/A

  rac_undo2_4096m jfs 16 16 1 closed/syncd N/A

  rac_temp_4096m jfs 16 16 1 closed/syncd N/A

  rac_users_800m jfs 4 4 1 closed/syncd N/A

  rac_redo1_1_120m jfs 2 2 1 closed/syncd N/A

  rac_redo1_2_120m jfs 2 2 1 closed/syncd N/A

  rac_redo1_3_120m jfs 2 2 1 closed/syncd N/A

  rac_redo2_1_120m jfs 2 2 1 closed/syncd N/A

  rac_redo2_2_120m jfs 2 2 1 closed/syncd N/A

  rac_redo2_3_120m jfs 2 2 1 closed/syncd N/A

  rac_ctl1_110m jfs 1 1 1 closed/syncd N/A

  rac_ctl2_110m jfs 1 1 1 closed/syncd N/A

  rac_ctl3_110m jfs 1 1 1 closed/syncd N/A

  rac_spfile_110m jfs 1 1 1 closed/syncd N/A

  第一个节点:

  # hostname

  db01

  # smitty clstop

  第二个节点:

  # hostname

  db02

  # smitty clstop

  # lsvg

  rootvg

  datavg

  # lsvg -o

  rootvg

0
相关文章