How To Setup ASM (11.2) On An Active/Passive Cluster (Non-RAC). [ID 1296124.1]

本文档提供了一个在非 Oracle RAC 的主动/被动集群上安装和配置 Oracle 11.2 ASM 的详细步骤指南。通过遵循这些步骤,可以在不需要 RAC 架构的情况下实现 ASM 的高可用性。
How To Setup ASM (11.2) On An Active/Passive Cluster (Non-RAC). [ID 1296124.1]

 修改时间 15-FEB-2011     类型 HOWTO     状态 PUBLISHED 

In this Document
  Goal
  Solution


Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 to 11.2.0.2 - Release: 11.2 to 11.2
Information in this document applies to any platform.

Goal

In order to provide the maximum ASM high availability on a cluster, it is always better and recommended to setup the powerful Oracle RAC architecture (this is the best option).

But if you decided to setup ASM on an active/passive cluster you can follow the next steps to setup ASM:

Solution

A) Setup the Active/Passive Cluster using third party clusterware (which provides the failover) such as Veritas, SFRAC, IBMPowerHA, or HP Serviceguard.

Note: Please check with your cluster vendor for details about the clusterware configuration.

B) Then in order to setup an ASM 11gR2 (Grid Infrastructure) Active/Passive Cluster (non-RAC), please follow the next steps:

On Node #1

1) You need to install the 11.2 GI Infrastructure Standalone “Software Only” first.

2) Then configure the CSS & OHAS services as root user:

# $/crs/install/roothas.pl -deconfig -force

# $/crs/install/roothas.pl


3) Perform. the next steps as oracle user:

$> /bin/crsctl modify resource "ora.cssd" -attr "AUTO_START=1"

$>/bin/crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"


4) Check the CSS & OHAS state as oracle OS user:

$> crsctl check has

$> crsctl check css


5) Create the default listener (LISTENER) thru the NETCA using port 1521.

6) Create the init+ASM.ora file on the $/dbs directory with the next parameters:

asm_diskgroups=

asm_diskstring= 'ORCL:*' -- or '/dev/oracleasm/disks/*'

instance_type='asm'

large_pool_size=12M


7) Add the ASM instance as oracle user or the Grid Infrastructure installation owner and execute:

$> $/bin/srvctl add asm


8) Enable Auto Start as follow:

$> $/bin/crsctl modify resource "ora.asm" -attr "AUTO_START=1"


9) Make sure the disks are discovered by kfod:

Example:

kfod asm_diskstring='ORCL:*' disks=all

kfod asm_diskstring='/dev/oracleasm/disks/*' disks=all


10) If so, then startup the ASM instance as follow:

$> export ORACLE_SID=+ASM

$> sqlplus “/as sysasm”

SQL> startup pfile=init+ASM.ora --#init file from point #6

SQL> show parameter asm


11) Create a new diskgroup:

SQL> create diskgroup DATA external redundancy disk '';


12) Validate the diskgroup was mounted:


SQL> select name, state from v$asm_diskgroup;


13) Then shutdown the ASM instance to setup node #2.

On Node #2

14) You need to install the 11.2 GI Infrastructure Standalone “Software Only” first.

15) Then configure the CSS & OHAS services as root user:

# $/crs/install/roothas.pl -deconfig -force

# $/crs/install/roothas.pl


16) Perform. the next steps as oracle user:

$> /bin/crsctl modify resource "ora.cssd" -attr "AUTO_START=1"

$>/bin/crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"


17) Check the CSS & OHAS state as oracle OS user:

$> crsctl check has

$> crsctl check css


18) Create the default listener (LISTENER) thru the NETCA using port 1521.

19) Create the init+ASM.ora file on the $/dbs directory with the next parameters:

asm_diskgroups=

asm_diskstring= 'ORCL:*' -- or '/dev/oracleasm/disks/*'

instance_type='asm'

large_pool_size=12M


20) Add the ASM instance as oracle user or the Grid Infrastructure installation owner and execute:

$> $/bin/srvctl add asm


21) Enable Auto Start as follow:


$> $/bin/crsctl modify resource "ora.asm" -attr "AUTO_START=1"


22) Make sure the disks are discovered by kfod:

Example:

kfod asm_diskstring='ORCL:*' disks=all

kfod asm_diskstring='/dev/oracleasm/disks/*' disks=all


23) If so, then startup the ASM instance as follow:

$> export ORACLE_SID=+ASM

$> sqlplus “/as sysasm”

SQL> startup pfile=init+ASM.ora --#init file from point #19

SQL> show parameter asm

 

24) Validate the diskgroup was mounted:

SQL> select name, state from v$asm_diskgroup;


Note: You do not need to create new diskgroup(s), since they were already created from node #1 on a shared storage between the 2 nodes.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/611609/viewspace-692170/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/611609/viewspace-692170/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值