crsctl语法

$./crsctl

Usage: 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 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 css

使用案例

检查crs状态

$ crsctl check crs

CSS appears healthy

CRS appears healthy

EVM appears healthy

检查单个状态

$ crsctl check css

CSS appears healthy

启动crs栈,必须使用root用户

# ./crsctl start crs

Attempting to start CRS stack

The CRS stack will be started shortly

停止crs栈,必须使用root用户

# ./crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

配置crs进程栈是否随着操作系统的启动而自启动,有时出于维护目的需要关闭这个特性,可以用root用户执行下面命令。 

# ./crsctl disable crs

# ./crsctl enable crs

这个命令实际是修改了/etc/oracle/scls_scr/raw/root/crsstart这个文件里的内容。

查看votedisk磁盘位置

$ crsctl query css votedisk

0.     0    /dev/raw/raw2

located 1 votedisk(s).

增加votedisk

# ./crsctl add css votedisk /dev/raw/raw3 -force
Now formatting voting disk: /dev/raw/raw3
successful addition of votedisk /dev/raw/raw3.

删除votedisk

# ./crsctl delete css votedisk /dev/raw/raw4 -force
successful deletion of votedisk /dev/raw/raw4.

关于维护votedisk的相关内容可以查看笔者的如下博客
http://czmmiao.iteye.com/admin/blogs/1758360

查看crs参数

$crsctl get css misscount

60

修改crs参数,必须为root用户

# ./crsctl set css miscount 60

跟踪crs模块,提供辅助功能

CRS由CRS,CSS,EVM三个服务组成,每个服务又是由一系列module组成,crsctl允许对每个module进行跟踪,并把跟踪内容记录到日志中。

$ crsctl lsmodules css

The following are the CSS modules ::

CSSD

COMMCRS

COMMNS

$ crsctl lsmodules evm

The following are the EVM modules ::

EVMD

EVMDMAIN

EVMCOMM

EVMEVT

EVMAPP

EVMAGENT

CRSOCR

CLUCLS

CSSCLNT

COMMCRS

COMMNS

跟踪CSSD模块,需要root用户执行:

# ./crsctl debug log css "CSSD:1"

Configuration parameter trace is now set to 1.

Set CRSD Debug Module: CSSD  Level: 1

查看跟踪日志

# pwd

/u01/app/oracle/product/crs/log/rac1/cssd

# more ocssd.log

[    CSSD]2013-01-05 16:32:38.533 [98499472] >TRACE:   clssgmClientConnectMsg: Connect from con(0x92d9248) proc(0x92def28) pid() proto(10:2:1:1)

[    CSSD]2013-01-05 16:33:39.309 [98499472] >TRACE:   clssgmClientConnectMsg: Connect from con(0x92df0f0) proc(0x92d9e78) pid() proto(10:2:1:1)

[    CSSD]2013-01-05 16:33:39.481 [98499472] >TRACE:   clssgmClientConnectMsg: Connect from con(0x92df488) proc(0x92def08) pid() proto(10:2:1:1)

[    CSSD]2013-01-05 16:34:27.955 [88009616] >TRACE:   clssscSetDebugLevel: The logging level is set to 1 ,the cache level is set to 2

[    CSSD]2013-01-05 16:34:40.508 [98499472] >TRACE:   clssgmClientConnectMsg: Connect from con(0x92df0f0) proc(0x92defa8) pid() proto(10:2:1:1)

[    CSSD]2013-01-05 16:34:40.929 [98499472] >TRACE:   clssgmClientConnectMsg: Connect from con(0x92dad28) proc(0x92db440) pid() proto(10:2:1:1)

参考至:《大话Oracle Rac》张晓明著

本文原创,转载请注明出处、作者
如有错误,欢迎指正
邮箱:czmcj@163.com

crsctl命令详解(原创)相关推荐

  1. crsctl命令详解

    crsctl命令详解 crsctl用法,保留到此,以备查询. Usage: crsctl check crs – checks the viability of the CRS stack crsct ...

  2. dd命令详解(原创)

    dd指令使用 语法格式 dd   [option] dd指令选项详解 if=file:输入文件名,缺省为标准输入 of=file:输出文件名,缺省为标准输出 ibs=bytes:一次读入 bytes ...

  3. AIX的vmstat命令详解(原创)

    vmstat概述 vmstat 命令报告关于内核线程.虚拟内存.磁盘.陷阱和 CPU 活动的统计信息.由 vmstat 命令生成的报告可以用于平衡系统负载活动.系统范围内的这些统计信息(所有的处理器中 ...

  4. find命令详解(原创)

    概述 有时可能需要在系统中查找具有某一特征的文件(例如文件权限.文件属主.文件长度.文件类型等等).这样做可能有很多原因.可能出于安全性的考虑,或是一般性的系统管理任务,或许只是为了找出一个不知保存在 ...

  5. srvctl命令详解(原创)

    SRVCTL概述 SRVCTL是ORACLE RAC集群配置管理的工具,可以管理Database.Instance.ASM.Service.Listener和Node Application,Node ...

  6. rac的crs进程是做什么的_RAC 管理(crs_stat、crsctl、srvctl各种命令详解)

    RAC 管理(crs_stat.crsctl.srvctl各种命令详解) 命令集可以分为以下4种: 节点层:osnodes 网络层:oifcfg 集群层:crsctl, ocrcheck,ocrdum ...

  7. RAC 管理(crs_stat、crsctl、srvctl各种命令详解)

    RAC 管理(crs_stat.crsctl.srvctl各种命令详解) Oracle Clusterware的命令集可以分为以下4种:  节点层:osnodes  网络层:oifcfg  集群层:c ...

  8. 【原创】SqlServer 2005 BCP命令详解

    一.命令详解 1. 将远程数据库数据导出到本地文件 EXEC master..xp_cmdshell 'bcp "sql查询语句" queryout 本地文件路径 -t" ...

  9. ARP命令详解--网络命令详解二

    显示和修改"地址解析协议 (ARP)"缓存中的项目.ARP 缓存中包含一个或多个表,它们用于存储 IP 地址及其经过解析的以太网或令牌环物理地址.计算机上安装的每一个以太网或令牌环 ...

最新文章

  1. 汇编:call指令的应用
  2. git分支/标签操作
  3. walle的试用和结合vagrant
  4. mysql怎么查看代码_MySQL中的编码查看与设置(转载)
  5. html不支持ie7,解决IE6/IE7/IE8不支持before,after问题
  6. Linux编程练习 --多线程4--条件变量
  7. Spring, Hibernate and Oracle Stored Procedures
  8. 通过MDaemon自带功能,实现同部门用同一账号对外收发邮件
  9. 计算机网络 教学大纲 谢希仁,《计算机网络》教学大纲.doc
  10. 高观点下的高等数学(数学分析、线性代数)
  11. 贪吃蛇速度变快c语言程序,简单贪吃蛇C语言程序
  12. 查看字节码的插件jclasslib设置成英文
  13. fetion-robot是基于web飞信接口的飞信机器人
  14. 5G前传从无源到半有源平滑演进解决方案
  15. 【unity 保卫星城】--- 开发笔记08(太空站篇)
  16. 提高vivado编译速度
  17. java入门—第二节(1)(数据类型)
  18. collections.defaultdict
  19. Python深度学习与机器视觉(一)
  20. form表单提交,action需要加项目名

热门文章

  1. 基于socket.io的php扩展介绍---phpsocket.io
  2. multithreading coding
  3. 为什么小型软件外包公司很难盈利(一)
  4. Ceph 线程池与工作队列
  5. 布法罗博士计算机专业回国人员,2020年纽约州立大学布法罗分校博士专业设置...
  6. 记一次在K8s集群搭建的MySQL主从无法正常启动之数据迁移恢复实践
  7. 极限测试4 - 系统能创建的最大tcp连接数
  8. 拓嘉辰丰电商:拼多多新上架的新品要不要做
  9. 【ORACLE数据库体系架构】
  10. 广播 onReceiver 的 context 可否启动 Activity,显示 Dialog