Skip to content

CRSCTL Commands

    CRSCTL Commands used to managed oracle clusterware resources and components.

    CRSCTL provides cluster-aware commands with which you can perform check, start, and stop operations on the cluster. You can run these commands from any node in the cluster on another node in the cluster, or on all nodes in the cluster, depending on the operation.

    STOP & START ‘CRS’ (RUN FROM root USER) :

    $GRID_HOME/bin/crsctl stop crs
     
    $GRID_HOME/bin/crsctl start crs

    ENABLE/DISABLE AUTO RESTART OF ‘CRS’ :

    $GRID_HOME/bin/crsctl disable crs
     
    $GRID_HOME/bin/crsctl enable crs

    FIND CLUSTER NAME :

    $GRID_HOME/bin/cemutlo -n
    or
    $GRID_HOME/bin/olsnodes -c

    FIND GRID VERSION :

    SYNATX – $GRID_HOME/bin/crsctl query crs softwareversion <hostname)
    
    $GRID_HOME/bin/crsctl query crs softwareversion host-dbaclass1

    CHECK CLUSTER COMPONENT STATUS :

    $GRID_HOME/bin/crsctl stat res -t
    $GRID_HOME/bin/crsctl check crs
    $GRID_HOME/bin/crsctl check cssd
    $GRID_HOME/bin/crsctl check crsd
    $GRID_HOME/bin/crsctl check evmd

    FIND ‘VOTING DISK’ LOCATION :

    $GRID_HOME/bin/crsctl query css votedisk

    FIND ‘OCR’ LOCATION :

    $GRID_HOME/bin/ocrcheck

    FIND cluster_interconnect DETAILS :

    $GRID_HOME/bin/oifcfg getif
     
    app-ipmp0 172.21.39.128 global public
    loypredbib0 172.16.3.192 global cluster_interconnect
    loypredbib1 172.16.4.0 global cluster_interconnect
     
    select NAME,IP_ADDRESS from v$cluster_interconnects;
     
    NAME IP_ADDRESS
    --------------- ----------------
    loypredbib0 172.16.3.193
    loypredbib1 172.16.4.1

    CHECK ‘CRS’ STATUS OF LOCAL NODE :

    crsctl check crs
     
    CRS-4638: Oracle High Availability Services is online
    CRS-4537: Cluster Ready Services is online
    CRS-4529: Cluster Synchronization Services is online
    CRS-4533: Event Manager is online

     CHECK STATUS OF all ‘CRS’ RESOURCE :

    $GRID_HOME/bin/crsctl stat res -t
    $GRID_HOME/bin/crsctl stat res -t -init

    CHECK ACTIVE VERSION OF CLUSTER :

    crsctl query crs activeversion
    Oracle Clusterware active version on the cluster is [12.1.0.2.0]

    STOP/START ‘HIGH AVAILABILITY SERVICE ( HAS)‘ :

    crsctl stop has
     
    crsctl start has

    CHECK ‘CRS’ STATUS OF REMOTE NODES :

    crsctl check cluster
     
    crsctl check cluster -all

    DISK TIMEOUT’ FROM NODE TO ‘VOTING DISK'(disktimeout) :

    crsctl get css disktimeout
    CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.

    NETWORK LATENCY IN THE NODE INTERCONNECT (Misscount) :

    crsctl get css misscount
    CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.

    MOVE VOTING DISK TO ANOTHER DISKGROUP :

    crsctl replace votedisk +OCRVD
    Successful addition of voting disk 2e4ded6cee504fc8bf078b080fb7be6f.
    Successful addition of voting disk 8e87826024e24fffbf5add65c011fc66.
    Successful addition of voting disk e1ba56dedff84fa8bf5605e0302fc81e.
    Successful deletion of voting disk 2b7ce864c44d4fecbf60885a188290af.
    Successfully replaced voting disk group with +OCRVD.
    CRS-4266: Voting file(s) successfully replaced

    ADD ANOTHER VOTING DISK :

    crsctl add css votedisk

    DELETE VOTING DISK :

    crsctl delete css votedisk

    GET ‘OCR’ DISK BACKUP DETAILS :

    ocrconfig -showbackup

    CHECK STANDARD OR FLEX ASM :

    crsctl get cluster mode status
     
    Cluster is running in "standard" mode

    CHECK CRS CONFIGURATION :

    crsctl config crs

    CRSCTL HAS COMMANDS FOR STANDALONE GRID INFRASTRCUTURE :

    crsctl check has
    crsctl config has
    crsctl disable has
    crsctl enable has
    crsctl query has releaseversion
    crsctl query has softwareversion
    crsctl start has
    crsctl stop has

    Also See:

    SRVCTL Commands

    Clusterware Control (CRSCTL) Utility