The CRSCTL command utility is an essential tool to master in the DBA toolbox for Clusterware maintenance and administration. It provides Clusterware monitoring functions as well as the ability to add and remove key components of the Oracle Clusterware such as adding or removing vote disks and management of Clusterware processes and resources.
With the introduction of 11GR2 (11.2 Oracle Version) ASM becomes part of the cluster and is configured and run from the Grid Infrastructure Home instead of from the RDBMS home. Because of this move officially making ASM part of the clusterware stack it is essential that the DBA become familiar with crsctl commands even if ASM is being run in a standalone non RAC configuration. This document is intended to introduce the commands and syntax needed to manage a standalone ASM configuration.
crsctl Command Examples
The CRS control (CRSCTL) utility was introduced in Oracle 10.1 and has been significantly enhanced in the later versions. It is located in $ORA_CRS_HOME/bin and must be executed by the root user. You can list the options available in CRSCTL using.
1. Use the crsctl check css command to check the status of Cluster Synchronization Services. This command is most often used when Oracle Automatic Storage Management (Oracle ASM) is installed on the local server.
$ crsctl check css
The crsctl check css command returns output similar to the following:
CRS-4529: Cluster Synchronization Services is online
2. Use the crsctl get css command to obtain the value of a specific Cluster Synchronization Services parameter.
$ crsctl get css parameter
Cluster Synchronization Services parameters and their default values include:
clusterguid diagwait disktimeout (200 (seconds)) misscount (30 (seconds)) reboottime (3 (seconds)) priority (4 (UNIX), 3 (Windows)) logfilesize (50 (MB))
This command does not display default values. This command only affects the local server.
The crsctl get css disktimeout command returns output similar to the following:
$ crsctl get css disktimeout CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.
3. Use the crsctl check has command to check the status of ohasd.
$ crsctl check has
The crsctl check has command returns output similar to the following:
CRS-4638: Oracle High Availability Services is online
4. Use the crsctl start has command to start Oracle High Availability Services on the local server.
$ crsctl start has
To start Oracle High Availability Services on the local server:
# crsctl start has crsctl stop has
5. Use the crsctl stop has command to stop Oracle High Availability Services on the local server.
$ crsctl stop has [-f]
This command attempts to gracefully stop resources managed by Oracle Clusterware while attempting to stop Oracle High Availability Services. If any resources that Oracle Clusterware manages are still running after you run the crsctl stop has command, then the command fails. Use the -f option to unconditionally stop all resources and stop Oracle High Availability Services.
To stop Oracle High Availability Services on the local server:
# crsctl stop has