千家信息网

crsctl 常用命令

发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,[oracle@rac01 ~]$ crsctlUsage: crsctl check crs - checks the viability of the CRS stack
千家信息网最后更新 2025年11月07日crsctl 常用命令
 [oracle@rac01 ~]$ 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   - sets a parameter override       crsctl get    css  - gets the value of a CSS parameter       crsctl unset  css  - sets CSS parameter to its default       crsctl query  css votedisk    - lists the voting disks used by CSS       crsctl add    css votedisk  - adds a new voting disk       crsctl delete css votedisk  - 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  turns on debugging for resources       crsctl query crs softwareversion [] - 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 the 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 css1.检查crs 状态[oracle@rac01 ~]$ crsctl  check  crsCSS appears healthyCRS appears healthyEVM appears healthy以上输出的crs css evm组件都是正常的,若有组件检查失败,输出会给出以下Failure 信息:[oracle@rac01 ~]$ crsctl check crsFailure 1 contacting CSS daemonCannot communicate with CRSCannot communicate with EVM 2.检查crs各个组件的状态信息检查cssd组件状态[oracle@rac01 ~]$ crsctl check cssdCSS appears healthy检查crsd组件状态[oracle@rac01 ~]$ crsctl check crsdCRS appears healthy检查evmd组件状态[oracle@rac01 ~]$ crsctl  check evmdEVM appears healthy3.用以下两条命令来维护crs服务的自动启动,需要用root用户执行[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl disable crs[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl enable  crs4.用root身份来停止crs服务[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  stop crsStopping resources.Successfully stopped CRS resources Stopping CSSD.Shutting down CSS daemon.Shutdown request successfully issued.此时我们在rac01节点检查crs各个组件的状态会有以下的信息[oracle@rac01 ~]$ crsctl check crsFailure 1 contacting CSS daemonCannot communicate with CRSCannot communicate with EVM rac02节点正常[oracle@rac02 ~]$ crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy5.用root身份来开启CRS服务[root@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  start  crsAttempting to start CRS stack The CRS stack will be started shortly此时系统正在启动CRS,我们来检查此时crs服务的状态,crs组件服务依次开启只要所有组件状态都是healthy[oracle@rac01 ~]$ crsctl check crsCSS appears healthyCannot communicate with CRSEVM appears healthy[oracle@rac01 ~]$ crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy6. 查看votedisk的信息[oracle@rac01 ~]$ crsctl  query css votedisk 0.     0    /dev/raw/raw1located 1 votedisk(s).


0