“crsctl stop/start crs” vs “crsctl start/stop cluster”

Hi,

crs and cluster start/stop operations are sometimes confused.

For that reason, I want to identify the difference between crs and cluster operations.

Lets clearify this from “crsctl stop” command help :

-bash-3.2$ crsctl stop
.... (Some usage hints...)
(Here is important ..)
crsctl stop crs [-f]
Stop OHAS on this server.(This means you can ONLY stop local host's CRS.)
where
-f  Force option  (You can use Force optin using "-f")


crsctl stop cluster [[-all]|[-n <server>[...]]] [-f]
Stop CRS stack
where
Default         Stop local server
-all            Stop all servers
-n              Stop named servers
server [...]    One or more blank-separated server names
-f              Force option

As you see above, you can stop CRS stack using cluster command both local node and remote node while OHASD is running. OHASD must be running for managing CRS stack.(That is important)

 

CRS-4563: Insufficient user privileges.

For Oracle Clusterware some operations need root privileges like stopping cluster.

Here you can see :

-bash-3.2$ id
uid=500(oracle) gid=501(oinstall) groups=500(dba),501(oinstall)
-bash-3.2$ crsctl stop cluster -n ora1
CRS-4563: Insufficient user privileges.
CRS-4000: Command Stop failed, or completed with errors.

As you can see there is a problem with the privileges for that operation. Lets switch root user and retry operation.
-bash-3.2$ su -
Password:
[root@ora2 ~]# export GRID_HOME=/u01/app/11.2.0/grid
[root@ora2 ~]# export PATH=$GRID_HOME/bin:$PATH
[root@ora2 ~]# crsctl stop cluster -n ora1
CRS-2673: Attempting to stop 'ora.crsd' on 'ora1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'ora1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'ora1'
CRS-2673: Attempting to stop 'ora.LISTENER_DB.lsnr' on 'ora1'
CRS-2673: Attempting to stop 'ora.rac.db' on 'ora1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'ora1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'ora1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'ora1' succeeded
CRS-2677: Stop of 'ora.LISTENER_DB.lsnr' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.ora1.vip' on 'ora1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'ora1'
CRS-2677: Stop of 'ora.ora1.vip' on 'ora1' succeeded
CRS-2672: Attempting to start 'ora.ora1.vip' on 'ora2'
CRS-2677: Stop of 'ora.scan1.vip' on 'ora1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'ora2'
CRS-2677: Stop of 'ora.registry.acfs' on 'ora1' succeeded
CRS-2676: Start of 'ora.ora1.vip' on 'ora2' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'ora2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'ora2'
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'ora2' succeeded
CRS-2677: Stop of 'ora.rac.db' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'ora1'
CRS-2677: Stop of 'ora.DATA.dg' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'ora1'
CRS-2677: Stop of 'ora.asm' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'ora1'
CRS-2673: Attempting to stop 'ora.eons' on 'ora1'
CRS-2677: Stop of 'ora.ons' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'ora1'
CRS-2677: Stop of 'ora.net1.network' on 'ora1' succeeded
CRS-2677: Stop of 'ora.eons' on 'ora1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'ora1' has completed
CRS-2677: Stop of 'ora.crsd' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'ora1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'ora1'
CRS-2673: Attempting to stop 'ora.evmd' on 'ora1'
CRS-2673: Attempting to stop 'ora.asm' on 'ora1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'ora1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'ora1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'ora1' succeeded
CRS-2677: Stop of 'ora.asm' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'ora1'
CRS-2677: Stop of 'ora.cssd' on 'ora1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'ora1'
CRS-2677: Stop of 'ora.diskmon' on 'ora1' succeeded

Now it is succeeded.