The document discusses moving an existing Oracle cluster to a Flex ASM architecture. It provides steps to convert the existing cluster mode to Flex Cluster mode using the ASM Configuration Assistant (ASMCA). This involves stopping and restarting ASM and other cluster resources on each node, and configuring hub and leaf nodes with direct or indirect access to shared storage respectively. The summaries show the conversion was successful, with ASM instances restarting automatically on different nodes and the database instance remaining available during a test where ASM was killed on one node. It also shows how to change a node's role between hub and leaf.
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Move Existing Cluster to Oracle Flex ASM
1. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
In Oracle Flex ASM architecture, Oracle ASM instances can run only a small
number of cluster nodes. These ASM instances are connected by all the
database instances on the cluster to provide storage access for all these
database instances. When an ASM instance fails, the database instances
reconnect to other ASM instances for the failed ASM instance. This features
supports the platform for variety of application which includes RAC with large
number of nodes. There is a new type of network, ASM network with Flex ASM
which is used for communication between ASM and its clients. ASM network is
accessible from all nodes. In oracle Flex Cluster, the nodes are arranged in two
ways i.e. Hub Node and Leaf Node.
Hub Nodes: tightly connected with each other like standard configuration and
have direct access to the shared storage. The maximum 64 hub nodes will be
configured in a cluster.
Leaf nodes: Leaf nodes can be added as many as more and can host different
applications other than hub nodes. This type of nodes doesn't require direct
access to shared storage instead they can request data from Hub nodes.
The Hub nodes can be run or configured as member of cluster without any leaf
nodes but leaf nodes must have Hub node to become member of cluster.
Check current ASM Status
[oracle@rac1 bin]$ ./crsctl get cluster mode status
Cluster is running in "standard" mode
[oracle@rac1 bin]$ ./srvctl status asm -detail
ASM is running on rac1,rac2
ASM is enabled.
[oracle@rac1 bin]$ ./srvctl config asm
ASM home: /u01/app/12.1.0/grid
Password file: +DATA/orapwASM
ASM listener: LISTENER
[oracle@rac1 bin]$ asmcmd showclustermode
ASM cluster : Flex mode disabled
1
Tested By - Monowar Mukul, OCM 11g DBA
2. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
oracle@rac1 bin]$ asmca
Select ASM Instance tab
2
Tested By - Monowar Mukul, OCM 11g DBA
3. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
click Convert to Oracle Flex ASM
click OK
3
Tested By - Monowar Mukul, OCM 11g DBA
4. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
4
Tested By - Monowar Mukul, OCM 11g DBA
5. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
Run the script on local node as a root user :
/u01/app/oracle/cfgtoollogs/asmca/scripts/converttoFlexASM.sh
Output:
[root@rac1 ~]# /u01/app/oracle/cfgtoollogs/asmca/scripts/converttoFlexASM.sh
PRCR-1086 : resource ora.proxy_advm is already registered
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
:
:
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'rac1'
CRS-2676: Start of 'ora.storage' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
Cluster bounced in node rac1
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac2'
CRS-2673: Attempting to stop 'ora.cvu' on 'rac2'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN3.lsnr' on 'rac2'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN2.lsnr' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.rac2.vip' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER_SCAN3.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.scan3.vip' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER_SCAN2.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.scan2.vip' on 'rac2'
CRS-2677: Stop of 'ora.cvu' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'rac1'
CRS-2676: Start of 'ora.cvu' on 'rac1' succeeded
CRS-2677: Stop of 'ora.rac2.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.rac2.vip' on 'rac1'
CRS-2677: Stop of 'ora.scan2.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.scan2.vip' on 'rac1'
CRS-2676: Start of 'ora.rac2.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.scan3.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.scan3.vip' on 'rac1'
CRS-2676: Start of 'ora.scan2.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN2.lsnr' on 'rac1'
CRS-2676: Start of 'ora.scan3.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN3.lsnr' on 'rac1'
CRS-2676: Start of 'ora.LISTENER_SCAN2.lsnr' on 'rac1' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN3.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac2'
CRS-2677: Stop of 'ora.DATA.dg' on 'rac2' succeeded
5
Tested By - Monowar Mukul, OCM 11g DBA
6. 12c ASM: Moving the Existing Cluster Mode to Flex Cluster
CRS-2677: Stop of 'ora.FRA.dg' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ASMNET1LSNR_ASM.lsnr' on 'rac2'
CRS-2677: Stop of 'ora.ASMNET1LSNR_ASM.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac2'
CRS-2677: Stop of 'ora.ons' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac2'
:
:
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'rac2'
CRS-2676: Start of 'ora.storage' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded
Cluster bounced in node rac2
Check the mode again
--------------------------Check the clustermode again:
-------------------------------------[oracle@rac1 bin]$ asmcmd showclustermode
ASM cluster : Flex mode enabled
Check Configuration
--------------------------[oracle@rac1 bin]$ ./srvctl config asm
ASM home: /u01/app/12.1.0/grid
Password file: +DATA/orapwASM
ASM listener: LISTENER
ASM instance count: ALL
Cluster ASM listener: ASMNET1LSNR_ASM
On First Node:
[oracle@rac1 bin]$ ps -ef|grep pmon
oracle 15633
1 0 07:41 ?
00:00:00 asm_pmon_+ASM1
oracle 15985
1 0 07:42 ?
00:00:00 apx_pmon_+APX1
oracle 21959 7848 0 08:00 pts/1 00:00:00 grep pmon
Check the instance status:
[oracle@rac1 bin]$ ./srvctl status database -d orcl
Instance orcl_1 is running on node rac2
I see instance is running on second node based on server policy.
Check on Second Node:
[oracle@rac2 ~]$ ps -ef | grep pmon
oracle 14453
1 0 07:43 ?
00:00:00 asm_pmon_+ASM2
6
Tested By - Monowar Mukul, OCM 11g DBA