| 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.2Information 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
# $/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"
$>/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
$> 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
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
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
$> 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
# $/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"
$>/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
$> 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
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
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
$> 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/
本文档提供了一个在非 Oracle RAC 的主动/被动集群上安装和配置 Oracle 11.2 ASM 的详细步骤指南。通过遵循这些步骤,可以在不需要 RAC 架构的情况下实现 ASM 的高可用性。

被折叠的 条评论
为什么被折叠?



