How to Start and Shutdown CRS, OHAS, ASM, RDBMS & ACFS Services on Oracle RAC Cluster 11.2 & 12.1

The post provides in detail the steps to shutdown/startup The CRS, OHAS, ASM & RDBMS Services on a RAC Cluster 11.2 & 12.1 configuration:

1. Connect to node #1, then please check if the CRS/OHAS and services are enabled to autostart as follow (repeat this step on each node):

# $GRID_ORACLE_HOME/bin/crsctl config crs

2. If not, then you can enable it as follow (repeat this step on each node):

# $GRID_ORACLE_HOME/bin/crsctl enable crs

3. Shutdown the services on each node as follow:

# $GRID_ORACLE_HOME/bin/crsctl stop crs

4. Verify the services were/are down (repeat this step on each node):

# $GRID_ORACLE_HOME/bin/crsctl status resource -t

5. Then start the services on node #1 as follow (only on first node):

# $GRID_ORACLE_HOME/bin/crsctl start crs

6. Wait 1 minute, then validate the services started & diskgroups were mounted (only on first node):

# $GRID_ORACLE_HOME/bin/crsctl status resource -t

7. Then start the services on node #2 as follow:

# $GRID_ORACLE_HOME/bin/crsctl start crs

8. Wait 1 minute, then validate the services started & diskgroups were mounted on node #2:

# $GRID_ORACLE_HOME/bin/crsctl status resource -t

9. If there are more nodes in the RAC, then repeat the same steps (7-8).

10. Then check the status of the clusterware globally as follows:

# crsctl check cluster -all

Sample output:

[root@asmgrid1 ~]# crsctl check cluster -all
**************************************************************
asmgrid1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************

asmgrid2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************

Note 1: Alternatively, you can stop and start the cluster globally as follows:

Stop:

[root@asmgrid1 ~]# crsctl stop cluster -all [-f]

Start:

[root@asmgrid1 ~]# crsctl start cluster -all

Additional Steps Required When ACFS filesystem are involved

If ACFS filesystems are associated with this ASM Cluster configuration, then the ACFS filesystems need to be dismounted first, this is because if you try to dismount an ACFS filesystem (or any other regular Unix/Linux filesystem) that is being used/accessed at that time (same as a regular unix/Linux filesystem), then you will get a “Resource Busy” error, therefore “crsctl stop crs” statement will fail as expected.

You will need to perform the following additional steps instead:

1. Dismount all the ACFS filesystems running in the cluster as follows (as root user):

# srvctl stop filesystem -d volume_device_name [-n node_name] [-f]

Where: -d [volume_device_name]: The Oracle ACFS volume device name. -n [node_name]: The name of a node. If you do not specify this option, then the utility stops the volume resource on all active nodes in the cluster. **-f **: This option stops the file system and also stops any databases or other resources that depend on this file system.

For example:

[root@asmgrid1 ~]# df -k | grep asm
/dev/asm/volnew1-347  14680064    159700  14520364   2% /u01/app/grid/acfsmounts/acfsdgnew_volnew1
/dev/asm/vol_oh1-115  35651584   4590104  31061480  13% /u04acfs
# srvctl stop filesystem -d /dev/asm/volnew1-347 -f
# srvctl stop filesystem -d /dev/asm/vol_oh1-115 -f

2. Make sure the ACFS filesystem(s) was/were dismounted on all the nodes:

# df -k | grep asm

3. Then perform the steps described above to Shutdown/Startup The CRS, OHAS, ASM and RDBMS Services on RAC 11.2 Configuration.

# srvctl start filesystem -d volume_device_name [-n node_name]