Oracle clusterware tool 2

Source: Internet
Author: User

Cluster Layer

Management commands at this layer include crsctl, ocrcheck, ocrdump, and ocrconfig. The last three commands are for OCR disks.

Crsctl:

Crsctl is a command line tool used to manage Oracle clusterware daemons (daemon, also known as daemon and background processes, whose names end with a letter D ). These daemon include cluster synchronization services (CSS), cluster-ready Services (CRS), and event manager (EVM ).

View crsctl help:

 [Oracle @ node1 bin] $. /crsctlusage: crsctl check CRS-checks the viability of the CRS stack crsctl check cssd-checks the viability of CSS crsctl check crsd-checks the viability of CRS crsctl check evmd-checks the viability of EVM crsctl set CSS  <  Parameter >   <  Value  >  -Sets a parameter override crsctl get CSS  <  Parameter  >  -Gets the value of a CSS parameter crsctl unset CSS  <  Parameter  >  -Sets CSS parameter to its default crsctl query CSS votedisk-lists the voting disks used by CSS crsctl add CSS votedisk <  Path  >  -Adds a new voting disk crsctl Delete CSS votedisk  <  Path  > -Removes a voting disk crsctl enable CRS-enables startup for all CRS daemons crsctl disable CRS-disables startup for all CRS daemons crsctl start CRS-starts all CRS daemons. crsctl stop CRS-stops all CRS daemons. stops CRS resources in case of cluster. crsctl start resources-starts CRS resources. crsctl stop resources-stops CRS resources. crsctl debug statedump EVM-dumps state info for EVM objects crsctl debug statedump CRS-dumps state info for CRS objects crsctl debug statedump CSS-dumps state info for CSS objects crsctl debug log CSS [module: level] {, module: Level }... -Turns on debugging for CSS crsctl debug trace CSS-dumps CSS in-memory tracing cache crsctl debug log CRS [module: level] {, module: Level }... -Turns on debugging for CRS crsctl debug trace CRS-dumps CRS in-memory tracing cache crsctl debug log EVM [module: level] {, module: Level }... -Turns on debugging for EVM crsctl debug trace EVM-dumps EVM in-memory tracing cache crsctl debug log res<  Resname: Level  >  Turns on debugging for resources crsctl query CRS softwareversion [  <  Nodename  > ]-Lists the version of CRS software installed crsctl query CRS activeversion-lists the CRS software operating version crsctl lsmodules CSS-lists the CSS modules that can be used for debugging crsctl lsmodules CRS-lists CRS modules that can be used for debugging crsctl lsmodules EVM-lists the EVM modules that can be used for debugging if necesary any of these commands can be run with Additional tracing by adding a "trace" argument at the very front. example: crsctl trace check CSS 

Example:

 Check the CRS status [Oracle @ node1 bin] $. / Crsctl check crscss appears healthycrs appears healthyevm appears healthy check a single status [Oracle @ node1 bin] $. / Crsctl check cssdcss appears healthy [Oracle @ node1 bin] $. /Crsctl check crsdcrs appears healthy [Oracle @ node1 bin] $. / Crsctl check evmdevm appears healthy to start the CRS stack. the root user must be used #. / Crsctl start crsattempting to start CRS stack the CRS stack will be started shortly stop CRS stack, must use the root user :#. / Crsctl stop CRS stopping resources. successfully stopped CRS resources stopping cssd. shutting down CSS daemon. shutdown request successfully issued. configure whether the CRS process stack is automatically started with the startup of the operating system. Sometimes you need to disable this feature for maintenance purposes. You can use the root user to execute the following command. #. / Crsctl disable CRS #. / The crsctl enable CRS command is actually modified. /Etc/Oracle/scls_scr/node1/root/The content in the crsstart file. View the location of a votedisk: [Oracle @ node1 bin] $. / Crsctl query CSS votedisk  0 . 0 /Dev/raw/ Raw2located  1  Votedisk (s). [Oracle @ node1 bin] $ 

The following two tests are destructive and have not been tested (* ^__ ^ *)

--Add votedisk:-- #./Crsctl add CSS votedisk/dev/raw/raw3-Force-- Now formatting voting Disk:/dev/raw/Raw3-- Successful addition of votedisk/dev/raw/Raw3.--Delete votedisk:-- #./Crsctl Delete CSS votedisk/dev/raw/raw4-Force-- Successful deletion of votedisk/dev/raw/raw4.
 
View CRS parameters [Oracle @ node1 bin] $./Crsctl get CSS misscount60[Oracle @ node1 bin] $ modify the CRS parameter, which must be the root user #./Crsctl set CSS miscount60

CRS consists of three services: CRS, CSS, and EVM. Each Service is composed of a series of modules. crsctl allows each module to be tracked and recorded in logs.

View the respective modules of the three services as follows:

 
[Oracle @ node1 bin] $ crsctl lsmodules cssthe following are the CSS modules: cssd commcrs commns [Oracle @ node1 bin] $ crsctl lsmodules evmthe following are the EVM modules :: evmd evmdmain evmcomm evmevt evmapp evmagent crsocr clucls cssclnt commcrs commns [Oracle @ node1 bin] $ crsctl lsmodules crsthe following are the CRS modules :: crsui crscomm crsti crsmain crsplace crsapp crsres crscomm crsocr crstimer crsevt crsd clucls cssclnt commcrs commns [Oracle @ node1 bin] $

To track the cssd module, run the following command as the root user: 

#./Crsctl debug log CSS"Cssd: 1"Configuration Parameter trace is now set1. Set crsd debug module: cssd level:1

View the trace log:

 View tracking logs #  PWD /Opt/ora10g/product/ 10.2 . 0 /Crs_1/log/node1/ Cssd [Oracle @ node1 cssd] $  Tail - 200 Ocssd. log |More  [Cssd]  2013 - 06 - 14   22 : 00 : 32.520 [ 86608784 ]> Trace: clssgmclientconnectmsg: connect from Con ( 0x92eb648 ) Proc ( 0x92ebb80 ) PID () proto ( 10 : 2 :1 : 1  ) [Cssd]  2013 - 06 - 14   22 : 00 : 43.422 [ 86608784 ]> Trace: clssgmclientconnectmsg: connect from Con ( 0x92eecb8 ) Proc ( 0x92f0960 ) PID () proto ( 10 :2 : 1 : 1  ) [Cssd]  2013 - 06 - 14   22 : 00 : 48.849 [ 86608784 ]> Trace: clssgmclientconnectmsg: connect from Con ( 0x92f15d0 ) Proc ( 0x92f3278 ) PID () proto (10 : 2 : 1 : 1  ) [Cssd]  2013 - 06 - 14   22 : 00 : 51.508 [ 86608784 ]> Trace: clssgmclientconnectmsg: connect from Con ( 0x92c6af8 ) Proc ( 0x92ea288 ) PID () proto ( 10 : 2 : 1 : 1  ) [Cssd]  2013 - 06 - 14   22 : 01 : 05.039 [ 86608784 ]> Trace: clssgmclientconnectmsg: connect from Con ( 0x92c6a70 ) Proc (0x92eb1f8 ) PID () proto ( 10 : 2 : 1 : 1 )

-- From Oracle RAC

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.