crsctl start crs Vs start cluster


crsctl start/stop crs – This command starts/stops the OHASD process along with the                                          complete Clusterware stack on the local node we are logged in.

crsctl start/stop cluster – This command starts/stops the Clusterware stack on a server                                         except the OHASD process.

CRSCTL utility is used to manage oracle Clusterware.

Starting Clusterware
In 11gR2, you can start the High Availability Service Daemon (OHASD) and Clusterware stack in a single step (A) or start it in a two step process(B).

(A) To start the OHASD & clusterware stack in a single step, use

$ crsctl start crs

Note that you can start components on the local server only with this.

(B) You can do this in two steps; starting OHASD and then starting Clusterware stack. The advantage of using this method is that, if OHASD is running, you can start the clusterware stack on any node from local node.

You can start OHASD by,

$ crsctl start has

then, you can start the clusterware stack by,

$ crsctl start cluster -all

Syntax

crsctl start cluster [-all | -n server_name […]]

-all Start clusterware on all nodes
-n Start clusterware on particular nodes

If -all or -n is note used, then the clusterware is started only on the local node.

Stopping Clusterware
In 11gR2, you can stop the High Availability Service Daemon (OHASD) and Clusterware stack in a single step (A) or stop it in a two step process(B).

(A) To stop the OHASD & clusterware stack in a single step, use
$ crsctl stop crs

If any of the process managed by oracle Clusterware is still running after executing it, then the command fails. Use the force option in such cases to terminate them unconditionally.

$ crsctl stop crs –all –f

Note that you can stop components on the local server only with this.

(B) You can stop processes in two steps; stoping OHASD and then stoping Clusterware stack. The advantage of using this method is that, you can stop the clusterware stack on any node from local node.

You can stop the clusterware stack by,

$ crsctl stop cluster -all

Syntax

crsctl stop cluster [-all | -n server_name […]] [-f]

-all Stop clusterware on all nodes
-n Stop clusterware on particular nodes
-f Use this to stop clusterware resources unconditionally if ‘crsctl stop cluster’ fails to stop.

If -all or -n is note used, then the clusterware is stopped only on the local node.

Once the clusterware stack is down then you can stop OHASD by,

$ crsctl stop has

The advantage of crsctl stop cluster compared to stop crs command is that it prevent the relocation of ‘certain’ resources to other servers in the cluster before the Clusterware is stopped on that server.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s