stop/start The CRS, OHAS, ASM, RDBMS & ACFS Services on RAC 11.2_1355977.1

rongshiyuan發表於2014-02-27
Steps To Shutdown(stop)/Startup(start) The CRS, OHAS, ASM, RDBMS & ACFS Services on RAC 11.2 Configuration. (Doc ID 1355977.1)

In this Document

Goal
Solution
  Additional Steps Required When ACFS filesystem are involved:
  Community Discussions
References

Applies to: 

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.
***Checked for relevance on 21-Jan-2014***

Goal

The present document provides in detail the steps to shutdown/startup The CRS, OHAS, ASM & RDBMS Services on a RAC 11.2. Configuration:

Solution

1) Connect to node #1, then please check if the CRS/OHAS & 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   
  

 

Note 2: For RAC ACFS configurations please check the next information:

http://docs.oracle.com/cd/E11882_01/readmes.112/e22488/toc.htm#CACCIEID

2.19.3Oracle ACFS and Oracle Clusterware Stack Shut Down

When attempting to shut down Oracle Clusterware, the Oracle Clusterware stack may report that it did not successfully stop on selected nodes (reference Bug 8651848). If the database home is on Oracle ACFS, then you may receive the following error:


CRS-5014: Agent orarootagent.bin timed out starting process acfsmount for action

This error can be ignored.

Alternatively, the Oracle Clusterware stack may report that it did not successfully stop on selected nodes due to the inability to shut down the Oracle ACFS resources. If this occurs, take the following steps:

  • Ensure that all file system activity to Oracle ACFS mount points is quiesced by shutting down programs or processes and retry the shutdown.

  • If the ora.registry.acfs resource check function times out, or the resource exhibits a state of UNKNOWN or INTERMEDIATE, then this may indicate an inability to access the Oracle Cluster Registry (OCR). The most common cause of this is a network failure. The commands "acfsutil registry" and "ocrcheck" may give you a better indicator of the specific error. Clear this error and attempt to stop Oracle Clusterware again.

 

Additional Steps Required When ACFS filesystem are involved:

 

 Note 3:  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  that is being used (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:


A) Dismount all the ACFS filesystems running in the cluster as follows:
$> srvctl stop filesystem -d volume_device_name [-n node_name] [-f]
  

Where:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-d    :The Oracle ACFS volume device name
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-n    : 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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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
  

B) Make sure the ACFS filesystem(s) was/were dismounted on all the nodes:
# df -k | grep asm
  

C) Then perform the steps described in the following document:

=)>     Steps To Shutdown/Startup The CRS, OHAS, ASM & RDBMS Services on RAC 11.2 Configuration. (Doc ID 1355977.1)

  


 

 

Community Discussions

Still have questions? Use the communities window below to search for similar discussions or start a new discussion on this subject. (Window is the live community not a screenshot)

Click here to open in main browser window

References

NOTE:1093890.1 - Steps To Shutdown/Startup The Exadata & RDBMS Services and Cell/Compute Nodes On An Exadata Configuration.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1094221/,如需轉載,請註明出處,否則將追究法律責任。

相關文章